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
The TIMx.CCCTL_xy[0/1] register can control whether each timer instance generates a zero, load, capture, or advance pulse based on the edge or polarity of the CCP input signal or trigger edge. The conditions that can be generated are:
Advance conditions
By default, the timer advances based on each TIMCLK. (ACOND = 0h). However, the timer can also advance based off the specified TIMx.CCCTL_xy[0/1].ACOND settings below.
ACOND | Condition |
---|---|
0h | Each TIMCLK |
1h | Rising edge of CCP or trigger assertion edge |
2h | Falling edge of CCP or trigger de-assertion edge |
3h | Either edge of CCP or trigger |
5h | CCP high or trigger assertion |
Load, zero, and capture conditions
Load, zero, and capture pulses can be generated the LCOND, ZCOND, and CCOND condition settings below in the TIMx.CCCTL_xy[0/1] register.
LCOND | ZCOND | CCOND | Condition |
---|---|---|---|
N/A | N/A | 0h | None |
1h | 1h | 1h | Rising edge of CCP or trigger assertion edge |
2h | 2h | 2h | Falling edge of CCP or trigger de-assertion edge |
3h | 3h | 3h | Either edge of CCP or trigger |