SLAU847E October 2022 – May 2025 MSPM0L1105 , MSPM0L1106 , MSPM0L1116 , MSPM0L1117 , MSPM0L1227 , MSPM0L1227-Q1 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2227 , MSPM0L2227-Q1 , MSPM0L2228 , MSPM0L2228-Q1
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 24-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 24.2.3.1.3 |
| 5h | 3-input QEI mode. SeeSection 24.2.3.1.3 |
See Table 24-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 24.2.3.1.3 |
| 5h | 3-input QEI mode. SeeSection 24.2.3.1.3 |
See Table 24-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 24.2.3.1.3 |
| 5h | 3-input QEI mode. SeeSection 24.2.3.1.3 |