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.

TMS320F280025: Clear tripZone interrupt flag with OST

Part Number: TMS320F280025
Other Parts Discussed in Thread: C2000WARE

Hello,

I am using the OST tripzone to drive PWMs LOW in upon trip condition set Through GPIO.


The GPIO is active low I measured it and ensured that initially it is high and goes when the trip condition occurs

I don't know the correct way to clear the interrupt flag, the trip condition occurs and I am using  EPWM_clearTripZoneFlag API to clear the OST bit in TZCLR register however in the debugger the bit is not being cleared. Please find photo attached 

Here's how I clear the flag in my application 

ISR_FUNCTION void INT_PWM_HV_T1T2_TZ_ISR (void)
{
//
// Re-enable the OST Interrupt
//
EPWM_clearTripZoneFlag(PWM_HV_T1T2_BASE, (EPWM_TZ_INTERRUPT | EPWM_TZ_FLAG_OST));
//
// Acknowledge this interrupt to receive more interrupts from group 2
//
Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP2);
}

I think the assert condition could be the issue here right?

Please guide me what is correct way to clear the OST flag after the trip condition occures

Thanks