Skip to main content

We use cookies to understand how you use our site and improve your experience. See our Privacy Policy.

STM8L152R6

8-bit Ultra-Low-Power MCU with LCD

The STM8L152R6 is a 8-bit ultra-low-power mcu with lcd from STMicroelectronics. View the full STM8L152R6 datasheet below including key specifications, electrical characteristics, absolute maximum ratings.

STM8L152R6 shares its datasheet with STM8L151C8, whose page lists every part number it covers.

Official STM8L152R6 datasheet (PDF) — the source this page was extracted from.

Manufacturer

STMicroelectronics

Package

LQFP-64 10x10mm

STM8L152R6 Key Specifications

ParameterValue
ADC12-bit, up to 1 Msps, 28 channels
DAC2x 12-bit with output buffer
LCD8x40 or 4x44 with step-up converter
RAMup to 4 KB
I/Osup to 67
Timersthree 16-bit, one 16-bit advanced control, one 8-bit, window and independent watchdogs
CPU CoreSTM8 8-bit, max 16 MHz (16 CISC MIPS peak)
Data EEPROMup to 2 KB with ECC
Flash Memory32 KB
Halt Current400 nA
Supply Voltage1.65V to 3.6V (without BOR), 1.8V to 3.6V (with BOR)
Package Dimensions10x10mm (LQFP64)
Run Mode Consumption200 µA/MHz + 330 µA
Low-Power Run Current5.9 µA
Operating Temperature-40°C to 85/105/125°C
Communication Interfaces3x USART, 2x SPI, I2C (400 kHz, SMBus/PMBus)

STM8L152R6 Overview

Part: STM8L151x6/8, STM8L152x6/8 — STMicroelectronics

Type: 8-bit Ultra-Low-Power MCU

Description: 8-bit STM8 ultra-low-power MCU at up to 16 MHz with up to 64 KB Flash, 2 KB data EEPROM and 4 KB RAM, 1.65–3.6 V supply, RTC, LCD (STM8L152 only), 12-bit ADC and DAC.

Operating Conditions:

  • Supply voltage: 1.65–3.6 V (BOR disabled); 1.8–3.6 V (BOR enabled)
  • Operating temperature: -40 to 85 °C (suffix 6; suffix 7 to 105 °C and suffix 3 to 125 °C)
  • Max system clock: 16 MHz (1.65 V ≤ VDD < 3.6 V)
  • VDDA: 1.8–3.6 V when ADC or DAC is used

Absolute Maximum Ratings:

  • Max supply voltage (VDD − VSS): 4.0 V
  • Total current into VDD: 80 mA; total current out of VSS: 80 mA
  • Output current sunk by any other I/O: 25 mA; sourced: -25 mA
  • Max junction temperature: 150 °C
  • Storage temperature: -65 to +150 °C

Key Specs:

  • Run consumption: 200 μA/MHz + 330 μA
  • Low-power run: 5.9 μA; low-power wait: 3 μA
  • Active-halt with full RTC: 1.4 μA; Halt: 400 nA
  • Wake-up from Halt: 4.7 μs
  • I/O leakage: 50 nA per I/O
  • 12-bit ADC up to 1 Msps, 28 channels; 2× 12-bit DAC
  • Junction temperature range (suffix 6): -40 to 105 °C
  • Power dissipation at TA = 85 °C (suffix 6): 526 mW (LQFP80), 416 mW (LQFP64), 625 mW (UFQFPN48), 307 mW (LQFP48), 317 mW (WLCSP32)

