General-purpose timers (TIM16/TIM17)
27
General-purpose timers (TIM16/TIM17)
27.1
TIM16/TIM17 introduction
The TIM16/TIM17 timers consist of a 16-bit auto-reload counter driven by a programmable
prescaler.
They may be used for a variety of purposes, including measuring the pulse lengths of input
signals (input capture) or generating output waveforms (output compare, PWM,
complementary PWM with dead-time insertion).
Pulse lengths and waveform periods can be modulated from a few microseconds to several
milliseconds using the timer prescaler and the RCC clock controller prescalers.
The TIM16/TIM17 timers are completely independent, and do not share any resources.
27.2
TIM16/TIM17 main features
The TIM16/TIM17 timers include the following features:
•
16-bit auto-reload upcounter
•
16-bit programmable prescaler used to divide (also "on the fly") the counter clock
frequency by any factor between 1 and 65535
•
One channel for:
–
–
–
–
•
Complementary outputs with programmable dead-time
•
Repetition counter to update the timer registers only after a given number of cycles of
the counter
•
Break input to put the timer's output signals in the reset state or a known state
•
Interrupt/DMA generation on the following events:
–
–
–
–
894/1454
Input capture
Output compare
PWM generation (edge-aligned mode)
One-pulse mode output
Update: counter overflow
Input capture
Output compare
Break input
RM0453 Rev 2
RM0453
Need help?
Do you have a question about the STM32WL55JC and is the answer not in the manual?
Questions and answers