Skip to main content

STM8L151R6

The STM8L151R6 is an electronic component from STMicroelectronics. View the full STM8L151R6 datasheet below including electrical characteristics, absolute maximum ratings.

Manufacturer

STMicroelectronics

Overview

Part: STM8L151x6/8 STM8L152x6/8

Type: 8-bit ultra-low-power MCU

Description: 8-bit ultra-low-power MCU with up to 64 KB Flash, 2 KB data EEPROM, RTC, LCD, and a maximum frequency of 16 MHz.

Operating Conditions:

  • Supply voltage: 1.65 to 3.6 V
  • Operating temperature: -40 to 125 °C
  • Max CPU frequency: 16 MHz

Absolute Maximum Ratings:

  • Max supply voltage: 4.0 V
  • Max total current into VDD: 100 mA
  • Max storage temperature: -60 to 150 °C

Key Specs:

  • Flash memory: Up to 64 Kbytes
  • Data EEPROM: Up to 2 Kbytes
  • RAM: Up to 4 Kbytes
  • CPU frequency: 16 MHz (16 CISC MIPS peak)
  • ADC: 12-bit, up to 1 Msps, 28 channels
  • DAC: 2x12-bit (dual mode)
  • Halt mode current consumption: 400 nA
  • Low-power run mode current consumption: 5.9 μA

Features:

  • 5 low-power modes (Wait, Low-power run, Low-power wait, Active-halt, Halt)
  • Advanced STM8 core with Harvard architecture and 3-stage pipeline
  • LCD controller: 8x40 or 4x44 with step-up converter
  • Up to 16 capacitive sensing channels
  • DMA: 4 channels for peripherals, 1 channel for memory-to-memory
  • Low-power RTC with alarm interrupt and anti-tamper detection

Applications:

  • Ultra-low-power applications
  • Portable devices with LCD
  • Touch sensing interfaces

Package:

  • UFQFPN48 (7x7mm)
  • LQFP80 (14x14mm)
  • LQFP64 (10x10mm)
  • LQFP48 (7x7mm)
  • WLCSP32

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
  • Memories
  • -Up to 64-Kbytes of Flash memory with up to 2 Kbytes of data EEPROM with ECC and RWW
  • -Flexible write/read protection modes
  • -Up to 4 Kbytes of RAM
  • 2 ultra-low-power comparators
  • -1 with fixed threshold and 1 rail to rail
  • -Wake up capability
  • Timers
  • -Three 16-bit timers with 2 channels (IC, OC, PWM), quadrature encoder
  • -One 16-bit advanced control timer with 3 channels, supporting motor control
  • -One 8-bit timer with 7-bit prescaler
  • -One window, one independent watchdog
  • -Beeper timer with 1, 2 or 4 kHz frequencies
  • Communication interfaces
  • -Two synchronous serial interface (SPI)
  • -Fast I 2 C 400 kHz SMBus and PMBus
  • -Three USARTs (ISO 7816 interface + IrDA)
  • Up to 67 I/Os, all mappable on interrupt vectors
  • Up to 16 capacitive sensing channels supporting touchkey, proximity, linear touch and rotary touch sensors
  • Fast on-chip programming and non-intrusive debugging with SWIM, Bootloader using USART
  • 96-bit unique ID

LQFP80 (14x14mm) LQFP64 (10x10mm) LQFP48 (7x7mm)

Table 1. Device summary

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

Table 1. Device summary

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 numberPin numberPin numberPin name WLCSP32InputInputOutputOutputOutputPP
LQFP80LQFP64UFQFPN48 and LQFP48TypeI/O levelfloatingwpuExt. interruptHigh sink/sourceOD
1--- PH0/LCD SEG 36 (3)I/OFT (6)XXXHSXX
2--- PH1/LCD SEG 37 (3)I/OFT (6)XXXHSXX
3--- PH2/LCD SEG 38 (3)I/OFT (6)XXXHSXX
4--- PH3/LCD SEG 39 (3)I/OFT (6)XXXHSXX
622C3 NRST/PA1 (1)I/O--XHS-X
733B4 PA2/OSC_IN/ [USART1_TX] (2) / [SPI1_MISO] (2)I/O-XXXHSXX
844C4 PA3/OSC_OUT/ [USART1_RX] (2) /[ SPI1_MOSI] (2)I/O-XXXHSXX
955D3 PA4/TIM2_BKIN/ [TIM2_ETR] (2) LCD_COM0 (3) /ADC1_IN2 [COMP1_INP]I/OFT (6)XXXHSXX
1066D4 PA5/TIM3_BKIN/ [TIM3_ETR] (2) / LCD_COM1 (3) /ADC1_IN1/ [COMP1_INP]I/OFT (6)XXXHSXX

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)
1177- (4)PA6/ADC1_TRIG/ LCD_COM2 (3) /ADC1_IN0/ [COMP1_INP]I/OFT (6)XXXHSXXPort A6
1288- (4)PA7/LCD_SEG0 (3) / TIM5_CH1I/OFT (6)XXXHSXXPort A7
393124E3PB0 (5) /TIM2_CH1/ LCD_SEG10 (3) /ADC1_IN18 / [COMP1_INP]I/OFT (6)XXXHSXXPort B0
403225G1PB1/TIM3_CH1/ LCD_SEG11 (3) /ADC1_IN17 / [COMP1_INP]I/OFT (6)XXXHSXXPort B1
413326F2PB2/ TIM2_CH2/LCD_SEG12 (3) / ADC1_IN16/ [COMP1_INP]I/OFT (6)XXXHSXXPort B2
423427E2PB3/TIM2_ETR/ LCD_SEG13 (3) /ADC1_IN15 / [COMP1_INP]I/OFT (6)XXXHSXXPort B3
4335--PB4 (5) /SPI1_NSS/ LCD_SEG14 (3) /ADC1_IN14 / [COMP1_INP]I/OFT (6)XXXHSXXPort B4
--28D2PB4 (5) /SPI1_NSS/ LCD_SEG14 (3) /ADC1_IN14 /DAC_OUT2/ [COMP1_INP]I/OFT (6)XXXHSXXPort B4

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

63

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

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

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:

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.

Related Variants

The following components are covered by the same datasheet.

Part NumberManufacturerPackage
C69151
STM8L151C8STMicroelectronics
STM8L151M8STMicroelectronics
STM8L151R8STMicroelectronics
STM8L152R6STMicroelectronics
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.

Get structured datasheet data via API

Get started free