Features:

  • Advanced STM8 core, Harvard architecture, 3-stage pipeline, 16 CISC MIPS peak
  • Up to 64 KB Flash, up to 2 KB data EEPROM with ECC and RWW, up to 4 KB RAM
  • 5 low-power modes
  • BOR with five programmable thresholds, POR/PDR, PVD
  • 32 kHz and 1–16 MHz crystal oscillators, internal 16 MHz and 38 kHz RC
  • Low-power RTC with calendar, alarm and anti-tamper detection
  • LCD 8x40 or 4x44 with step-up converter (STM8L152)
  • 2 ultra-low-power comparators
  • Timers: three 16-bit general purpose, one 16-bit advanced control, one 8-bit, window and independent watchdogs, beeper
  • 2 SPI, fast I2C 400 kHz (SMBus/PMBus), 3 USARTs (ISO 7816, IrDA)
  • Up to 67 I/Os, up to 16 capacitive sensing channels
  • DMA with 4 channels plus 1 memory-to-memory channel
  • SWIM debug, USART bootloader, 96-bit unique ID

Applications:

  • Ultra-low-power battery-powered devices
  • LCD display and touch-sensing applications

Package:

  • LQFP80 (14x14 mm)
  • LQFP64 (10x10 mm)
  • LQFP48 (7x7 mm)
  • UFQFPN48 (7x7 mm)
  • WLCSP32

STM8L152R6 Features

  • Operating conditions
  • -Operating power supply: 1.65 to 3.6 V (without BOR), 1.8 to 3.6 V (with BOR)
  • -Temp. range: -40 to 85, 105 or 125 °C
  • Low-power features
  • -5 low-power modes: Wait, Low-power run (5.9 μA), Low-power wait (3 μA), Activehalt with full RTC (1.4 μA), Halt (400 nA)
  • -Consumption: 200 μA/MHz+330 μA
  • -Fast wake up from Halt mode (4.7 μs)
  • -Ultra low leakage per I/0: 50 nA
  • Advanced STM8 core
  • -Harvard architecture and 3-stage pipeline
  • -Max freq: 16 MHz, 16 CISC MIPS peak
  • -Up to 40 external interrupt sources
  • Reset and supply management
  • -Low-power, ultra safe BOR reset with five programmable thresholds
  • -Ultra-low-power POR/PDR
  • -Programmable voltage detector (PVD)
  • Clock management
  • -32 kHz and 1-16 MHz crystal oscillators
  • -Internal 16 MHz factory-trimmed RC and 38 kHz low consumption RC
  • -Clock security system
  • Low-power RTC
  • -BCD calendar with alarm interrupt
  • -Digital calibration with +/- 0.5ppm accuracy
  • -Advanced anti-tamper detection
  • LCD: 8x40 or 4x44 w/ step-up converter
  • DMA
  • -4 ch. for ADC, DACs, SPIs, I 2 C, USARTs, Timers, 1 ch. for memory-to-memory
  • 2x12-bit DAC (dual mode) with output buffer
  • 12-bit ADC up to 1 Msps/28 channels
  • -Temp. sensor and internal ref. voltage

Table 1. Device summary

ReferencePart number
STM8L151x6/8STM8L151R6, STM8L151C8, STM8L151M8, STM8L151R8
STM8L152x6/8STM8L152R6, STM8L152C8, STM8L152K8, STM8L152M8, STM8L152R8

Table 1. Device summary

STM8L152R6 Pin Configuration

Figure 3. STM8L151M8 80-pin package pinout (without LCD)

  1. Pin 22 is reserved and must be tied to V DD .
  2. The above figure shows the package top view.
  3. The above figure shows the package top view.

Figure 4. STM8L152M8 80-pin package pinout (with LCD)

Figure 5. STM8L151R8 and STM8L151R6 64-pin pinout (without LCD)

  1. Pin 18 is reserved and must be tied to V DD .
  2. The above figure shows the package top view.
  3. The above figure shows the package top view.

Figure 6. STM8L152R8 and STM8L152R6 64-pin pinout (with LCD)

63

Figure 7. STM8L151C8 48-pin pinout (without LCD)

  1. Pin 13 is reserved and must be tied to V DD .
  2. The above figure shows the package top view.
  3. The above figure shows the package top view.

Figure 8. STM8L152C8 48-pin pinout (with LCD)

