AN3371 STM32 RTC Application Note

This application note describes the features of the real-time clock (RTC) controller embedded in Ultra Low Power Medium-density, Ultra Low Power High-density, F0, F2 and F4 series devices microcontrollers, and the steps required to configure the RTC for use with the calendar, alarm, periodic wakeup unit, tamper detection, timestamp and calibration applications. Examples are provided with configuration information to enable you to quickly and correctly configure the RTC for calendar, alarm, periodic wakeup unit, tamper detection, time stamp and calibration applications.


AN3371 STM32 RTC Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
44
File format
PDF
File size
489 KB
Published
06 August, 2012
Updated
30 September, 2023
MD5 checksum
C8D762692CB1CF14E1F849EC97EAED3B

About this manual

The document provides an overview of the advanced features of the Real-Time Clock (RTC) embedded in STM32 microcontrollers, including calendar management, alarms, periodic wakeup units, digital calibration, synchronization, time-stamping, and tamper detection.

It details the steps required to configure the RTC for various applications such as chronometers, alarm clocks, and small electronic agendas. The note includes examples based on specific firmware libraries and reference manuals for STM32L1xx, STM32F0xx, STM32F2xx, and STM32F4xx devices.

What's inside

  • Overview of the STM32 advanced RTC
  • RTC calendar initialization
  • RTC clock configuration
  • RTC alarms and sub-second configuration
  • RTC periodic wakeup unit
  • RTC digital calibration (coarse and smooth)
  • Synchronizing the RTC
  • Time-stamp function
  • RTC tamper detection function
  • Backup registers and low-power modes

Frequently asked questions

What clock sources can drive the STM32 RTC calendar?

The RTC calendar can be driven by three clock sources: LSE, LSI, or HSE.

Does the STM32 RTC support daylight saving time adjustment?

Yes, the RTC offers daylight saving time adjustment programmable by software.

Download PDF (489 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →