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