Is there any registers for checking PWM output in ATOM/TOM.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DownyK
Level 5
Level 5
100 replies posted 10 solutions authored 250 sign-ins

Hi members

I have used TOM for PWM output. 

if I use TIM ch for measuring TOM PWM output, it will run okay.

Is there any other way to check PWM Period or duty using registers inside TOM ch or GTM?

Unfortunately, I don't think there is one when I looked up User Manual but just ask just in case.

Thanks.

 

0 Likes
1 Solution
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored

See in the user manual of your used device chapter Input Output Monitor (IOM). Maybe you can use this module.

View solution in original post

0 Likes
4 Replies
Nambi
Moderator
Moderator
Moderator
500 replies posted 50 likes received 5 likes given

Hi,

For a basic fixed PWM, you can check if the CM0 and CM1 TOM registers correlate with the tick count for the Period and duty cycle. Then you can use the frequency of GTM to determine the actual PWM Period or duty.

This may not be suitable for all cases.

Best Regards.

0 Likes
DownyK
Level 5
Level 5
100 replies posted 10 solutions authored 250 sign-ins

 

Hi Nambi,

Thanks for your reply.

as far as I know, CM0 is used for Period and CM1 is used for Duty.

But these registers are as input side. 

So I want to know something like registers as the output side to check whether the PWM output is the same as what I intended. 

I think there are no these kinds of registers, but if you know let me know

 

0 Likes
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored

See in the user manual of your used device chapter Input Output Monitor (IOM). Maybe you can use this module.

0 Likes
DownyK
Level 5
Level 5
100 replies posted 10 solutions authored 250 sign-ins

thanks for your reply.

I will check the chapter Input Output Monitor. 

0 Likes