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.

TMS320F280049: ECAP auto reset when input PWM remains low

Part Number: TMS320F280049

Hi team,

My customer is using ECAP to capture the period and duty cycle of a PWM signal. These information reflects the value of a measured DC voltage. When DC voltage=0, the PWM signal will remain low.

They are using delta mode to do the measurement. And here is a problem they met when PWM suddently becomes low:

When PWM suddently becomes low at the red line location, the ECAP will continue to count until the PWM recovers and the next edge come. When this happens, the T1 is actually accidently prolonged and the measured result will be incorrect, which will influence the control loop. 

Thus, customer wants know how to reset the CTR when CTR reaches a certain number? Or any suggested way to identify a PWM =0 condition?

I noticed we can trigger a CTR=Period interrupt, but it only works when ECAP works as APWM.

Do you have any idea how to fix this problem?

 Regards,

Brian