Figure 9. STM8L152K8 32-ball ballout

Warning:

For the 32-pin STM8L152K8 devices, some active I/O pins are not bonded out of the package. Effectively, all ports available on 48-pin devices must be considered as active ports also for 32-pin devices - see Table 5: High-density and medium+ density STM8L15x pin description for more details. To avoid spurious effects, users have to configure active ports as input pull-up. A small increase in consumption (typ. < 300 μ A) may occur during the power up and reset phase until these ports are properly configured.

63

Table 4. Legend/abbreviation

TypeI= input, O = output, S = power supplyI= input, O = output, S = power supply
LevelFT: Five-volt tolerantFT: Five-volt tolerant
LevelOutputHS = high sink/source (20 mA)
Port and control configurationInputfloat = floating, wpu = weak pull-up
Port and control configurationOutputT = true open drain, OD = open drain, PP = push pull
Reset stateBold X (pin state after reset release). Unless otherwise specified, the pin state is the same during the reset phase (i.e. 'under reset') and after internal reset release (i.e. at reset state).Bold X (pin state after reset release). Unless otherwise specified, the pin state is the same during the reset phase (i.e. 'under reset') and after internal reset release (i.e. at reset state).

Table 5. High-density and medium+ density STM8L15x pin description

Pin number - LQFP80Pin number - LQFP64Pin number - UFQFPN48 and LQFP48Pin name WLCSP32TypeI/O levelInput - floatingInput - wpuOutput - Ext. interruptOutput - High sink/sourceOutput - ODPPMain function (after reset)Default alternate function
1--- PH0/LCD SEG 36 (3)I/OFT (6)XXXHSXXPort H0LCD segment 36
2--- PH1/LCD SEG 37 (3)I/OFT (6)XXXHSXXPort H1LCD segment 37
3--- PH2/LCD SEG 38 (3)I/OFT (6)XXXHSXXPort H2LCD segment 38
4--- PH3/LCD SEG 39 (3)I/OFT (6)XXXHSXXPort H3LCD segment 39
622C3 NRST/PA1 (1)I/O--XHS-XResetPA1
733B4 PA2/OSC_IN/ [USART1_TX] (2) / [SPI1_MISO] (2)I/O-XXXHSXXPort A2HSE oscillator input / [USART1 transmit] / [SPI1 master in- slave out] /
844C4 PA3/OSC_OUT/ [USART1_RX] (2) /[ SPI1_MOSI] (2)I/O-XXXHSXXPort A3HSE oscillator output / [USART1receive]/ [SPI1 master out/slave in] /
955D3 PA4/TIM2_BKIN/ [TIM2_ETR] (2) LCD_COM0 (3) /ADC1_IN2 [COMP1_INP]I/OFT (6)XXXHSXXPort A4Timer 2 - break input / / [Timer 2 - trigger] / LCD COM 0 /ADC1 input 2/ [Comparator 1 positive input]
1066D4 PA5/TIM3_BKIN/ [TIM3_ETR] (2) / LCD_COM1 (3) /ADC1_IN1/ [COMP1_INP]I/OFT (6)XXXHSXXPort A5Timer 3 - break input / [Timer 3 - trigger] / LCD_COM 1 / ADC1 input 1/ [Comparator 1 positive input]

Table 5. High-density and medium+ density STM8L15x pin description

Table 5. High-density and medium+ density STM8L15x pin description (continued)

