12.07.2015 Views

Ultralow power ARM-based 32-bit MCU with 384 Kbytes Flash ... - Keil

Ultralow power ARM-based 32-bit MCU with 384 Kbytes Flash ... - Keil

Ultralow power ARM-based 32-bit MCU with 384 Kbytes Flash ... - Keil

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

Functional overviewSTM<strong>32</strong>L162VD, STM<strong>32</strong>L162ZD, STM<strong>32</strong>L162QD, STM<strong>32</strong>L162RD3.18 Timers and watchdogsThe ultralow <strong>power</strong> STM<strong>32</strong>L162xD devices include seven general-purpose timers, two basictimers, and two watchdog timers.Table 2 compares the features of the general-purpose and basic timers.Table 2.TimerTIM2,TIM3,TIM4TIM5TIM9TIM10,TIM11TIM6,TIM7Timer feature comparisonCounterresolution16-<strong>bit</strong><strong>32</strong>-<strong>bit</strong>16-<strong>bit</strong>16-<strong>bit</strong>16-<strong>bit</strong>Counter typeUp, down,up/downUp, down,up/downUp, down,up/downUpUpPrescaler factorAny integer between1 and 65536Any integer between1 and 65536Any integer between1 and 65536Any integer between1 and 65536Any integer between1 and 65536DMA requestgenerationCapture/comparechannelsComplementaryoutputsYes 4 NoYes 4 NoNo 2 NoNo 1 NoYes 0 No3.18.1 General-purpose timers (TIM2, TIM3, TIM4, TIM5, TIM9, TIM10 andTIM11)There are seven synchronizable general-purpose timers embedded in the STM<strong>32</strong>L162xDdevices (see Table 2 for differences).TIM2, TIM3, TIM4, TIM5TIM2, TIM3, TIM4 are <strong>based</strong> on 16-<strong>bit</strong> auto-reload up/down counter. TIM5 is <strong>based</strong> on a <strong>32</strong>-<strong>bit</strong> auto-reload up/down counter. They include a 16-<strong>bit</strong> prescaler. They feature fourindependent channels each for input capture/output compare, PWM or one-pulse modeoutput. This gives up to 16 input captures/output compares/PWMs on the largest packages.TIM2, TIM3, TIM4, TIM5 general-purpose timers can work together or <strong>with</strong> the TIM10,TIM11 and TIM9 general-purpose timers via the Timer Link feature for synchronization orevent chaining. Their counter can be frozen in debug mode. Any of the general-purposetimers can be used to generate PWM outputs.TIM2, TIM3, TIM4, TIM5 all have independent DMA request generation.These timers are capable of handling quadrature (incremental) encoder signals and thedigital outputs from 1 to 3 hall-effect sensors.24/124 Doc ID 022268 Rev 2

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

Saved successfully!

Ooh no, something went wrong!