Other Parts Discussed in Thread: CONTROLSUITE, DRV8305
Tool/software: Code Composer Studio
Good afternoon, I'm using a sinusoidal PWM signal to control the DRV8305 mosfets, so the generated signal controls the upper branch mosfet and the complementary signal controls the lower branch mosfet,
but the generated complementary signal is not as expected. Could anyone tell me how to configure this complementary signal? The code is shown below:
Va_sin = m*sin(wt);
Vb_sin = m*sin(wt - 2*pi/3);
Vc_sin = m*sin(wt + 2*pi/3);
(motor->PwmARegs)->CMPA.bit.CMPA = (INV_PWM_HALF_TBPRD*Va_sin)+INV_PWM_HALF_TBPRD;
(motor->PwmBRegs)->CMPA.bit.CMPA = (INV_PWM_HALF_TBPRD*Vb_sin)+INV_PWM_HALF_TBPRD;
(motor->PwmCRegs)->CMPA.bit.CMPA = (INV_PWM_HALF_TBPRD*Vc_sin)+INV_PWM_HALF_TBPRD;
Thanks