Download Print this page

ST STM32F301 6 Series Reference Manual page 426

Advanced arm-based 32-bit mcus

Advertisement

General-purpose timer (TIM2)
18
General-purpose timer (TIM2)
18.1
TIM2 introduction
The general-purpose timer TIM2 consists of a 32-bit auto-reload counter driven by a
programmable prescaler.
The timer may be used for a variety of purposes, including measuring the pulse lengths of
input signals (input capture) or generating output waveforms (output compare and PWM).
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.
18.2
TIM2 main features
32-bit up, down, up/down auto-reload counter.
16-bit programmable prescaler used to divide (also "on the fly") the counter clock
frequency by any factor between 1 and 65535.
Up to 4 independent channels for:
Synchronization circuit to control the timer with external signals and to interconnect
several timers.
Interrupt/DMA generation on the following events:
Supports incremental (quadrature) encoder and hall-sensor circuitry for positioning
purposes
Trigger input for external clock or cycle-by-cycle current management
426/874
Input capture
Output compare
PWM generation (Edge- and Center-aligned modes)
One-pulse mode output
Update: counter overflow/underflow, counter initialization (by software or
internal/external trigger)
Trigger event (counter start, stop, initialization or count by internal/external trigger)
Input capture
Output compare
RM0366 Rev 5
RM0366

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32F301 6 Series and is the answer not in the manual?

This manual is also suitable for:

Stm32f301 8 seriesStm32f318 8 series