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 interrupt - 2806x



Hello,

I would like to call EPWM1_TZINT_ISR according to the internal comparator output.

I see that the output of the comparator toggles properly and the EPwm1Regs.TZFLG.bit.DCBEVT2 is set,

but EPWM1_TZINT_ISR is never called.

This is my initialization code

//--------------------------------------------------------------------------------

EPwm1Regs.DCTRIPSEL.bit.DCBHCOMPSEL = DC_COMP2OUT;
EPwm1Regs.TZDCSEL.bit.DCBEVT2 = TZ_DCBH_HI;
EPwm1Regs.DCBCTL.bit.EVT2SRCSEL = DC_EVT2;
EPwm1Regs.DCBCTL.bit.EVT2FRCSYNCSEL = DC_EVT_ASYNC;    
EPwm1Regs.TZSEL.bit.DCBEVT2 = 1;      
EPwm1Regs.TZEINT.all=0xFFFF;    

EPwm1Regs.TZCLR.all = 0xFFFF;
EPwm1Regs.ETCLR.all = ET_CLEAR_ALL;    

PieCtrlRegs.PIEIER2.bit.INTx1 = 1;    // Enable 2.1 in PIE  
IER |= M_INT2;                                   // Enable Row 2 in PIE

//--------------------------------------------------------------------------------

Is there anything else I should set?

Thanks,

M.