SLAU847D October 2022 – May 2024 MSPM0L1105 , MSPM0L1106 , MSPM0L1227 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2227 , MSPM0L2228 , MSPM0L2228-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 23.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 23-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) |