STMicroelectronics STM8L15x/STM8L16x Real-Time Clock Application Note AN3133

This application note describes the features of the real-time clock (RTC) controller embedded in medium density STM8L15x and medium+ and high density STM8L15x/16x devices microcontrollers, together with the steps required to configure the RTC for use with the calendar, alarm, periodic wakeup unit, tamper detection and chronometer. Five applicative examples are provided with useful configuration information to allow the user to quickly and correctly configure the RTC for calendar, alarm, periodic wakeup unit, tamper detection and chronometer applications.


STMicroelectronics STM8L15x/STM8L16x Real-Time Clock Application Note AN3133 - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
43
File format
PDF
File size
445 KB
Published
07 August, 2012
Updated
28 September, 2023
MD5 checksum
064026B27D4F5943CBB1AFC8D99747F6

About this manual

The document details the capabilities of the Real-Time Clock (RTC) found in specific STM8L series microcontrollers. Key features include a full-featured calendar tracking time and date, programmable alarms with various masking options, a periodic wakeup unit for low-power operation, smooth digital calibration to adjust clock accuracy, and tamper detection circuits.

The guide provides step-by-step instructions on how to initialize the calendar, program alarms, and configure the auto-wakeup unit. It includes five specific application examples covering calendar/alarm usage, waking from low power modes, periodic event generation, tamper detection, and chronometer functionality.

What's inside

  • Real-time clock overview
  • RTC calendar features
  • Sub-seconds configuration
  • Fine RTC calendar adjustments
  • RTC alarm programming
  • Periodic wakeup unit
  • RTC smooth digital calibration
  • RTC tamper detection
  • Low-power consumption modes
  • Programming the RTC

Specifications

Supported Microcontroller Familiesmedium density STM8L15x and medium+ and high density STM8L15x/16x devices
Calendar FormatBCD (binary-coded decimal)
Sub-second Resolution Rangeup to 0xFFFF or 65535 in decimal
Sub-second Adjustment Rangeup to 32767 (0x7FFF) sub-seconds

Frequently asked questions

What microcontrollers does this application note cover?

It covers the real-time clock controller embedded in medium density STM8L15x and medium+ and high density STM8L15x/16x devices.

Does the RTC calendar support sub-seconds?

Yes, a sub-second field is available on medium+ and high density devices in binary format.

Can the alarm be routed to an output pad?

Yes, the alarm event can be routed to a specific output pad with configurable polarity.

Download PDF (445 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →