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
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 23-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 |