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.
Tool/software: Code Composer Studio
I have a interrupt nesting problem with the INT3.6 and INT3.7, the INT3.6 is 500kHz interrupt and INT3.7 is 50kHz interrupt. they both trigger when count == zero and the count is sync.
when these two interrupt overlaping INT3.6 will miss the interrupt. my ISR code are as follow:
__interrupt void epwm6_timer_isr(void)
{
......
EPWM6Regs.ETCLR.bit.INT = EPWM_INT_FLAG_CLEAR;
PieCtrlRegs.PIEACK.all = PIEACK_GROUP3;
#if DEBUG_PWM ==1
SCPwmRegs.AQSFRC.bit.OTSFA = 1;
SCPwmRegs.AQSFRC.bit.ACTSFA = 1;
#endif
}
__interrupt void epwm7_timer_isr(void)
{
EINT;
IER&=M_INT3;
........
EPWM7Regs.ETCLR.bit.INT = EPWM_INT_FLAG_CLEAR;
PieCtrlRegs.PIEACK.all = PIEACK_GROUP3;
#if DEBUG_PWM ==1
SLPwmRegs.AQSFRC.bit.OTSFA = 1;
SLPwmRegs.AQSFRC.bit.ACTSFA = 1;
#endif
}
the test picture is follow:
Look forward to your reply.
Thank you.