SLUUDM5 March 2026 MSPM0G1507 , MSPM0G1519 , MSPM0G3507 , MSPM0G3519
The hall angle table values shown in Table 7-7 can be auto generated with Hall Calibration Routine as described below:
The following table shows the related variables used for Hall calibration.
| Variable / Macro | Description |
|---|---|
| pUserInputRegs->mtrStartUp1.b.calibCurrLimit | Current limit during Hall calibration in % of base current. |
| pUserInputRegs->mtrStartUp1.b.calibAlignTime | Time taken for initial rotor alignment to CALIBRATION_ALIGN_ANGLE. |
| pUserInputRegs->mtrStartUp1.b.calibRunTime | Time spent while calibrating Hall for each CALIBRATION_ANGLE_STEP. |
| pUserInputRegs->mtrStartUp1.b.currRampRate | Initial current ramp rate during Motor_Align till the maximum current is reached. |
| pUserCtrlRegs->algoDebugCtrl2.b.hallCaliEnable | Use to enable Automatic Hall Calibration. |
| pUserCtrlRegs->speedCtrl.b.speedInput | Target Motor Speed/Torque value in % of Speed or Torque command × 32768. |
| g_pMC_App->hallAngleTableForward | Hall angle table used for forward rotation. The value is passed from forwardHallIndexLUT if not perform Hall calibration. |
| g_pMC_App->hallAngleTableReverse | Hall angle table used for reverse rotation. The value is passed from reverseHallIndexLUT if not perform Hall calibration. |
| CALIBRATION_ALIGN_ANGLE | Initial rotor alignment defined in hallCalib.h file. |
| CALIBRATION_ANGLE_STEP | Calibration angle step size defined in hallCalib.h file. |