Subsection 8.3.7 The Rest of the Timer Family
The STM32C031C6’s five timers (TIM1, TIM3, TIM14, TIM16, TIM17) share the counter/prescaler/auto-reload core this chapter taught, and differ in their additional capabilities. All five have capture/compare channels, and with them all five, TIM14 included, can perform two further tasks: output compare can drive a pin high and low at programmed counts with no CPU involvement (that is PWM, which drives the motor chapters), and input capture can record the counter’s value at the instant an input pin changes. The differences are in channel count and extras: TIM14 has one channel and is the simplest; TIM16 and TIM17 have one channel each plus complementary outputs; TIM3 has four independent channels; TIM1 adds advanced control features such as complementary outputs with dead-time insertion. In the vector table (RM0490 §11.3, Table 40), TIM14 is position 19, TIM16 is 21, and TIM17 is 22; TIM1 has two vectors (13 and 14), and TIM3 has one (16).
