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
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 25.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 25-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) |