SLAU923B June 2025 – April 2026 MSPM0H3216 , MSPM0H3216-Q1
When the device is out of reset, TIMx is disabled. Writing 1 to the TIMx.CTRCTL.EN bit enables the counter. This bit is automatically cleared if TIMx.CTRCTL.REPEAT=0 (do not automatically reload), and the counter value equals zero.
TIMx has three counting modes when enabled: down, up/down, and up. The operating mode is selected by TIMx.CTRCTL.CM bit (shown in Table 17-3). In up/down mode, after the counter is enabled, the timer will start counting from the TIMx.CTRCTL.CVAE setting.
| TIMx.CTRCTL.CM | Counting Mode |
|---|---|
| 0 | Down |
| 1 | Up/Down |
2 | Up |
| Count Value After Enable (CVAE) | Description |
|---|---|
| 0 | LOAD value |
| 1 | Unchanged from current value |
2 | Zero value |
Counter value after enable (CVAE) is only applicable for Up/Down mode.