I am using the LV Motor kit with F28035. I added the following code to stop the PWMs on an emulator halt, but it is not working. I still see PWM's being driven on my scope while I'm halted. Do I also have to set the TBCTL in additon to the code below?
/* Init Trip Zone Select Register*/
EPwm1Regs.TZSEL.bit.OSHT6= 1;
EPwm2Regs.TZSEL.bit.OSHT6= 1; EPwm3Regs.TZSEL.bit.OSHT6= 1; EPwm4Regs.TZSEL.bit.OSHT6= 1; /* Init Trip Zone Control Register*/
EPwm1Regs.TZCTL.bit.TZA = 2; EPwm1Regs.TZCTL.bit.TZB = 2; EPwm2Regs.TZCTL.bit.TZA = 2; EPwm2Regs.TZCTL.bit.TZB = 2; EPwm3Regs.TZCTL.bit.TZA = 2; EPwm3Regs.TZCTL.bit.TZB = 2; EPwm4Regs.TZCTL.bit.TZA = 2; EPwm4Regs.TZCTL.bit.TZB = 2;