SLAU846B June 2023 – November 2024 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3106 , MSPM0G3107 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507
To specify what CC instance controls the load, zero, or advance event, the CZC, CAC, and CLC fields are used for configuration in the TIMx.CTRCTL register.
See Table 27-8 for counter zero control settings. For example, if a timer triggers a ZCOND event in Channel 1, then CZC should be set to 1h to register that a ZCOND event in channel 1 triggers the zero event.
TIMx.CTRCTL.CZC | Setting |
---|---|
0h | Channel 0 ZCOND event zeroes the TIMx instance |
1h | Channel 1 ZCOND event zeroes the TIMx instance |
2h | Channel 2 ZCOND event zeroes the TIMx instance (4 CC timer only) |
3h | Channel 3 ZCOND event zeroes the TIMx instance (4 CC timer only) |
4h | 2-input QEI mode. See Section 27.2.3.1.3 |
5h | 3-input QEI mode. SeeSection 27.2.3.1.3 |
See Table 27-9 for counter load control settings. For example, if a timer triggers a LCOND event in Channel 2, then CLC should be set to 2h to register that a LCOND event in channel 2 triggers the load event.
TIMx.CTRCTL.CLC | Setting |
---|---|
0h | Channel 0 LCOND event loads the TIMx instance |
1h | Channel 1 LCOND event loads the TIMx instance |
2h | Channel 2 LCOND event loads the TIMx instance (4 CC timer only) |
3h | Channel 3 LCOND event loads the TIMx instance (4 CC timer only) |
4h | 2-input QEI mode. See Section 27.2.3.1.3 |
5h | 3-input QEI mode. SeeSection 27.2.3.1.3 |
See Table 27-10 for counter advance control settings. For example, if a timer triggers a ACOND event in Channel 3, then CAC should be set to 3h to register that a ACOND event in channel 3 triggers the advance event.
TIMx.CTRCTL.CAC | Setting |
---|---|
0h | Channel 0 ACOND event advances the TIMx instance |
1h | Channel 1 ACOND event advances the TIMx instance |
2h | Channel 2 ACOND event advances the TIMx instance (4 CC timer only) |
3h | Channel 3 ACOND event advances the TIMx instance (4 CC timer only) |
4h | 2-input QEI mode. See Section 27.2.3.1.3 |
5h | 3-input QEI mode. SeeSection 27.2.3.1.3 |