Announcements

Robots are revolutionizing our lives in many ways. Join our webinar to learn about Infineon’s broad portfolio of robot building blocks.
Click here to register.

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

AURIX™ Forum Discussions

DownyK
Level 4
Level 4
10 questions asked 50 replies posted 10 likes given

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
4 Replies
Nambi
Moderator
Moderator
Moderator
250 replies posted First like given 25 likes received

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 4
Level 4
10 questions asked 50 replies posted 10 likes given

 

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
250 sign-ins 25 likes received 50 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 4
Level 4
10 questions asked 50 replies posted 10 likes given

thanks for your reply.

I will check the chapter Input Output Monitor. 

0 Likes
This widget could not be displayed.