SPRUJF2A March 2026 – March 2026 AM13E23019
All TIMx instances have 16-bit counter blocks except for TIMG12 and TIMG13, which have 32-bit counter blocks. The timer counter register (TIMx.CTR) can count down, up-and-down, or up depending on the operation mode. It can also be read or written with software.
The counter can advance (increment or decrement) using the internal clock TIMCLK, with the rising and/or falling edge of an timer external input, or an internal trigger event from other peripherals (see advance condition). By default, each count occurs with each rising edge of the TIMCLK signal.
Enabling the TIMx Counter
The counter is clocked by the prescaler output TIMCLK. The counter enable bit TIMx.CTRCTL.EN can be enabled in two ways: