SLUUDM5 March 2026 MSPM0G1507 , MSPM0G1519 , MSPM0G3507 , MSPM0G3519
Speed closed loop control is a widely used control method. In speed control mode, the speed of the motor (Electrical speed, by Hz) is controlled using a closed loop PI control according to the input reference set as speedInput value in Speed Control Register (P.U value in IQ15 format). The P.U speed is computed as the ACTUAL_MOTOR_SPEED / MAX_MOTOR_SPEED value configured in systemParams.
Example: For maxMotorSpeed set to 100Hz, setting reference Input in speedInput to 0x3FFFh (0.5 P.U in IQ15) sets the motor real electrical speed to 50Hz.
By default, FOC algorithm uses speed closed loop control with controlMode set as 0h.