SLUUDM5 March 2026 MSPM0G1507 , MSPM0G1519 , MSPM0G3507 , MSPM0G3519
The FOC algorithm is periodically executed in the interrupt routine to update the rotor angle to extract the maximum efficiency from the motor. This FOC rate can be configured by user based on the application bandwidth requirements.
Setting pUserInputRegs->closeLoop1.b.highFreqFOCEn to 0b to get the maximum FOC execution rate of 16kHz. Setting highFreqFOCEn to 1b reduces the maximum FOC execution rate by 2.
FOC routine can only be executed at a multiple of PWM frequency, Hence, the maximum achievable FOC rate of 16kHz is applicable for PWM frequencies with multiple of 16 (for example, 16kHz, 32kHz, 48kHz). For PWM frequencies of 20KHz, 40kHz, and so on, the maximum FOC rate is limited to 10kHz (20KHz/2, 40KHz/4, and so on).