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.
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.
| Supported Microcontroller Families | medium density STM8L15x and medium+ and high density STM8L15x/16x devices |
|---|---|
| Calendar Format | BCD (binary-coded decimal) |
| Sub-second Resolution Range | up to 0xFFFF or 65535 in decimal |
| Sub-second Adjustment Range | up to 32767 (0x7FFF) sub-seconds |
It covers the real-time clock controller embedded in medium density STM8L15x and medium+ and high density STM8L15x/16x devices.
Yes, a sub-second field is available on medium+ and high density devices in binary format.
Yes, the alarm event can be routed to a specific output pad with configurable polarity.