Hi, I'd like to configure the trip zones of my pwm signal to set my signal low in case of ClockFAil or EMUSTOP. I've seen in the documentation that TZ5 and TZ6 are respectively linked to these errors. I configured both trip zone and PIE vector in this way:
EALLOW;
PieVectTable.EPWM1_TZ_INT = &Epwm1_TZ1;
EDIS;
IER |= M_INT2;
PieCtrlRegs.PIEIER2.bit.INTx1 = 1;
EINT;
ERTM;
EALLOW;
EPwm1Regs.TZSEL.bit.CBC5 = 1;
EPwm1Regs.TZSEL.bit.OSTH6 = 1;
EPwm1Regs.TZCTL.bit.TZA = TZ_FORCE_LO;
EPwm1Regs.TZCTL.bit.TZB = TZ_FORCE_LO;
EPwm1Regs.TZEINT.bit.CBC = 1;
EPwm1Regs.TZEINT.bit.OST = 1;
EDIS;
Does it suffer to generate signal interference in case of ClockFAil and EMUSTOP, or do I have to do some other configuration? And if it does suffer, I'd like to know how to test these two trip zones.
Thanks in advance.