General-Purpose Timers (Tim15/Tim16/Tim17); Tim15/Tim16/Tim17 Introduction; Tim15 Main Features - STMicroelectronics RM0365 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

General-purpose timers (TIM15/TIM16/TIM17)

22
General-purpose timers (TIM15/TIM16/TIM17)
22.1

TIM15/TIM16/TIM17 introduction

The TIM15/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 TIM15/TIM16/TIM17 timers are completely independent, and do not share any
resources. They can be synchronized together as described in
synchronization
22.2

TIM15 main features

TIM15 includes 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
Up to 2 independent channels for:
Complementary outputs with programmable dead-time (for channel 1 only)
Synchronization circuit to control the timer with external signals and to interconnect
several timers together
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:
619/1080
(TIM15).
Input capture
Output compare
PWM generation (edge mode)
One-pulse mode output
Update: counter overflow, counter initialization (by software or internal/external
trigger)
Trigger event (counter start, stop, initialization or count by internal/external trigger)
Input capture
Output compare
Break input (interrupt request)
DocID025202 Rev 7
RM0365
Section 22.4.20: Timer

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RM0365 and is the answer not in the manual?

Questions and answers

Table of Contents