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

- Shipping:

Inventory:1,850
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8L151K2U6 from STMicroelectronics is an 8-bit ultra-low-power microcontroller featuring 8 KB Flash, 256-byte data EEPROM with ECC, RTC with ±0.5 ppm digital calibration, 12-bit ADC (up to 1 Msps, 28 channels), and dual ultra-low-power comparators. It operates from 1.65–3.6 V across –40 to +85 °C and targets battery-powered sensor nodes, portable medical devices, and smart utility meters requiring sub-μA Halt-mode current and fast 5 µs wakeup.
For engineers reviewing the STM8L151K2U6 datasheet, STM8L151K2U6 pinout, STM8L151K2U6 application, or STM8L151K2U6 equivalent, key selection criteria include verified Halt-mode current (300 nA typ.), RTC accuracy under LSE clocking, capacitive touch channel count (20 channels), and SWIM-based non-intrusive debugging support in ultra-constrained power budgets.
Technical Context
The STM8L151K2U6 implements a Harvard-architecture STM8 core with 3-stage pipeline, delivering 16 CISC MIPS at 16 MHz. Its low-power continuum includes five distinct modes-Wait, Low-power Run, Low-power Wait, Active-halt with RTC, and Halt-with leakage per I/O as low as 50 nA and guaranteed 5 µs wakeup from Halt.
Clock management integrates three oscillators: 32 kHz LSE for RTC, 1–16 MHz HSE for main system clock, and factory-trimmed 16 MHz HSI with ±1% accuracy at 3.0 V. The RTC supports BCD calendar, alarm interrupt, auto-wakeup, and LSE security monitoring to prevent clock tampering.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | 8-bit STM8 Harvard core with 3-stage pipeline; enables deterministic real-time execution and efficient code density for resource-limited firmware. |
| Max Operating Frequency | 16 MHz; delivers 16 CISC MIPS peak performance while maintaining ultra-low active current (190 µA/MHz typical). |
| Halt Mode Current | 300 nA typical (VDD = 3.0 V, T = 25 °C); enables multi-year battery life in always-on sensing applications. |
| RTC Accuracy | ±0.5 ppm with digital calibration (LSE-clocked); eliminates external temperature compensation in time-critical metering. |
| ADC Resolution & Speed | 12-bit SAR ADC, up to 1 Msps with 28 input channels; supports simultaneous sampling of analog sensors and internal temp/vref. |
| Capacitive Sensing | 20-channel CSG peripheral supporting touchkey, proximity, linear, and rotary touch; requires no external components for basic implementations. |
| Debug Interface | Single-Wire Interface Module (SWIM); enables full-speed on-chip programming and non-intrusive debugging using only one pin. |
Pinout & Package
STM8L151K2U6 is housed in a 32-pin UFQFPN package (5 × 5 mm, 0.5 mm pitch) with exposed thermal pad. This compact, lead-free RoHS-compliant package supports high-density PCB layouts and efficient thermal dissipation in space-constrained designs.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply (core & I/O) | 1.65–3.6 V input; powers all digital logic, analog peripherals, and I/O buffers; decoupling required per datasheet layout guidelines. |
| VSS | Ground reference | Digital ground return path; must be connected to PCB ground plane with low-inductance routing to minimize noise coupling. |
| NRST | Active-low reset input | Asynchronous reset pin with programmable PVD and BOR thresholds; supports external pull-up and debounced push-button reset. |
| SWIM | Single-wire debug interface | Enables programming, erasing, and real-time debugging via dedicated SWIM protocol; requires no additional UART or JTAG pins. |
| PA0–PA7 | General-purpose I/O bank A | 8-bit bidirectional port with interrupt capability, high-sink LED driver on PA0, and configurable alternate functions (USART, SPI, etc.). |
| PB0–PB7 | General-purpose I/O bank B | 8-bit bidirectional port supporting capacitive sensing inputs, comparator outputs, and timer capture/compare signals. |
| PC0–PC7 | General-purpose I/O bank C | 8-bit port with RTC_ALARM, LSE_IN/LSE_OUT, and I2C_SCL/SDA alternate functions; supports wake-up from all low-power modes. |
| PD0–PD7 | General-purpose I/O bank D | 8-bit port with USART_TX/RX, SPI_MOSI/MISO/SCK, and ADC_INx alternate functions; all pins mappable to interrupt vectors. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power RTC | BCD calendar with alarm, periodic wakeup, and ±0.5 ppm accuracy-enables precise timekeeping without external crystal oscillator trimming. |
| Flexible Low-Power Modes | Five distinct modes including Active-halt (RTC running) and Halt (300 nA); allows dynamic trade-off between responsiveness and energy consumption. |
| Integrated Analog Peripherals | 12-bit ADC (28 channels, 1 Msps), two rail-to-rail comparators (one with fixed threshold), and internal temperature sensor-reduces BOM count in sensor fusion designs. |
| Capacitive Touch Controller | 20-channel CSG supporting touchkey, proximity, linear, and rotary sensing-enables intuitive HMI without external ICs or firmware overhead. |
| Memory Protection | Flash and EEPROM with ECC, flexible read/write protection, and option byte configuration-ensures firmware integrity and secure data storage. |
Applications
| Smart Utility Metering | Portable Medical Sensors |
|---|---|
Use Scenario: Battery-operated gas/water meters logging flow rate, pressure, and temperature every 15 minutes with 10-year lifespan. IC Role / Device Role / Timing Role: Main system controller managing sensor acquisition, RTC-timed data logging, secure EEPROM storage, and RF transmission scheduling. Use Value: 300 nA Halt-mode current and ±0.5 ppm RTC accuracy eliminate need for supercapacitors or external RTC ICs, reducing size and cost. |
Use Scenario: Disposable glucose monitors or wearable ECG patches requiring single-CR2032 operation and clinical-grade signal fidelity. IC Role / Device Role / Timing Role: Signal acquisition hub digitizing analog biosignals via 12-bit ADC, performing baseline correction, and triggering alerts on comparator thresholds. Use Value: Integrated 12-bit ADC with internal reference and temperature sensor enables calibrated measurements without external precision references or calibration routines. |
| Industrial Wireless Sensor Nodes | Home Automation Touch Interfaces |
Use Scenario: LoRaWAN-enabled environmental sensors deployed in remote locations measuring humidity, CO₂, and ambient light over 5+ years. IC Role / Device Role / Timing Role: Power-aware coordinator handling sensor polling, low-power radio wake-up, and duty-cycled data aggregation before transmission. Use Value: Five low-power modes and 5 µs Halt wakeup allow rapid response to sensor events while minimizing average current draw below 1 µA. |
Use Scenario: Wall-mounted smart switches and thermostats with glass-front capacitive touch controls resistant to moisture and glove use. IC Role / Device Role / Timing Role: Dedicated touch controller managing 20-channel CSG, debouncing, gesture recognition, and LED feedback timing. Use Value: On-die capacitive sensing eliminates external touch ICs and reduces firmware complexity-supports proximity wake-up and linear slider control out-of-box. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar ultra-low-power MCU applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM8L051F3P6 | 4 KB Flash, no RTC, no EEPROM, TSSOP20 package (20-pin), lower peripheral count. | Suitable for simpler timer/control tasks without calendar or data retention needs. | Select when BOM cost and footprint are critical and RTC/data EEPROM are unnecessary. |
| STM32L011K4U6 | 32-bit ARM Cortex-M0+, 16 KB Flash, 2 KB RAM, similar ultra-low-power profile but higher code density and toolchain maturity. | Better suited for complex connectivity stacks (BLE, LoRa) or firmware requiring RTOS integration. | Choose when future scalability, ecosystem support, or mixed-signal processing headroom is required. |
Compared with STM8L051F3P6, STM8L151K2U6 adds RTC, EEPROM, and capacitive sensing-making it superior for time-stamped logging and HMI. Versus STM32L011K4U6, it offers lower gate count and simpler toolchain but less compute headroom for protocol stacks.
Availability
STM8L151K2U6 is available at Aetrix Electronics and suitable for smart utility metering, portable medical sensors, and industrial wireless sensor nodes requiring stable component supply, long-term lifecycle assurance, and consistent parametric performance across production batches.
Supply support for STM8L151K2U6 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 automotive semiconductors since 1987.
The STM8L ultra-low-power MCU product line targets battery-operated and energy-harvesting applications where sub-µA sleep current, integrated analog peripherals, and robust RTC functionality are essential design requirements.
FAQ
What is the minimum supply voltage for reliable operation with BOR enabled?
The STM8L151K2U6 requires a minimum VDD of 1.8 V when the Brown-out Reset (BOR) is enabled, as specified in Section 9.3.1 of DS7204 Rev 11. Below this threshold, BOR asserts reset to prevent erratic behavior; disabling BOR allows operation down to 1.65 V but removes this safety mechanism.
Does the 12-bit ADC support hardware-triggered conversions from timers?
Yes-the ADC1 module supports hardware triggers from TIM2, TIM3, and TIM4 update events, enabling precise synchronous sampling of analog signals (e.g., motor current or audio envelope) without CPU intervention or software latency.
Can the capacitive sensing channels operate during Low-power Run mode?
Yes-capacitive sensing is fully functional in Low-power Run mode, consuming only 12 µA typical (at 1 MHz CPU clock). This allows continuous touch detection while maintaining responsiveness and low average current for battery longevity.
Is the 96-bit unique ID accessible via standard debug interfaces?
Yes-the 96-bit unique ID is readable via SWIM during debug sessions and through firmware using the UID registers (addresses 0x4865–0x486A). It is factory-programmed, unalterable, and compliant with IEEE EUI-64 standards for device identification.
STM8L151K2U6 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, POR, PWM, WDT
- Number of I/O:
- 30
- Program Memory Size:
- 4KB (4K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 256 x 8
- RAM Size:
- 1K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.8V ~ 3.6V
- Data Converters:
- A/D 23x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM8L151K2U6 FAQ
1.How can I place an order for STM8L151K2U6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8L151K2U6 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 STM8L151K2U6 reliable?
The price and inventory of STM8L151K2U6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8L151K2U6 is usually 5 days.
3.What payment methods are accepted for STM8L151K2U6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8L151K2U6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8L151K2U6?
STM8L151K2U6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8L151K2U6 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 STM8L151K2U6?
For technical support, including STM8L151K2U6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8L151K2U6 requirements.
6.How does Aetrix verify that STM8L151K2U6 is sourced from the original manufacturer or authorized distributors?
All STM8L151K2U6 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 STM8L151K2U6 meets industry standards.
7.What is the process for return or replacement of STM8L151K2U6?
All STM8L151K2U6 units undergo pre-shipment inspection (PSI). If there is an issue with STM8L151K2U6, 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 STM8L151K2U6 part is unused and in its original packaging.
Return procedure for STM8L151K2U6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8L151K2U6 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…

