I am trying to run a 3 phase inverter and a dual active bridge converter (DAB) together from the F28335. For the inverter, I am making the firing sequence and sending that word to the GPIO pins for firing. For the DAB, I am using the EPWM modules 1 and 2 to get two pairs of complimantary pulses, However, based on certain output voltage feedback (vdf), I need to switch off the DAB i.e. EPWM1A, EPWM1B, EPWM2A, EPWM2B all should be zero. I am trying to do this with the the Action Qualifier Continuous Software Force Register (AQCSFRC). However, I see that EPWMxA and EPWMxB still remain complimetary to each other. I am not able to force both of these together to zero.
I am using the following code. The logic is such that the EPWM modules should be off if 255<vdf<295.
if (vdf > 295)
{EPwm1Regs.AQCSFRC.all = 0x00; //Forcing disabled, i.e., has no effect
EPwm2Regs.AQCSFRC.all = 0x00;} //Forcing disabled, i.e., has no effect
else if (vdf< 255)
{EPwm1Regs.AQCSFRC.all = 0x00; //Forcing disabled, i.e., has no effect
EPwm2Regs.AQCSFRC.all = 0x00;} //Forcing disabled, i.e., has no effect
else
{EPwm1Regs.AQCSFRC.all = 0x05; //turn off both EPWM1A and EPWM1B
EPwm2Regs.AQCSFRC.all = 0x05;} //turn off both EPWM2A and EPWM2B
Am I doing something wrong? Ow would it be a better idea to use the Trip Zone module. I dont have idea how to configure the trip zone based on the voltage feedback. Some help on this will be highly appreciated!