SLAU893B October 2023 – July 2024 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-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 15-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 15-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 15-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 15.2.3.1.2.2 and Section 15.2.3.1.2.3 on how to calculate period and pulse-width captures based on the XOR'ed input signal.
Figure 15-22 shows the input signal to the CC block which can be used for speed calculations.
Hall Input Mode Configuration