STM8L052C6 Value Line, 8-bit ultra-low-power MCU, 32-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 LQFP48 Low-power features 7 x 7 mm Five low-power modes: Wait, Low-power DMA run (5.1 A), Low-power wait (3 A), Active- Four channels supporting ADC, SPI, I2C, halt with full RTC (1.3 A), Halt (350 nA) USART, timers Consumption: 195 A/MHz + 440 A One channel for memory-to-memory Ultra-low leakage per I/0: 50 nA 12-bit ADC up to 1 Msps/25 channels Fast wakeup from Halt: 4.7 s Internal reference voltage Advanced STM8 core Timers Harvard architecture and 3-stage pipeline Two 16-bit timers with two channels (used Max freq. 16 MHz, 16 CISC MIPS peak as IC, OC, PWM), quadrature encoder Up to 40 external interrupt sources One 16-bit advanced control timer with three Reset and supply management channels, supporting motor control Low-power, ultra-safe BOR reset with five One 8-bit timer with 7-bit prescaler selectable thresholds Two watchdogs: one Window, one Ultra-low-power POR/PDR Independent Programmable voltage detector (PVD) Beeper timer with 1-, 2- or 4-kHz Clock management frequencies 32 kHz and 1 to 16 MHz crystal oscillator Communication interfaces Internal 16 MHz factory-trimmed RC Synchronous serial interface (SPI) Internal 38 kHz low consumption RC 2 Fast I C 400 kHz SMBus and PMBus Clock security system USART (ISO 7816 interface and IrDA) Low-power RTC Up to 41 I/Os, all mappable on interrupt vectors BCD calendar with alarm interrupt Development support Auto-wakeup from Halt w/ periodic interrupt Fast on-chip programming and non- LCD: up to 4x28 segments w/ step-up intrusive debugging with SWIM converter Bootloader using USART Memories 32 KB Flash program memory and 256 bytes data EEPROM with ECC, RWW Flexible write and read protection modes 2 Kbytes of RAM March 2015 DocID023331 Rev 2 1/103 This is information on a product in full production. www.st.comContents STM8L052C6 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/103 DocID023331 Rev 2