SLAU893B October 2023 – July 2024 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-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 |