STM8L052R8 Value Line, 8-bit ultralow power MCU, 64-KB Flash, 256-byte data EEPROM, RTC, LCD, timers, USART, I2C, SPI, ADC Datasheet - production data Features Operating conditions Operating power supply: 1.8 V to 3.6 V Temperature range: -40 C to 85 C Low power features 5 low power modes: Wait, Low power run LQFP64 (5.9 A), Low power wait (3 A), Active-halt with full RTC (1.4 A), Halt (400 nA) DMA Dynamic power consumption: 4 channels supporting ADC, SPIs, I2C, 200 A/MHz + 330 A USARTs, timers Ultra-low leakage per I/0: 50 nA 1 channel for memory-to-memory Fast wakeup from Halt: 4.7 s 12-bit ADC up to 1 Msps/27 channels Advanced STM8 core Internal reference voltage Harvard architecture and 3-stage pipeline Timers Max freq. 16 MHz, 16 CISC MIPS peak Three 16-bit timers with 2 channels (used Up to 40 external interrupt sources as IC, OC, PWM), quadrature encoder Reset and supply management One 16-bit advanced control timer with 3 channels, supporting motor control Low power, ultra-safe BOR reset with 5 programmable 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 32 kHz and 1 to 16 MHz crystal oscillators Two synchronous serial interfaces (SPI) Internal 16 MHz factory-trimmed RC Fast I2C 400 kHz SMBus and PMBus 38 kHz low consumption RC Three USARTs (ISO 7816 interface + IrDA) Clock security system Up to 54 I/Os, all mappable on interrupt vectors Low power RTC Development support BCD calendar with alarm interrupt Fast on-chip programming and non- Digital calibration with +/- 0.5ppm accuracy intrusive debugging with SWIM Advanced anti-tamper detection Bootloader using USART LCD: 8x24 or 4x28 w/ step-up converter Memories 64 KB Flash program memory and 256 bytes data EEPROM with ECC, RWW Flexible write and read protection modes 4 KB of RAM April 2019 DS9111 Rev 4 1/112 This is information on a product in full production. www.st.comContents STM8L052R8 Contents 1 Introduction 8 2 Description . 9 2.1 Device overview 10 2.2 Ultra low power continuum .11 3 Functional overview 12 3.1 Low power modes 13 3.2 Central processing unit STM8 . 14 3.2.1 Advanced STM8 Core 14 3.2.2 Interrupt controller . 14 3.3 Reset and supply management 15 3.3.1 Power supply scheme 15 3.3.2 Power supply supervisor 15 3.3.3 Voltage regulator 15 3.4 Clock management . 16 3.5 Low power real-time clock 17 3.6 LCD (Liquid crystal display) . 18 3.7 Memories . 18 3.8 DMA . 18 3.9 Analog-to-digital converter 19 3.10 System configuration controller and routing interface . 19 3.11 Timers . 19 3.11.1 TIM1 - 16-bit advanced control timer . 20 3.11.2 16-bit general purpose timers 20 3.11.3 8-bit basic timer . 20 3.12 Watchdog timers . 20 3.12.1 Window watchdog timer . 20 3.12.2 Independent watchdog timer . 20 3.13 Beeper . 21 3.14 Communication interfaces 21 3.14.1 SPI . 21 3.14.2 IC . 21 2/112 DS9111 Rev 4