Part Number: TMS320F28388D
Dear team:
My customer wants to realize the PWM module triggered by GPIO88 through ePWM-Xbar, but the configuration result fails to realize this function:
GPIO88 -> InputXbar -> EpwmXbar -> Trip4 -> ePwmModules
Xbar configuration in CPU:
EALLOW;
InputXbarRegs.INPUT12SELECT = 88;
EPwmXbarRegs.TRIP4MUXENABLE.BIT.MUX27 = 1;
EPwmXbarRegs.TRIP4MUX16TO31CFG.BIT.MUX27 = 1;
EPwmXbarRegs.TRIPOUTINV.BIT.TRIP4 = 1;
EDIS;
Configure trigger signal in CPU2:
EALLOW;
EPwm1Regs.TZSEL.BIT.DCAEVTA =1;
EPwm1Regs.DCTRIPSEL.BIT.DCALCOMPSEL = 4;
EPwm1Regs.TZDCSEL.BIT.DCAEVT1 = 3;//GPIO低电平触发
EPwm1Regs.DCACTL.BIT.EVT1SRCSEL = 0;
EPwm1Regs.DCACTL.BIT.EVT1FRCSYNCSEL = 1;
EPwm1Regs.DCACTL.BIT.EVT1LATSEL = 0;
EPwm1Regs.TZCTL.BIT.DCAEVT1 = 1;
EPwm1Regs.TZCTL2.BIT.ETZE= 0;
EPwm1Regs.TZCTL.BIT.TZA = 1;
EPwm1Regs.TZCTL.BIT.TZB = 1;
EDIS;
The GPIO88 has been configured to pull up, and it can be seen from the simulation that the signal is flipped normally. However, EPwm1Regs.TZOSTFLG.BIT.DCAEVT1 is always 0, that is, no event is triggered.
Is there any problem with the customer's configuration?
Best regards
