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.

TMS320F28379D: TRIP ZONE FORCE HIGH NOT WORKING

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Hello,

I am using EPWM 1, 4,5, and 6 for PWM generation for a DAB Converter. I want to configure PWM's for an ACTIVE LOW system. The Polarity selection in the dead time for FORCE HIGH is working, while the same for TRIP ZONE is not working. The trip zone settings are as follows,

EPwmxRegs.TZCTL.bit.TZA = TZ_FORCE_HI;
EPwmxRegs.TZCTL.bit.TZB = TZ_FORCE_HI;

where TZ_FORCE_HI = 0x1;

The Trip event is enabled by a force from the TZFRC[OST] bit, as shown below,

EPwmxRegs.TZFRC.bit.OST = 1;

The Enable and Disable of the PWM's are working but the PWM polarity at trip event is not high. Is there any other bit that needs to be configured that I am missing?

Thank you

Vijaymahantesh V Surkod

  • Hi Vijaymahantesh,

    If you haven't already, you can also reference our C2000Ware example on Trip Zone located at {C2000Ware}\driverlib\f2837xd\examples\cpu1\epwm\ for example code on trip zone implementation. There are also more bit-field based examples located at {C2000Ware}\device_support\f2837xd\examples\cpu1\epwm_trip_zone. 

    The Enable and Disable of the PWM's are working but the PWM polarity at trip event is not high.

    To clarify, do you mean that the PWM one-shot trip looks to be successfully occurring as expected except the PWM signals are going low instead of high? If this is the case, I the first thing to triple check is that your TZA and TZB bits are set properly. Please do so by checking the register window in CCS with continuous refresh button on and looking at the TZCTL register values for these bits. They should both be '01' to set your EPWMs low in response to the trip. If they are '10' that would be you are setting them high on your trip.

    Best Regards,

    Allison