SLAU846A June 2023 – October 2023 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1
In TIMGx instances with QEI support, three digital Hall signals can be input into CCP channel 0 (CCP0), CCP channel input 1 (CCP1), and IDX for position control of 3-phase Hall-sensored motor applications. Hall signals are used to detect real-time motor position in motor control applications and can be used for speed computation measurements, position control, or motor stall status.
Table 25-14 shows the signal mapping for Hall signals A (U), B (V), and C (W) to TIMG capture/compare input signals.
Hall input signal | TIMx input |
---|---|
HALL A / HALL U | CCP0 |
HALL B / HALL V | CCP1 |
HALL C / HALL W | IDX |
As shown in Figure 25-21, the input capture module provides a 3-input XOR of synced CCP0, CCP1, and IDX signals to create a frequency generator (FG) signal. The XOR output signal is selected when IFCTL_xy[0/1].ISEL is set to 4h. See Figure 25-21 for XOR option in the input capture block diagram.
The XOR'ed output signal is propagated to the CC block and a period or pulse-width capture can be used to compute the linear motor speed in relation to the calculated period or pulse width in the TIMx.CC register. See Section 25.2.3.1.2.2 and Section 25.2.3.1.2.3 on how to calculate period and pulse-width captures based on the XOR'ed input signal.
Figure 25-22 shows the input signal to the CC block which can be used for speed calculations.
Hall Input Mode Configuration