October 2017 DocID15226 Rev 14 1/596
STM8L050J3, STM8L051F3, STM8L052C6, STM8L052R8 MCUs
and STM8L151/L152, STM8L162, STM8AL31, STM8AL3L lines
This reference manual targets application developers. It provides complete information on
how to use memory and peripherals on STM8L050J3, STM8L051F3, STM8L052C6,
STM8L052R8 MCUs and STM8L151/L152, STM8L162, STM8AL31, STM8AL3L lines.
STM8Lxxx and STM8ALxx microcontrollers lines include families with different memory
densities, packages and peripherals. These products are designed for ultra-low-power
applications. Refer to the product datasheets for the complete list of available peripherals.
For ordering information, pin description, mechanical and electrical device characteristics,
refer to the product datasheets. For information on the STM8 SWIM communication protocol
and debug module refer to the user manual (UM0470). For information on the STM8 core,
refer to the STM8 CPU programming manual (PM0044). For information on programming,
erasing and protection of the internal Flash memory refer to the STM8L Flash programming
This document covers:
Value line low-density STM8L05xx devices: STM8L050J3 and STM8L051F3
microcontrollers with 8-Kbyte Flash.
Value line medium-density STM8L05xx devices: STM8L052C6 microcontrollers with
Value line high-density STM8L05xx devices: STM8L052R8 microcontrollers with
Low-density STM8L15x devices: STM8L151C2/K2/G2/F2, STM8L151C3/K3/G3/F3
microcontrollers with 4-Kbyte or 8-Kbyte Flash.
Medium-density STM8L15xx devices: STM8L151C4/K4/G4, STM8L151C6/K6/G6,
STM8L152C4/K4 and STM8L152C6/K6 microcontrollers with 16-Kbyte or 32-Kbyte Flash.
Medium-density STM8AL313x/4x/6x and STM8AL3L4x/6x devices: STM8AL3168,
STM8AL3166, STM8AL3148,STM8AL3146, STM8AL3138, STM8AL3136, STM8AL3L68,
STM8AL3L66, STM8AL3L48, STM8AL3L46 microcontrollers with 8-Kbyte, 16-KBbyte or
Medium+ density STM8L15xx devices: STM8L151R6 and STM8L152R6 microcontrollers
with 32-Kbyte Flash (Wider range of peripherals than medium-density devices).
High-density STM8AL318x and STM8AL3L8x devices: STM8AL318AT, STM8AL3189,
STM8AL3188, STM8AL3L8A, STM8AL3L89, STM8AL3L88 microcontrollers with 64-Kbyte
High-density STM8AL31E88 and STM8AL3LE88 devices: STM8AL31E88,
STM8AL3LE88 microcontrollers with 64-Kbyte Flash (same peripheral set as high-density
STM8AL318x and STM8AL3L8x plus the AES hardware accelerator).
High-density STM8L15xx devices: STM8L151C8/M8/R8 and the STM8L152C8/M8/R8
microcontrollers with 64-Kbyte Flash (Same peripheral set as medium+).
High-density STM8L16xx devices: STM8L162M8/R8 microcontrollers with 64-Kbyte
Flash (same peripheral set as high-density STM8L152 devices plus the AES hardware