Datasheet
Functional overview STM8L051F3
16/46 Doc ID 022985 Rev 1
3.5 Low power real-time clock
The real-time clock (RTC) is an independent binary coded decimal (BCD) timer/counter.
Six byte locations contain the second, minute, hour (12/24 hour), week day, date, month,
year, in BCD (binary coded decimal) format. Correction for 28, 29 (leap year), 30, and 31
day months are made automatically.
It provides a programmable alarm and programmable periodic interrupts with wakeup from
Halt capability.
● Periodic wakeup time using the 32.768 kHz LSE with the lowest resolution (of 61 µs) is
from min. 122 µs to max. 3.9 s. With a different resolution, the wakeup time can reach
36 hours
● Periodic alarms based on the calendar can also be generated from every second to
every year
3.6 Memories
The low density value line STM8L05xxx devices have the following main features:
● Up to 1 Kbyte of RAM
● The non-volatile memory is divided into three arrays:
– 8 Kbytes of low-density embedded Flash program memory
– 256 bytes of Data EEPROM
–Option bytes
The EEPROM embeds the error correction code (ECC) feature.
The option byte protects part of the Flash program memory from write and readout piracy.
3.7 DMA
A 4-channel direct memory access controller (DMA1) offers a memory-to-memory and
peripherals-from/to-memory transfer capability. The 4 channels are shared between the
following IPs with DMA capability: ADC1, I2C1, SPI1, USART1, and the three timers.
3.8 Analog-to-digital converter
● 12-bit analog-to-digital converter (ADC1) with 10 channels (including 1 fast channel)
and internal reference voltage
● Conversion time down to 1 µs with f
SYSCLK
= 16 MHz
● Programmable resolution
● Programmable sampling time
● Single and continuous mode of conversion
● Scan capability: automatic conversion performed on a selected group of analog inputs
● Analog watchdog
● Triggered by timer
Note: ADC1 can be served by DMA1.