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: Effect of TZFRC.OST = 1 upon TZOSTFLG

Part Number: TMS320F28379D

Tool/software:

With regards to the ePWM trip zone operation:

If I use the TZFRC register to force a one shot event via software (TZFRC.OST = 1), then I would expect to see the corresponding flag in the TZFLG register to show the flag set (TZFLG.OST = 1)

Now, there is also the TZOSTFLG register which gives additional information on the specific cause of the one shot event. Can anyone confirm if any of the bits in TZOSTFLG are set by forcing a one shot event via software (TZFRC.OST = 1)?

I think the manual is a little unclear on what to expect here, but I think it implies that nothing should be set. However from my testing it looks as though it is, but it may not be consistent.

For context I am forcing the one shot event in software to disable all PWM's as a global enable/disable event. I am also using individual one shot trip latches for fault reaction to quickly disable PWMs. I would like to use the flags in TZOSTFLG to determine the cause of the trip. However I see flags being set in TZOSTFLG when applying TZFRC.OST = 1 which is screwing this up. 

Thanks for nay help you can offer.

Steve

  • Hello,

    When a one-shot trip event occurs, the one-shot trip event flag (TZFLG[OST]) is set. A corresponding flag for the event that caused the OST event is also set in register TZOSTFLG. TZOSTFLG contains status flags for OSHT1-6 and the DCA/BEVT1. Note that OST1-6 correspond to TZ1-6 The one-shot trip condition must be cleared manually by writing to the TZCLR[OST] bit.

    If desired like in your case, the TZOSTFLG register bit can be cleared by manually writing to the corresponding bit in the TZOSTCLR register. Please check device TRM for Register field descriptions for TZOSTFLG and TZOSTCLR registers: https://www.ti.com/lit/ug/spruhm8k/spruhm8k.pdf

  • Thanks. So I assume that if a one shot event is forced by setting TZFRC.OST = 1, then the microcontroller will not set any flags in the TZOSTFLG register in response?

  • When a one-shot trip event occurs, the one-shot trip event flag (TZFLG[OST]) is set. A corresponding flag for the event that caused the OST event is also set in register TZOSTFLG. So, it will set the flag in response.