SLAU846B June 2023 – November 2024 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1519 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3519
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 27-3). 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 | Supported Counting Modes |
---|---|---|
0 | LOAD value |
Up, up/down, down |
1 | Unchanged from current value |
Up/down |
2 |
Zero value |
Up, up/down, down |