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 to tune the align mode parameter and verify the performance efficiently.
Set pUserCtrlRegs->algoDebugCrtl1.b.forceAlignEn as 1b to enable force align mode. Set speedInput as non-zero value to spin the motor. The following figure shows the current waveform in force align mode.
In the align mode, q-axis current align method is applied by default. The current closed loop is performed and the three phase currents will be one positive and two negatives.