Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
stm32:peripherals:timer_2..5 [2016/01/22 12:24] – feur | stm32:peripherals:timer_2..5 [2016/06/28 07:46] (current) – removed feur | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Timer 2..5 ====== | ||
- | {{timer_complete.svg}} | ||
- | |||
- | ===== Introduction ===== | ||
- | |||
- | The general-purpose timers consist of a 16-bit or 32-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 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. The timers are completely independent, | ||
- | |||
- | ===== Features ===== | ||
- | |||
- | * 16-bit (TIM3 and TIM4) or 32-bit (TIM2 and TIM5) 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 65536. | ||
- | * Up to 4 independent channels for: | ||
- | * Input capture | ||
- | * Output compare | ||
- | * PWM generation (Edge- and Center-aligned modes) | ||
- | * One-pulse mode output | ||
- | * Synchronization circuit to control the timer with external signals and to interconnect several timers. | ||
- | * Interrupt/ | ||
- | * Update: counter overflow/ | ||
- | * Trigger event (counter start, stop, initialization or count by internal/ | ||
- | * Input capture | ||
- | * Output compare | ||
- | * Supports incremental (quadrature) encoder and hall-sensor circuitry for positioning purposes | ||
- | * Trigger input for external clock or cycle-by-cycle current management | ||
- | |||
- | ===== Clock Source ===== | ||
- | |||
- | {{timer_clock.svg}} | ||
- | |||
- | ===== Base Timer ===== | ||
- | |||
- | {{timer_base.svg}} | ||
- | |||
- | ===== Output Compare ===== | ||
- | |||
- | {{timer_output.svg}} | ||
- | |||
- | ===== Legende ===== | ||
- | |||
- | {{legende.svg}} |