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.

tz中断由于pwm中断



我用数字比较事件2触发tz动作,并产生一个tz中断

EPwm1Regs.TZSEL.bit.DCAEVT2 = 1;
EPwm1Regs.TZCTL.bit.TZA = 2;
EPwm1Regs.TZCTL.bit.TZB=3;

在tz中断中打开pwm 1b

epwm1_tzint_isr(void)
{



EPwm1Regs.AQSFRC.bit.OTSFB=1;


EALLOW;
EPwm1Regs.TZCLR.bit.CBC=1;
EPwm1Regs.TZCLR.bit.DCAEVT2 = 1;
EPwm1Regs.TZCLR.bit.INT = 1;
EDIS;


PieCtrlRegs.PIEACK.all = PIEACK_GROUP2;
}

但这样设置之后,可以进入这个tz中断,但原本的pwm2触发的pwm中断无法运行,请问这是为什么