Dear Expert
I now need to configure the wave-by-wave current limiting function. With comparator 2 and comparator 3, any trigger current limiting point will block the PWM driver.
There are two comparators triggering the same event EVT2 in the TI configuration, but it is found wrong in the experiment, please help to analyze whether it can be configured like this.
// EPwm2Regs.DCTRIPSEL.bit.DCAHCOMPSEL = DC_COMP2OUT;
// EPwm2Regs.DCTRIPSEL.bit.DCALCOMPSEL = DC_COMP3OUT;
// EPwm2Regs.TZDCSEL.bit.DCAEVT2 = TZ_DCAL_HI_DCAH_LOW;//Are the two signals related to And or Or?
// EPwm2Regs.DCACTL.bit.EVT2SRCSEL = DC_EVT2;
// EPwm2Regs.DCACTL.bit.EVT2FRCSYNCSEL = DC_EVT_ASYNC;
// EPwm2Regs.TZSEL.bit.DCAEVT2 = TZ_ENABLE;
// EPwm2Regs.TZCTL.bit.DCAEVT2 = TZ_FORCE_LO;
//
// EPwm2Regs.DCTRIPSEL.bit.DCBHCOMPSEL = DC_COMP2OUT;
// EPwm2Regs.DCTRIPSEL.bit.DCBLCOMPSEL = DC_COMP3OUT;
// EPwm2Regs.TZDCSEL.bit.DCBEVT2 = TZ_DCBL_HI_DCBH_LOW;
// EPwm2Regs.DCBCTL.bit.EVT2SRCSEL = DC_EVT2;
// EPwm2Regs.DCBCTL.bit.EVT2FRCSYNCSEL = DC_EVT_ASYNC;
// EPwm2Regs.TZSEL.bit.DCBEVT2 = TZ_ENABLE;
// EPwm2Regs.TZCTL.bit.DCBEVT2 = TZ_FORCE_LO;