SLUUDM5 March 2026 MSPM0G1507 , MSPM0G1519 , MSPM0G3507 , MSPM0G3519
For debug, FOC algorithm provides the option that forces the motor control state machine to stay in align mode and disable the current closed loop.
When disable current closed loop, the FOC algorithm directly control the PWM duty cycle to three phase. Users can easily check the PWM functionality and validate the hardware circuit connection as no control loop is enabled at this time.
Set pUserCtrlRegs->algoDebugCrtl2.b.currLoopDis to disable current closed loop. Then users can overwrite pUserCtrlRegs->algoDebugCrtl2.b.forceVDCurrLoopDis and forceVQCurrLoopDis to set different SVPWM outputs, as shown in Figure 7-18.
Figure 7-19 shows the PWM output waveform in force align mode.
TI recommends disconnecting the motor when testing the PWM loop, because a small duty cycle may output a high current in motor phase. If connected motor, users should be careful to increase the PWM cycle from zero.