STMicroelectronics AN4013 STM32 Timer Overview Application Note

This document introduces the timer peripherals in the STM32F1xx, STM32F2xx, STM32F4xx and STM32L1xx microcontroller families, including the various modes and specific features of the timers, such as clock sources, how to use the available modes and features, how to compute the time base in each configuration, timer synchronization sequences and the advanced features for motor control applications.


STMicroelectronics AN4013 STM32 Timer Overview Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
27
File format
PDF
File size
200 KB
Published
06 August, 2012
Updated
30 September, 2023
MD5 checksum
B8935EAC5C0CBD5B2E8CC1F0122AF3A7

About this manual

This document presents an overview of the timer peripherals available in the STM32F1xx, STM32F2xx, STM32F4xx, and STM32L1xx microcontroller families. It describes various modes and specific features, including clock sources, input capture, output compare, PWM, and one-pulse modes. The text also explains how to compute time bases in different configurations and details timer synchronization sequences.

What's inside

  • Introduction
  • Overview
  • Basic timer modes
  • Clock input sources
  • Timebase generator
  • Timer input capture mode
  • Timer output compare mode
  • Timer PWM mode
  • Timer synchronization
  • Advanced features for motor control

Frequently asked questions

What is the maximum external clock frequency for the timer?

The document states that the maximum external clock frequency should be verified.

How does a 16-bit timer generate an update event period?

It generates an update event from a nanosecond to a few minutes depending on the clock, prescaler and autoreload parameters.

What is the formula for calculating the update event period in external clock mode 2?

The calculation uses the external clock frequency connected to the ETR pin divided by specific register values.

Download PDF (200 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →