29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RM0008<br />

General-purpose timer (TIMx)<br />

14 General-purpose timer (TIMx)<br />

Low-density devices are <strong>STM32F101xx</strong>, <strong>STM32F102xx</strong> <strong>and</strong> <strong>STM32F103xx</strong><br />

microcontrollers where the Flash memory density ranges between 16 <strong>and</strong> 32 Kbytes.<br />

Medium-density devices are <strong>STM32F101xx</strong>, <strong>STM32F102xx</strong> <strong>and</strong> <strong>STM32F103xx</strong><br />

microcontrollers where the Flash memory density ranges between 64 <strong>and</strong> 128 Kbytes.<br />

High-density devices are <strong>STM32F101xx</strong> <strong>and</strong> <strong>STM32F103xx</strong> microcontrollers where the<br />

Flash memory density ranges between 256 <strong>and</strong> 512 Kbytes.<br />

Connectivity line devices are <strong>STM32F105xx</strong> <strong>and</strong> STM32F107xx microcontrollers.<br />

This Section applies to the whole STM32F10xxx family, unless otherwise specified.<br />

14.1 TIMx introduction<br />

The general-purpose timers consist of a 16-bit auto-reload counter driven by a<br />

programmable prescaler.<br />

They may be used for a variety of purposes, including measuring the pulse lengths of input<br />

signals (input capture) or generating output waveforms (output compare <strong>and</strong> PWM).<br />

Pulse lengths <strong>and</strong> waveform periods can be modulated from a few microseconds to several<br />

milliseconds using the timer prescaler <strong>and</strong> the RCC clock controller prescalers.<br />

The timers are completely independent, <strong>and</strong> do not share any resources. They can be<br />

synchronized together as described in Section 14.3.15.<br />

Doc ID 13902 Rev 9 319/995

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

Saved successfully!

Ooh no, something went wrong!