I am trying to get two symmetrical complementary PWM signals, but in all deadband modes I get the width of one of the signals more than the other. I figured from the datasheet I cannot use REDDB for both PWMA and PWMB; only one of them and same for FEDDB. Please see the picture attached.
The code I'm using:
// Setup deadtime
// Active high complementary PWMs - Setup the deadband
EPwm1Regs.DBCTL.bit.OUT_MODE = DB_FULL_ENABLE;
EPwm1Regs.DBCTL.bit.POLSEL = DB_ACTV_HIC;
EPwm1Regs.DBCTL.bit.IN_MODE = DBA_ALL;
EPwm1Regs.DBRED = DeadTime/10;
EPwm1Regs.DBFED = DeadTime/10;