What exactly is EMUSTOP sourced from in the ePWM module? I am including the following code in my ePWM setup
EPwm1Regs.TZSEL.bit.OSHT5 = TZ_ENABLE; /* Halt on CLK Loss */ \
EPwm1Regs.TZSEL.bit.CBC6 = TZ_ENABLE; /* Shut down EMUSTOP */ \
EPwm1Regs.TZCTL.bit.TZA = TZ_FORCE_LO; /* Shut off PWM */ \
EPwm1Regs.TZCTL.bit.TZB = TZ_FORCE_LO; /* Shut off PWM */ \
Basically if TZ6 is asserted (EMUSTOP) shut down the PWM - doesn't seem to work though. Kind of like to shut off the motor when I am in emulation halt FYI.