TMS320F28377D: Could you please explain why the OST bit of the TZFLG is set, but the TZOSTFLG does not go High?

Expert 1220 points
Part Number: TMS320F28377D

Tool/software:

Hi All,

We are using TI's TMS320F28377D C200 microcontroller in our company, and I have a question regarding the PWM's TZ (Trip Zone).

We are using the PWM to trip via the TZ input.

When a TZ occurs, an interrupt is triggered, and detect anomaly.

Within the interrupt, we are monitoring the OST1 bit of the PWM1_TZOSTFLG register, but occasionally this bit does not go High.

However, the INT and OST bits of the PWM1_TZFLG register do go High, causing only the trip to occur without anomaly detection.

At this time, none of the other bits in the PWM1_TZOSTFLG register are set, and the entire register is zero.

Could you please explain why the OST bit of the TZFLG is set, but the TZOSTFLG does not go High?

Best Regards,

Ito

  • Hello Ito,

    Are you clearing both TZ Flags? We have a note in the TRM EPWM trip zone chapter specifically addressing this (below snippet). Please see this section 15.9.2 Operational Highlights for the Trip-Zone Submodule for this information:

    Best Regards,

    Allison

  • Hi Allison,

    Thank you for your reply,

    This problem was not solved.

    The TZOSTFLG is set and both flags are cleared.
    In this case, the TZOSTFLG is set even when the TZOSTFLG is not set.
    Therefore, both flags cannot be cleared.
    Can you tell me why the TZOSTFLG is set but the TZOSTFLG does not stand ?

    Best Regards,

    Ito

  • Hi Ito,

    Allison is currently out of office but will have a response back to you when she returns at the end of the week.

    Best Regards,

    Delaney