Pin numberPin numberPin numberPin numberInputInputOutputOutputOutputfunction reset)
LQFP80LQFP64UFQFPN48 and LQFP48WLCSP32Pin nameTypeI/O levelfloatingwpuExt. interruptHigh sink/sourceODPPfunction reset)Default alternate function
1177- (4)PA6/ADC1_TRIG/ LCD_COM2 (3) /ADC1_IN0/ [COMP1_INP]I/OFT (6)XXXHSXXPort A6ADC1 - trigger / LCD_COM2 /ADC1 input 0/ [Comparator 1 positive input]
1288- (4)PA7/LCD_SEG0 (3) / TIM5_CH1I/OFT (6)XXXHSXXPort A7LCD segment 0 / TIM5 channel 1
393124E3PB0 (5) /TIM2_CH1/ LCD_SEG10 (3) /ADC1_IN18 / [COMP1_INP]I/OFT (6)XXXHSXXPort B0Timer 2 - channel 1 /LCD segment 10/ ADC1_IN18/ [Comparator 1 positive input]
403225G1PB1/TIM3_CH1/ LCD_SEG11 (3) /ADC1_IN17 / [COMP1_INP]I/OFT (6)XXXHSXXPort B1Timer 3 - channel 1 / LCD segment 11 / ADC1_IN17/ [Comparator 1 positive input]
413326F2PB2/ TIM2_CH2/LCD_SEG12 (3) / ADC1_IN16/ [COMP1_INP]I/OFT (6)XXXHSXXPort B2Timer 2 - channel 2 / LCD segment 12 / ADC1_IN16/ [Comparator 1 positive input]
423427E2PB3/TIM2_ETR/ LCD_SEG13 (3) /ADC1_IN15 / [COMP1_INP]I/OFT (6)XXXHSXXPort B3Timer 2 - trigger / LCD segment 13 /ADC1_IN15/ [Comparator 1 positive input]
4335--PB4 (5) /SPI1_NSS/ LCD_SEG14 (3) /ADC1_IN14 / [COMP1_INP]I/OFT (6)XXXHSXXPort B4SPI1 master/slave select / LCD segment 14 / ADC1_IN14/ [Comparator 1 positive input]
--28D2PB4 (5) /SPI1_NSS/ LCD_SEG14 (3) /ADC1_IN14 /DAC_OUT2/ [COMP1_INP]I/OFT (6)XXXHSXXPort B4SPI1 master/slave select / LCD segment 14 / ADC1_IN14 / DAC channel 2 output/ [Comparator 1 positive input]

Table 5. High-density and medium+ density STM8L15x pin description (continued)

63

STM8L152R6 Electrical Characteristics

In the following table, data are guaranteed by design.

Table 50. DAC characteristics

SymbolParameterConditionsMin.Typ.Max.Unit
V DDAAnalog supply voltage-1.8-3.6V
V REF+Reference supply voltage-1.8-V DDAV
I VREFCurrent consumption on V REF+ supplyV REF+ = 3.3 V, no load, middle code (0x800)-130220μA
I VREFCurrent consumption on V REF+ supplyV REF+ = 3.3 V, no load, worst code (0x000)-220350μA
I VDDACurrent consumption on V DDA supplyV DDA = 3.3 V, no load, middle code (0x800)-210320μA
I VDDACurrent consumption on V DDA supplyV DDA = 3.3 V, no load, worst code (0x000)-320520μA
T ATemperature range-40-125°C
R L (1) (2)Resistive loadDACOUT buffer ON5--k Ω
R OOutput impedanceDACOUT buffer OFF-810k Ω
C L (3)Capacitive load--50pF
DAC_OUT (4)DAC_OUT voltageDACOUT buffer ON0.2-V DDA - 0.2V
DAC_OUT (4)DAC_OUT voltageDACOUT buffer OFF0-V REF+ -1 LSBV
t settlingSettling time (full scale: for a 12- bit input code transition between the lowest and the highest input codes when DAC_OUT reaches the final value ±1LSB)R L ≥ 5 k Ω , C L ≤ 50 pF-712μs
Update rateMax frequency for a correct DAC_OUT (@95%) change when small variation of the input code (from code i to i+1LSB).R L ≥ 5 k Ω , C L ≤ 50 pF--1Msps
t WAKEUPWakeup time from OFF state. Input code between lowest and highest possible codes.R L ≥ 5 k Ω , C L ≤ 50 pF-915μs
PSRR+Power supply rejection ratio (to V DDA ) (static DC measurement)R L ≥ 5 k Ω , C L ≤ 50 pF--60-35dB
  1. Resistive load between DACOUT and GNDA
  2. Output on PF0 or PF1
  3. Capacitive load at DACOUT pin
  4. It gives the output excursion of the DAC

