Hi,
I use TMS320F28027F and I need to measure the duty cycle on a PWM input.
The example 4 in capture module reference guide is a way to do it :
But with this solution, perhaps I could have problems with EMC glitches (even if i have an HW filter), and also resolution problem because i try to be independent of the PWM frequency.
Competitors products have a gated timer mode, that is to say the timer is incremented only if the input pin is 1. So I start at the same time 2 timers, one is free the other is gated. When the free one reach the maximum value, an interrupt is generated and I only have to do a simple divide between the 2 timers register and i have an accurate result, without thinking about glitches.
Is there a way to do the same with TMS320F28027?
Regards.
Emmanuel