Part Number: TMS320F280049C
I'm trying to get a number of external trip signals routed to the ePWM modules.
One of the signal chains is:
GPIO9 -> XBARINPUT8 -> ePWMXBAR MUX19.1 -> TRIP4 -> EPWM.TZ4
EALLOW;
InputXbarRegs.INPUT8SELECT = 9;
EpwmXbarRegs.TRIP4MUX16TO31.bit.MUX19 = 1;
EpwmXbarRegs.TRIP4MUXENABLE = 1;
EpwmXbarRegs.TRIPOUTINV.bit.TRIP4 = 1;
EPwm1Regs.TZSEL.bit.OSHT4 = 1
EDIS;
If I use TZ1 mapped to INPUT1, without the ePWM X-bar, it works fine.
It seem like the ePWM X-bar TRIP4 signal is not connected to the ePWM TZ4, as flipping the TRIPOUTINV bit should cause a trip in any case.
I can see that the input X-bar sees the GPIO signal, in the XBARFLAG registers.
Am I missing an enable somewhere?