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 UFQFPN32 (5x5 mm) LQFP48 UFQFPN48 Operating power supply range 1.8 V to 7x7 mm 7x7 mm LQFP32 CSP 3.6 V (down to 1.65 V at power down) 7x7 mm Temp. range: - 40 C to 85, 105 or 125 C UFQFPN28 (4x4 mm) WLCSP28 Low power features 1 channel for memory-to-memory 5 low power modes: Wait, Low power run (5.1 A), Low power wait (3 A), Active-halt 12-bit DAC with output buffer with full RTC (1.3 A), Halt (350 nA) 12-bit ADC up to 1 Msps/25 channels Consumption: 195 A/MHz + 440 A T. sensor and internal reference voltage Ultra-low leakage per I/0: 50 nA Fast wakeup from Halt: 4.7 s 2 ultra-low-power comparators 1 with fixed threshold and 1 rail to rail Advanced STM8 core Wakeup capability Harvard architecture and 3-stage pipeline Max freq. 16 MHz, 16 CISC MIPS peak Timers Up to 40 external interrupt sources Two 16-bit timers with 2 channels (used as IC, OC, PWM), quadrature encoder Reset and supply management One 16-bit advanced control timer with Low power, ultra-safe BOR reset with 3 channels, supporting motor control 5 selectable thresholds One 8-bit timer with 7-bit prescaler Ultra-low-power POR/PDR 2 watchdogs: 1 window, 1 independent Programmable voltage detector (PVD) Beeper timer with 1, 2 or 4 kHz frequencies Clock management Communication interfaces 1 to 16 MHz crystal oscillator Synchronous serial interface (SPI) 32 kHz crystal oscillator Fast I2C 400 kHz SMBus and PMBus Internal 16 MHz factory-trimmed RC USART (ISO 7816 interface and IrDA) Internal 38 kHz low consumption RC Up to 41 I/Os, all mappable on interrupt vectors Clock security system Low power RTC Up to 16 capacitive sensing channels supporting touchkey, proximity, linear touch BCD calendar with alarm interrupt and rotary touch sensors Auto-wakeup from Halt w/ periodic interrupt LCD: up to 4x28 segments w/ step-up Development support converter Fast on-chip programming and non intrusive debugging with SWIM Memories Bootloader using USART Up to 32 Kbytes of Flash program memory 96-bit unique ID and 1 Kbyte of data EEPROM with ECC, RWW Table 1. Device summary Flexible write and read protection modes Reference Part number Up to 2 Kbytes of RAM STM8L151xx STM8L151C4, STM8L151C6, STM8L151K4, DMA (without LCD) STM8L151K6, STM8L151G4, STM8L151G6 4 channels supported peripherals: ADC, STM8L152xx STM8L152C4, STM8L152C6, STM8L152K4, DAC, SPI, I2C, USART, timers (with LCD) STM8L152K6 March 2021 DS6372 Rev 17 1/141 This is information on a product in full production. www.st.comContents STM8L151x4/6, STM8L152x4/6 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 2/141 DS6372 Rev 17