SLAU893B October 2023 – July 2024 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-Q1
3-signal QEI mode is similar to the 2-signal mode with additional index input signal IDX. Generally, IDX input pulses once per rotation which can be used to reset the counter. It is used in one of two applications:
QEI 3-Signal Mode Configuration
Configure input capture settings as described in Section 15.2.3.1.1, if desired.
The IDX input is sampled when a rising edge is detected. The IDX signal affects the counter value depending on the direction as shown inTable 15-13 and
Direction (DIR) | IDX | Counter Action |
---|---|---|
1 | Rising | Zero (TIMx.CTR is set to zero) |
0 | Rising | Load (TIMx.CTR is set to TIMx.LOAD) |