Hi all,
I am now using F28069 Piccolo Experimenter's Kit to drive a half bridge inverter with SPWM control by using CLA C library: PWMDRV_ComplPairDB_CLA_C().
I have no problem during normal operation.
If I would like to turn off my inverter, both PWMA and PWMB signal should be zero. However, since it is a complementary channel, I cannot force both PWMA and PWMB to be zero.
My question is how can I set both PWMA and PWMB to be zero if I want to turn off my inverter?
Here is my code in CLA task:
// CLA_PlantInfo_EnableGatePWM ==1, turn on inverter; else turn off inverter
if ( CLA_PlantInfo_EnableGatePWM ) {
PWMDRV_ComplPairDB_CLA_C(EPwm1Regs, EPwm1Regs.TBPRD, CLA_Duty1);
} else {
//Here, I wanna set both PWMA and PWMB to be logic zero
// seems that the following code cannot meet my target:
//PWMDRV_ComplPairDB_CLA_C(EPwm1Regs, EPwm1Regs.TBPRD, 0);
}
Many thanks in advanced.
BR,
Barry