This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Best way to do Duty cycle measurement

Other Parts Discussed in Thread: TMS320F28027F, TMS320F28027

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