SPRUJF2A March 2026 – March 2026 AM13E23019
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 the counter), and the counter value equals zero in down counting mode or the LOAD value in up counting mode.
TIMx has three counting modes when enabled: down, up/down, and up. The operating mode is selected by TIMx.CTRCTL.CM bit (shown in TIMx Counting Modes (CM)). After the counter is enabled, the timer will start counting from the value specified by the TIMx.CTRCTL.CVAE bitfield.
| TIMx.CTRCTL.CM | Counting Mode |
|---|---|
| 0 | Down |
| 1 | Up/Down |
|
2 |
Up |
| Count Value After Enable (CVAE) | Description |
Supported Counting Modes |
|---|---|---|
| 0 |
LOAD value |
Up, up/down, down |
| 1 |
Unchanged from current Counter value |
Up/down |
|
2 |
Zero value |
Up, up/down, down |