In the following table, data based on characterization results.

Table 51. DAC accuracy

SymbolParameterConditionsTyp.Max.Unit
DNLDifferential non linearity (1)R L ≥ 5 k Ω , C L ≤ 50 pF DACOUT buffer ON (2)1.5312-bit LSB
DNLDifferential non linearity (1)No load DACOUT buffer OFF1.5312-bit LSB
INLIntegral non linearity (3)R L ≥ 5 k Ω , C L ≤ 50 pF DACOUT buffer ON (2)2412-bit LSB
INLIntegral non linearity (3)No load DACOUT buffer OFF2412-bit LSB
OffsetOffset error (4)R L ≥ 5 k Ω , C L ≤ 50 pF DACOUT buffer ON (2)±10±2512-bit LSB
OffsetOffset error (4)No load DACOUT buffer OFF±5±812-bit LSB
Offset1Offset error at Code 1 (5)DACOUT buffer OFF±1.5±512-bit LSB
Gain errorGain error (6)R L ≥ 5 k Ω , C L ≤ 50 pF DACOUT buffer ON (2)+0.1/-0.2+0.2/-0.5%
Gain errorGain error (6)No load DACOUT buffer OFF+0/-0.2+0/-0.4%
TUETotal unadjusted errorR L ≥ 5 k Ω , C L ≤ 50 pF DACOUT buffer ON (2)123012-bit LSB
TUETotal unadjusted errorNo load -DACOUT buffer OFF81212-bit LSB
  1. Difference between two consecutive codes - 1 LSB.
  2. In 48-pin package devices the DAC2 output buffer must be kept off and no load must be applied on the DAC_OUT2 output.
  3. Difference between measured value at Code i and the value at Code i on a line drawn between Code 0 and last Code 1023.
  4. Difference between the value measured at Code (0x800) and the ideal value = V REF+ /2.
  5. Difference between the value measured at Code (0x001) and the ideal value.
  6. Difference between the ideal slope of the transfer function and the measured slope computed from Code 0x000 and 0xFFF when buffer is ON, and from Code giving 0.2 V and (V DDA -0.2) V when buffer is OFF.

In the following table, data are guaranteed by design.

Table 52. DAC output on PB4-PB5-PB6 (1)

SymbolParameterConditionsMaxUnit
R intInternal resistance between DAC output and PB4-PB5-PB6 output2.7 V < V DD < 3.6 V1.4k Ω
R intInternal resistance between DAC output and PB4-PB5-PB6 output2.4 V < V DD < 3.6 V1.6k Ω
R intInternal resistance between DAC output and PB4-PB5-PB6 output2.0 V < V DD < 3.6 V3.2k Ω
R intInternal resistance between DAC output and PB4-PB5-PB6 output1.8 V < V DD < 3.6 V8.2k Ω

124

STM8L152R6 Absolute Maximum Ratings

Stresses above the absolute maximum ratings listed in Table 15: Voltage characteristics , Table 16: Current characteristics , and Table 17: Thermal characteristics may cause permanent damage to the device. These are stress ratings only and functional operation of the device at these conditions is not implied. Exposure to maximum rating conditions for extended periods may affect the device's reliability.

The device's mission profile (application conditions) is compliant with the JEDEC JESD47 Qualification Standard, extended mission profiles are available on demand.

Table 15. Voltage characteristics

SymbolRatingsMinMaxUnit
V DD - V SSExternal supply voltage (including V DDA ) (1)- 0.34.0V
V IN (2)Input voltage on true open-drain pins (PC0 and PC1)V SS - 0.3V DD + 4.0V
V IN (2)Input voltage on five-volt tolerant (FT) pinsV SS - 0.3V DD + 4.0V
V IN (2)Input voltage on any other pinV SS - 0.34.0V
V ESDElectrostatic discharge voltagesee Absolute maximum ratings (electrical sensitivity) on page 123see Absolute maximum ratings (electrical sensitivity) on page 123V

