STM8L051F3 8-bit ultra-low-power MCU, 8-Kbyte Flash memory, 256-byte data EEPROM, RTC, 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 TSSOP20 (6.4x4.4 mm or 169 mils width) 5 low-power modes: Wait, Low-power run (5.1 A), Low-power wait (3 A), Active- DMA halt with RTC (1.3 A), Halt (350 nA) 4 channels supporting ADC, SPI, I2C, Ultra-low leakage per I/O: 50 nA USART, timers Fast wakeup from Halt: 5 s 1 channel for memory-to-memory Advanced STM8 core 12-bit ADC up to 1 Msps/10 channels Harvard architecture and 3-stage pipeline Internal reference voltage Max freq: 16 MHz, 16 CISC MIPS peak Timers Up to 40 external interrupt sources Two 16-bit timers with 2 channels (used as Reset and supply management IC, OC, PWM), quadrature encoder Low power, ultra-safe BOR reset with 5 One 8-bit timer with 7-bit prescaler selectable thresholds 2 watchdogs: 1 Window, 1 Independent Ultra-low power POR/PDR Beeper timer with 1, 2 or 4 kHz frequencies Programmable voltage detector (PVD) Communication interfaces Clock management Synchronous serial interface (SPI) 32 kHz and 1 to 16 MHz crystal oscillators Fast I2C 400 kHz SMBus and PMBus Internal 16 MHz factory-trimmed RC USART Internal 38 kHz low consumption RC Up to 18 I/Os, all mappable on interrupt vectors Clock security system Development support Low-power RTC Fast on-chip programming and non- BCD calendar with alarm interrupt intrusive debugging with SWIM Digital calibration with +/- 0.5 ppm accuracy Bootloader using USART LSE security system Auto-wakeup from Halt w/ periodic interrupt Memories 8 Kbytes of Flash program memory and 256 bytes of data EEPROM with ECC Flexible write and read protection modes 1 Kbyte of RAM September 2018 DS9178 Rev 4 1/96 This is information on a product in full production. www.st.comContents STM8L051F3 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 18 3.6 Memories . 18 3.7 DMA . 18 3.8 Analog-to-digital converter 18 3.9 System configuration controller and routing interface . 19 3.10 Timers . 19 3.10.1 16-bit general purpose timers (TIM2, TIM3) . 19 3.10.2 8-bit basic timer (TIM4) . 19 3.11 Watchdog timers . 19 3.11.1 Window watchdog timer . 20 3.11.2 Independent watchdog timer . 20 3.12 Beeper . 20 3.13 Communication interfaces 20 3.13.1 SPI . 20 3.13.2 I2C . 20 3.13.3 USART 21 3.14 Infrared (IR) interface 21 2/96 DS9178 Rev 4