This is information on a product in full production.
March 2021 DS6372 Rev 17 1/141
STM8L151x4, STM8L151x6,
STM8L152x4, STM8L152x6
8-bit ultra-low-power MCU, up to 32 KB Flash, 1 KB Data EEPROM,
RTC, LCD, timers, USART, I2C, SPI, ADC, DAC, comparators
Datasheet - production data
Features
Operating conditions
Operating power supply range 1.8 V to
3.6 V (down to 1.65 V at power down)
Temp. range: - 40 °C to 85, 105 or 125 °C
Low power features
5 low power modes: Wait, Low power run
(5.1 µA), Low power wait (3 µA), Active-halt
with full RTC (1.3 µA), Halt (350 nA)
Consumption: 195 µA/MHz + 440 µA
Ultra-low leakage per I/0: 50 nA
Fast wakeup from Halt: 4.7 µs
Advanced STM8 core
Harvard architecture and 3-stage pipeline
Max freq. 16 MHz, 16 CISC MIPS peak
Up to 40 external interrupt sources
Reset and supply management
Low power, ultra-safe BOR reset with
5 selectable thresholds
Ultra-low-power POR/PDR
Programmable voltage detector (PVD)
Clock management
1 to 16 MHz crystal oscillator
32 kHz crystal oscillator
Internal 16 MHz factory-trimmed RC
Internal 38 kHz low consumption RC
Clock security system
Low power RTC
BCD calendar with alarm interrupt
Auto-wakeup from Halt w/ periodic interrupt
LCD: up to 4x28 segments w/ step-up
converter
Memories
Up to 32 Kbytes of Flash program memory
and 1 Kbyte of data EEPROM with ECC,
RWW
Flexible write and read protection modes
Up to 2 Kbytes of RAM
DMA
4 channels; supported peripherals: ADC,
DAC, SPI, I2C, USART, timers
1 channel for memory-to-memory
12-bit DAC with output buffer
12-bit ADC up to 1 Msps/25 channels
T. sensor and internal reference voltage
2 ultra-low-power comparators
1 with fixed threshold and 1 rail to rail
Wakeup capability
Timers
Two 16-bit timers with 2 channels (used as
IC, OC, PWM), quadrature encoder
One 16-bit advanced control timer with
3 channels, supporting motor control
One 8-bit timer with 7-bit prescaler
2 watchdogs: 1 window, 1 independent
Beeper timer with 1, 2 or 4 kHz frequencies
Communication interfaces
Synchronous serial interface (SPI)
Fast I2C 400 kHz SMBus and PMBus™
USART (ISO 7816 interface and IrDA)
Up to 41 I/Os, all mappable on interrupt vectors
Up to 16 capacitive sensing channels
supporting touchkey, proximity, linear touch
and rotary touch sensors
Development support
Fast on-chip programming and non
intrusive debugging with SWIM
Bootloader using USART
96-bit unique ID
Table 1. Device summary
Reference Part number
STM8L151xx
(without LCD)
STM8L151C4, STM8L151C6, STM8L151K4,
STM8L151K6, STM8L151G4, STM8L151G6
STM8L152xx
(with LCD)
STM8L152C4, STM8L152C6, STM8L152K4,
STM8L152K6
LQFP48
7x7 mm
UFQFPN48
LQFP32
7x7 mm
UFQFPN32 (5x5 mm)
7x7 mm
UFQFPN28 (4x4 mm)
WLCSP28
CSP
www.st.com
Contents STM8L151x4/6, STM8L152x4/6
2/141 DS6372 Rev 17
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1 Device overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2 Ultra-low-power continuum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3 Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.1 Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.2 Central processing unit STM8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2.1 Advanced STM8 Core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2.2 Interrupt controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.3 Reset and supply management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.3.1 Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.3.2 Power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.3.3 Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.4 Clock management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.5 Low power real-time clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.6 LCD (Liquid crystal display) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.7 Memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.8 DMA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.9 Analog-to-digital converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.10 Digital-to-analog converter (DAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.11 Ultra-low-power comparators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.12 System configuration controller and routing interface . . . . . . . . . . . . . . . 21
3.13 Touch sensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.14 Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.14.1 TIM1 - 16-bit advanced control timer . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.14.2 16-bit general purpose timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.14.3 8-bit basic timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.15 Watchdog timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.15.1 Window watchdog timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.15.2 Independent watchdog timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23