- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Aurix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See in the user manual of your used device chapter Input Output Monitor (IOM). Maybe you can use this module.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for your reply.
I will check the chapter Input Output Monitor.