Hi,
I have previously implemented a bldc trap drive (6 step commutation) on an F2407. That mcu has the PWM module not the new ePWM module. In order to commutate on a Hall sensor state change I used the Action Control Register ACTRA to open all legs of the bridge ( *ACTRA = 0), wait my desired deadband time, and then adjust the bridge to the next phase via *ACTRA = EVAState_table[HallValue]. The ACTRA register acted upon all six FETs of the bridge in one clock cycle, so that all FETs are switched simultaneously.
On the F28335, which uses the newer ePWM peripheral, how do I commutate all FETs of the bridge simulaneously? I could use the Action Qualifier Continuous Software Force register to switch one leg of the bridge (i.e. two FETs) something like EPwm1Regs.AQCSFRC.all = 0x0005, but then I would have to issue a similar command for the other two legs of the bridge i.e. one for EPWM2, and EPWM3. The switching of the entire bridge would not be simultaneous as happens in the PWM peripheral on the 2407. I'm somewhat confused as to how to accomplish this with the new ePWM peripherals.
I will not be using the DCM library.
Regards,
Scott