29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

General-purpose timer (TIMx)<br />

RM0008<br />

14.2 TIMx main features<br />

General-purpose TIMx (TIM2, TIM3, TIM4 <strong>and</strong> TIM5) timer features include:<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

16-bit up, down, up/down auto-reload counter.<br />

16-bit programmable prescaler allowing dividing (also “on the fly”) the counter clock<br />

frequency either by any factor between 1 <strong>and</strong> 65535.<br />

Up to 4 independent channels for:<br />

– Input capture<br />

– Output compare<br />

– PWM generation (Edge <strong>and</strong> Center-aligned mode)<br />

– One-pulse mode output<br />

Synchronization circuit to control the timer with external signals <strong>and</strong> to interconnect<br />

several timers between them.<br />

Interrupt/DMA generation on the following events:<br />

– Update: counter overflow/underflow, counter initialization (by software or<br />

internal/external trigger)<br />

– Trigger event (counter start, stop, initialization or count by internal/external trigger)<br />

– Input capture<br />

– Output compare<br />

Supports incremental (quadrature) encoder <strong>and</strong> hall-sensor cicuitry for positioning<br />

purposes<br />

Trigger intput for external clock or cycle-by-cycle current management<br />

320/995 Doc ID 13902 Rev 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!