STMicroelectronics STM8L152K4U6
- Part No.:
- STM8L152K4U6
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 32-UFQFN Exposed Pad
- Datasheet:
-
STM8L152K4U6.pdf
- Description:
- IC MCU 8BIT 16KB FLASH 32UFQFPN
- Quantity:
- Payment:

- Shipping:

Inventory:862
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8L152K4U6 from STMicroelectronics is an 8-bit ultra-low-power microcontroller featuring 16 MHz STM8 core, 16 KB Flash, 1 KB Data EEPROM with ECC, RTC, LCD controller (4×28 segments), 12-bit ADC (1 Msps, 25 channels), and dual ultra-low-power comparators. It operates from 1.65 V to 3.6 V and supports -40 °C to 85 °C industrial temperature range, targeting battery-powered metering and portable medical devices.
For engineers reviewing the STM8L152K4U6 datasheet, STM8L152K4U6 pinout, STM8L152K4U6 application, or STM8L152K4U6 equivalent, key selection considerations include active-halt current (1.3 µA with RTC), Halt mode leakage (350 nA), LCD segment drive capability, SWIM debug interface compatibility, and capacitive touch sensing support across up to 16 channels.
Technical Context
The STM8L152K4U6 implements a Harvard-architecture STM8 core with 3-stage pipeline and 16 CISC MIPS peak performance at 16 MHz. Its clock system integrates dual crystal oscillators (1–16 MHz HSE and 32 kHz LSE), factory-trimmed 16 MHz RC, and 38 kHz low-consumption RC with clock security system.
Power management includes five low-power modes-Wait, Low Power Run (5.1 µA), Low Power Wait (3 µA), Active-Halt with full RTC (1.3 µA), and Halt (350 nA)-with fast 4.7 µs wakeup from Halt. The device integrates a BCD calendar RTC with alarm and auto-wakeup, plus dedicated beeper timer (1/2/4 kHz).
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | STM8 8-bit Harvard, 3-stage pipeline, 16 MIPS peak at 16 MHz |
| Memory | 16 KB Flash (ECC protected), 1 KB Data EEPROM (RWW, ECC), 2 KB RAM |
| Low-Power Modes | Halt: 350 nA; Active-Halt w/ RTC: 1.3 µA; Low Power Run: 5.1 µA @ 1 MHz |
| Analog Peripherals | 12-bit ADC (1 Msps, 25 channels, temp sensor, Vref); 12-bit DAC (buffered); 2 comparators (rail-to-rail + fixed threshold) |
| LCD Driver | Supports up to 4×28 segments with integrated step-up converter for single-supply operation |
| Timers | 1× 16-bit advanced control timer (motor control); 2× 16-bit general-purpose timers; 1× 8-bit basic timer; 2 watchdogs (window + independent) |
| Communication | SPI, I²C (400 kHz SMBus/PMBus), USART (ISO 7816, IrDA), SWIM debug interface |
Pinout & Package
STM8L152K4U6 is housed in a 32-pin UFQFPN package (5 × 5 mm, 0.5 mm pitch) with exposed thermal pad. Pin functions are fully mappable to interrupt vectors, supporting flexible PCB layout and signal routing for space-constrained designs.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Power supply and ground | Dual power domains: VDDA for analog, VDD for digital; separate VSSA/VSS pins reduce noise coupling |
| NRST | Reset input | Active-low reset with programmable voltage detector (PVD) and ultra-safe BOR (5 thresholds) |
| SWIM | Single-wire interface for debug | Non-intrusive on-chip programming and real-time debugging without halting CPU execution |
| PA0–PA7, PB0–PB7, PC0–PC7, PD0–PD7 | General-purpose I/O | Up to 41 I/Os; all support external interrupts; 50 nA ultra-low leakage per I/O in Halt mode |
| OSC_IN / OSC_OUT | HSE crystal oscillator terminals | Supports 1–16 MHz external crystal; internal trimming enables ±1% accuracy over temperature |
| LSE_IN / LSE_OUT | LSE crystal oscillator terminals | 32.768 kHz RTC crystal interface with automatic calibration and fail-safe switching to LSI |
| VLCD | LCD voltage supply | Internal step-up converter generates regulated VLCD from VDD for segment bias without external components |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power Halt mode | 350 nA consumption with SRAM retention and fast 4.7 µs wakeup - enables multi-year coin-cell operation |
| Integrated LCD controller | Drives 4×28 segments with internal charge pump - eliminates external bias circuitry and reduces BOM count |
| Capacitive touch sensing | Hardware-accelerated support for 16 channels (touchkey, proximity, linear/rotary touch) - no external IC required |
| Robust analog subsystem | 12-bit ADC with internal reference and temperature sensor + 12-bit buffered DAC - enables closed-loop sensor conditioning |
| Secure clock management | Clock security system detects HSE failure and automatically switches to internal RC - prevents system lockup during oscillator fault |
Applications
| Smart Utility Metering | Portable Medical Devices |
|---|---|
Use Scenario: Battery-powered gas/water meters with LCD display, tamper detection, and periodic data logging. IC Role / Device Role / Timing Role: Main system controller managing sensor acquisition, RTC-based wake-up scheduling, LCD refresh, and secure data storage in EEPROM. Use Value: 1.3 µA Active-Halt current with RTC enables >10-year battery life; integrated LCD driver reduces component count by 3+ discrete parts. | Use Scenario: Handheld glucose monitors or pulse oximeters requiring low-power sensing, display, and USB/IrDA data export. IC Role / Device Role / Timing Role: Central MCU handling analog front-end (ADC/DAC/comparators), capacitive touch UI, and calibrated temperature compensation. Use Value: On-chip 12-bit ADC with internal reference and temp sensor eliminates external precision references; 350 nA Halt mode extends single-charge battery runtime. |
| Industrial Sensor Nodes | Home Automation Controllers |
Use Scenario: Wireless environmental sensors (temp/humidity/pressure) deployed in unattended locations with solar/battery hybrid power. IC Role / Device Role / Timing Role: Signal conditioner and scheduler - acquires sensor data via ADC, processes with DMA-assisted filtering, and triggers RF transmission via USART. Use Value: 5.1 µA Low Power Run mode at 1 MHz allows continuous background processing without compromising energy budget; SWIM debug enables field firmware updates. | Use Scenario: Touch-enabled thermostat or lighting panel with segmented LCD, ambient light sensing, and local control logic. IC Role / Device Role / Timing Role: Human interface processor managing capacitive touch keys, LCD segment driving, real-time clock, and HVAC actuator timing. Use Value: Hardware touch sensing engine offloads CPU; integrated 4×28 LCD controller supports custom icons without external driver IC. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar ultra-low-power microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM8L152K6U6 | 32 KB Flash, 2 KB RAM (vs. 16 KB Flash, 2 KB RAM); identical peripherals and package | Required for larger firmware images or extended data buffering in logging applications | Select when firmware size exceeds 16 KB or additional RAM is needed for complex algorithms |
| STM32L053R8T6 | 32-bit ARM Cortex-M0+, 64 KB Flash, 8 KB RAM; higher performance but ~2× higher active current (210 µA/MHz) | Better suited for applications needing cryptographic acceleration or richer RTOS support | Choose only if 32-bit architecture, TrustZone, or USB is mandatory - otherwise STM8L offers superior µA/MHz efficiency |
Compared with STM8L152K6U6, the K4 variant trades Flash capacity for cost-sensitive deployments; versus STM32L053R8T6, it delivers lower active and standby current at the expense of instruction set flexibility and peripheral richness - making it optimal for deeply embedded, battery-limited roles where deterministic 8-bit control suffices.
Availability
STM8L152K4U6 is available at Aetrix Electronics and suitable for smart utility metering, portable medical devices, industrial sensor nodes, and home automation controllers requiring stable component supply and long-term lifecycle assurance.
Supply support for STM8L152K4U6 includes scheduled delivery planning, volume procurement assistance, BOM continuity management, traceable sourcing, and lifecycle availability coordination for OEM customers, industrial embedded developers, connected-device designers, and electronics production programs.
Manufacturer
STMicroelectronics is a global semiconductor leader headquartered in Geneva, Switzerland, designing and manufacturing microcontrollers, power management ICs, sensors, and analog products for industrial, automotive, and consumer markets.
The STM8L ultra-low-power MCU product line targets energy-constrained applications such as battery-operated meters, wearables, and IoT edge nodes - emphasizing sub-µA sleep currents, integrated analog peripherals, and robust operation across extended temperature ranges.
FAQ
What is the maximum operating frequency and corresponding power consumption of STM8L152K4U6?
The STM8L152K4U6 achieves a maximum operating frequency of 16 MHz using the HSE crystal or factory-trimmed 16 MHz RC oscillator. At this speed and 3.0 V supply, typical active-mode current is 195 µA/MHz + 440 µA (≈2.0 mA total), verified per DS6372 Rev 17 Table 20. Lower frequencies reduce dynamic current proportionally, while low-power run mode maintains 5.1 µA at 1 MHz.
Does STM8L152K4U6 support hardware-accelerated capacitive touch sensing?
Yes - the device integrates a dedicated touch sensing controller supporting up to 16 channels with hardware scanning, noise filtering, and baseline auto-calibration. It enables touchkey, proximity, linear slider, and rotary wheel interfaces without external components or CPU overhead, as documented in Section 3.13 of DS6372.
Can the internal 12-bit DAC output drive external loads directly?
The integrated 12-bit DAC features an internal output buffer capable of sourcing/sinking ±5 mA, enabling direct connection to op-amp inputs, LED drivers, or low-impedance transducers. Output is available on PB4–PB6 pins; full specifications including linearity error (±1 LSB INL) and settling time (10 µs) are provided in DS6372 Table 50 and Table 51.
Is SWIM debug supported in all low-power modes?
SWIM debug remains accessible in Run, Wait, and Low Power Wait modes, allowing real-time variable inspection and breakpoint insertion. However, it is disabled in Active-Halt and Halt modes to preserve ultra-low current - debug session must be re-established after wakeup. This behavior is defined in Section 3.19 and Table 10 of the datasheet.
STM8L152K4U6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 32-UFQFN Exposed Pad
- Series:
- STM8L EnergyLite
- Packaging:
- Tray
- Product Status:
- Active
- Programmable:
- Not Verified
- Core Processor:
- STM8
- Core Size:
- 8-Bit
- Speed:
- 16MHz
- Connectivity:
- I2C, IrDA, SPI, UART/USART
- Peripherals:
- Brown-out Detect/Reset, DMA, IR, LCD, POR, PWM, WDT
- Number of I/O:
- 29
- Program Memory Size:
- 16KB (16K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 1K x 8
- RAM Size:
- 2K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.8V ~ 3.6V
- Data Converters:
- A/D 21x12b; D/A 1x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM8L152K4U6 FAQ
1.How can I place an order for STM8L152K4U6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8L152K4U6 on Aetrix. Our sales agent will provide a competitive quotation and guide you through the order confirmation once you accept the terms.
2.Are the price and stock information for STM8L152K4U6 reliable?
The price and inventory of STM8L152K4U6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8L152K4U6 is usually 5 days.
3.What payment methods are accepted for STM8L152K4U6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8L152K4U6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8L152K4U6?
STM8L152K4U6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8L152K4U6 order is processed, you will receive an email with the shipment details and tracking number.
Note: Tracking information may take up to 24 hours to appear. Express delivery typically takes 3–5 business days.
5.How can I obtain technical support or documentation for STM8L152K4U6?
For technical support, including STM8L152K4U6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8L152K4U6 requirements.
6.How does Aetrix verify that STM8L152K4U6 is sourced from the original manufacturer or authorized distributors?
All STM8L152K4U6 products on Aetrix are procured from qualified distributors and authorized channels. Our dedicated quality assurance team conducts strict verification, including traceability checks and, if necessary, third-party testing. This ensures that STM8L152K4U6 meets industry standards.
7.What is the process for return or replacement of STM8L152K4U6?
All STM8L152K4U6 units undergo pre-shipment inspection (PSI). If there is an issue with STM8L152K4U6, returns or replacements are accepted under the following conditions:
1.Quantity discrepancies, incorrect items, or visible external defects (such as breakage or corrosion), acknowledged by Aetrix.
2.The issue is reported within 90 days of delivery.
3.The STM8L152K4U6 part is unused and in its original packaging.
Return procedure for STM8L152K4U6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8L152K4U6 Tags

-
ATTINY4-TSHR
Microchip Technology

-
ATTINY10-TSHR
Microchip Technology

-
ATTINY10-TS8R
Microchip Technology

-
ATTINY202-SSNR
Microchip Technology

-
ATTINY202-SSFR
Microchip Technology

-
ATTINY402-SSNR
Microchip Technology

-
PIC16F15213T-I/MF
Microchip Technology

-
PIC16F15213-E/MF
Microchip Technology

-
PIC10F200T-I/OT
Microchip Technology

-
ATTINY412-SSNR
Microchip Technology

-
PIC10F202T-I/OT
Microchip Technology

-
ATTINY404-SSNR
Microchip Technology
Tech Hub
A practical engineering guide to 3.3V and 5V logic compatibility, input thresholds, resistor dividers, translator ICs, MOSFET level shifting, I2C pull-ups, timing limits and power-sequencing risks.
The 74HC595 uses push-pull logic outputs, while the TPIC6B595 uses 50 V open-drain DMOS sinks for higher-power loads. This guide compares timing, current limits, 3.3 V interfacing, load wiring, thermal…
The 74HC595 converts serial data into eight stable parallel outputs. This guide covers pin functions, shift and storage timing, OE and MR behavior, drive-current limits, cascading, voltage compatibilit…
A technical comparison of level-sensitive latches and edge-triggered flip-flops, covering timing windows, setup and hold limits, master–slave operation, time borrowing, race-through, HDL inference and…
A D latch stores one bit while Enable controls when data can pass. This reference covers gate-level operation, truth tables, transparency, setup and hold timing, LE versus OE, common ICs and practical …
An SR latch stores one bit through cross-coupled feedback. This engineering reference covers NOR and NAND implementations, truth tables, forbidden-state recovery, gated operation, switch debouncing, fa…
Latch circuits retain one bit through feedback. This technical reference covers SR and D latches, truth tables, transparency, timing limits, latch-versus-flip-flop behavior, applications and common log…
An engineering guide to LED driver operation, constant-current and constant-voltage outputs, linear and switching topologies, dimming, IC selection, calculations, replacement compatibility, and fault c…
Operational amplifier guide covering op amp basics, feedback, ideal vs real op amps, common configurations, buffer circuits, offset, bias current, gain-bandwidth, slew rate, rail-to-rail limits and sel…
Jumper cables guide covering safe connection order, red and black clamp placement, final ground connection, cable gauge, length, clamp quality, copper vs CCA cables, jump starter comparison and battery…

