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.

LAUNCHXL-F28379D: Trip Source Condition Issue

Part Number: LAUNCHXL-F28379D

Hi,

I am using LaunchPad-F28379D. I have configured one shot trip event to force EPWM to zero when trip event occour. The GPIO19 is Fault-Pin detected.

It work fine, when GPIO19 = 0 trigger Fault, but I want trigger Fault when GPIO19=1, what's the register to set? I don't find it.

Thanks

  • Hi Biagio,

    It sounds like you are probably using TZ1, TZ2, or TZ3 to cause your trip event. These are always active low events, but we can still accomplish what you are looking to do.

    The easiest way is to go into the EPWM X-BAR and invert the signal before it reaches the PWM.  Take a look at the TRIPOUTINV register in the EPwmXbarRegs.

    The other option is instead of using TZ1/2/3 you could use a Digital Compare event to cause the trip. These are much more flexible and you can define the state of the signal, but they take more code to setup.

    Regards,

    Kris

  • Hi Kris,
    Yes, I use TZ1 to cause trip event, I thought I could set active event.
    As you suggest me I will use a Digital Compare event to cause the trip. It seems the best choice.

    Thanks for your help.
    Best Regards,
    Biagio