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.

TMS320F280025C: TripZone mean PWM duty cycle measurement

Part Number: TMS320F280025C
Other Parts Discussed in Thread: SYSCONFIG

Hello,

I'm using the trip zone of the ePWM module to make my c2000 control the current of a motor.

My setup is : INA (current measurement) >> C2000 CMPSS (defines current setpoint) >> ePWM (uses TripZone to control current)

As I need to calculate the current motor power, I have to determine the duty cycle of the TripZone controlled PWM. Is there a recommended way to do this?

My current code uses a eCAP module that uses a DMA to capture a set of 10 PWM cycles to be able to calculate a mean on time. Anyway, I hope there is a better way to get the mean duty cycle of the trip zone controlled PWM signal.

Best regards,

Markus