124

Table 16. Current characteristics

SymbolRatingsMax.Unit
I VDDTotal current into V DD power line (source)80mA
I VSSTotal current out of V SS ground line (sink)80mA
I IOOutput current sunk by IR_TIM pin (with high sink LED driver capability)80mA
I IOOutput current sunk by any other I/O and control pin25mA
I IOOutput current sourced by any I/Os and control pin- 25mA
I INJ(PIN)Injected current on true open-drain pins (PC0 and PC1) (1)- 5 / +0mA
I INJ(PIN)Injected current on five-volt tolerant (FT) pins (1)- 5 / +0mA
I INJ(PIN)Injected current on any other pin (2)- 5 / +5mA
Σ I INJ(PIN)Total injected current (sum of all I/O and control pins) (3)± 25mA

Table 17. Thermal characteristics

SymbolRatingsValueUnit
T STGStorage temperature range-65 to +150° C
T JMaximum junction temperature150° C

Table 17. Thermal characteristics

STM8L152R6 Thermal Information

The maximum chip junction temperature (T Jmax ) must never exceed the values given in Table 18: General operating conditions on page 71 .

The maximum chip-junction temperature, T Jmax , in degree Celsius, may be calculated using the following equation:

$$T_{Jmax} = T_{Amax} + (P_{Dmax} \times \Theta_{JA})$$

STM8L152R6 Package Information

In order to meet environmental requirements, ST offers these devices in different grades of ECOPACK ® packages, depending on their level of environmental compliance. ECOPACK ® specifications, grade definitions and product status are available at: www.st.com . ECOPACK ® is an ST trademark.

Variants on the same datasheet

These parts have exact links to the same datasheet. They are candidates to compare, not verified drop-in replacements; check package, pinout and electrical limits.

Part NumberManufacturerPackage
STM8L151C8STMicroelectronics—
STM8L151M8STMicroelectronicsLQFP-80 14x14mm
STM8L151R6STMicroelectronicsLQFP-64 10x10mm
STM8L151R8STMicroelectronicsLQFP-64 10x10mm

Other Microcontrollers (MCU)

  • STM32F407VET6 – STMicroelectronics, ARM Cortex-M4 MCU
  • STM32H563ZIT6 – STMicroelectronics, Arm Cortex-M33 32-bit MCU
  • RP2040 – Raspberry Pi, Microcontroller
  • STM32H743VIT6 – STMicroelectronics, Microcontroller Unit (MCU)
  • STM32U575RIT6 – STMicroelectronics, Ultra-low-power Arm Cortex-M33 32-bit MCU
  • STM32L011F4U6 – STMicroelectronics, Ultra-low-power Arm Cortex-M0+ MCU
  • GD32F103C8T6 – GigaDevice, Arm Cortex-M3 32-bit MCU
  • CH32H417QEU6 – WCH, Dual-Core RISC-V Microcontroller

All Microcontrollers (MCU) datasheetsAll STMicroelectronics datasheets (808)

Data on this page is extracted from publicly available manufacturer datasheets using automated tools including AI. It may contain errors or omissions. Always verify specifications against the official manufacturer datasheet before making design or purchasing decisions. See our Terms of Service. Rights holders can submit a takedown request.

Ask your AI agent about the STM8L152R6

Connect SheetsData to Claude, Cursor, Codex or any MCP client and your agent reads this datasheet for you: pinout, limits, register maps and design checks, with the numbers taken from the PDF.

claude mcp add --transport http sheetsdata https://mcp.sheetsdata.com/mcp

Then ask: "Can the STM8L152R6 run from my 12 V rail? Check it against the datasheet limits."

Create a free account $2 of usage every month, no card needed.