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: About the ePWM4 Trip function

Part Number: TMS320F280049

I am using ePWM4's Trip function. I want to trip both EPWM4A and EPWM4B to 'L', but only one works.

If TZCTL[TZA] = 11, TZCTL[TZB] = 10 and TZFRC[OSHT] = 1, EPWM4B becomes 'L' and EPWM4A does not stop.

If TZCTL[TZA]=10, TZCTL[TZB]=11 and TZFRC[OSHT]=1, EPWM4A becomes 'L' and EPWM4B does not stop.

If TZCTL[TZA]=10, TZCTL[TZB]=10, TZFRC[OSHT]=1, either EPWM4A or EPWM4B will stop, and the other will not.

Each time TZFRC[OSHT]=1 and TZCLR[OSHT]=1 are repeated, which of EPWM4A and EPWM4B is stopped changes. However, both cannot be set to 'L'. Only on one side.

Operation has been confirmed on CCS.

ePWM3 does not have this problem and works normally.

Is ePWM4 different from other ePWMs?

  • Hello,

    The trip zone should be able to be used for both channels (EPWM4A and EPWM4B) by configuring TZA and TZB. Could I ask what count mode you are in? And what event is triggering the one-shot software trip?

    Best Regards,

    Allison

  • Hi, Allison.

    The counting mode is Up-Down counting mode.

    I am using the PSFB power supply in current mode, and I would like to set ePWM4A and ePWM4B to LOW with the signal from CMPSS to prevent an abnormal stop, but only one side stops.

    Therefore, when I tried applying a forced trip with CCS using a software one-shot (TZFRC[OSHT]=1) in the Trip block, I found that the trip was applied only on one side.

  • Hi,

    Thank you for the information. Would you be able to share your EPWM4 configurations? Are they the same as your EPWM3 configurations? In the meantime you could try using the TZCTL2 register (instead of TZA/TZB) and setting the actions to "LOW" on TZA and TZB for both up and down-count to see if the behavior changes.

    Best Regards,

    Allison

  • Since EPWM4 was tripping with the signal from CMPSS, I was using TZCTL2. I was able to achieve this by forcing all TZCTL2 settings to 'L'. thank you very much.