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

- Shipping:

Inventory:2,788
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8L151G2U6 from STMicroelectronics is an 8-bit ultra-low-power microcontroller featuring 8 KB Flash, 256-byte data EEPROM with ECC, 12-bit ADC (1 Msps, 28 channels), RTC with ±0.5 ppm digital calibration, and dual ultra-low-power comparators. It operates from 1.65–3.6 V across –40 to +85 °C and supports five low-power modes including Active-halt with RTC - enabling battery-powered sensor nodes in industrial monitoring systems.
For engineers reviewing the STM8L151G2U6 datasheet, STM8L151G2U6 pinout, STM8L151G2U6 application, or STM8L151G2U6 equivalent, key selection criteria include its 50 nA I/O leakage, 5 µs wakeup from Halt mode, 96-bit unique ID, SWIM-based non-intrusive debugging, and capacitive touch support for up to 20 channels - all critical for energy-constrained embedded designs.
Technical Context
The STM8L151G2U6 implements a Harvard-architecture STM8 core with 3-stage pipeline, delivering 16 CISC MIPS at 16 MHz max frequency and supporting up to 40 external interrupt sources. Its clock system integrates three oscillators: factory-trimmed 16 MHz RC, 38 kHz low-consumption RC, and configurable 32 kHz/1–16 MHz crystal inputs with clock security system.
Power management includes programmable BOR with five thresholds, ultra-low-power POR/PDR, and PVD; memory subsystem comprises 8 KB Flash with flexible protection, 1 KB RAM, and 256-byte EEPROM with error correction. The RTC operates independently in Active-halt mode using LSE, enabling precise calendar functions with auto-wakeup capability.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | STM8 8-bit Harvard, 3-stage pipeline, 16 MIPS peak at 16 MHz - enables deterministic real-time control with low gate count. |
| Operating Voltage | 1.65–3.6 V (no BOR), 1.8–3.6 V (with BOR) - supports direct Li-ion/Li-SOCl₂ battery operation without regulator overhead. |
| Low-Power Modes | 5 modes: Wait, Low-power Run, Low-power Wait, Active-halt w/ RTC, Halt - achieves sub-μA active-halt current with RTC running. |
| ADC | 12-bit, up to 1 Msps, 28 channels, internal temp sensor & reference - enables high-resolution analog sensing in portable instrumentation. |
| I/O Leakage | 50 nA per I/O in Halt mode - minimizes battery drain in always-on wake-on-event applications like smoke detectors. |
| RTC Accuracy | ±0.5 ppm with digital calibration - eliminates need for external temperature compensation in metering applications. |
| Unique ID | 96-bit factory-programmed - provides hardware root of trust for secure firmware updates and device authentication. |
Pinout & Package
STM8L151G2U6 is packaged in UFQFPN28 (4×4 mm, 0.5 mm pitch), a space-constrained, thermally efficient package suitable for compact IoT endpoints. Pin count is 28 with full GPIO remapping capability and dedicated SWIM debug interface.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Power supply and ground | Dual power domains: VDD powers digital/analog peripherals; VSS provides clean return path for low-noise ADC/RTC operation. |
| NRST | Active-low reset input | Accepts external reset pulse; integrates programmable BOR and PVD for autonomous brownout recovery. |
| SWIM | Single-wire interface for debug | Enables non-intrusive programming and real-time debugging without dedicated JTAG pins - saves PCB area. |
| PA0–PA7, PB0–PB7, PC0–PC7, PD0–PD3 | General-purpose I/O | All 28 pins support interrupt vector mapping and capacitive sensing - allows flexible peripheral assignment in touch-enabled designs. |
| OSC_IN/OSC_OUT | External crystal oscillator terminals | Supports 32 kHz LSE for RTC or 1–16 MHz HSE for high-speed timing - selectable via option bytes. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power RTC | BCD calendar with alarm interrupt, LSE security, and periodic auto-wakeup from Halt - enables decade-long battery life in utility meters. |
| Capacitive Sensing | 20-channel CSG peripheral supporting touchkey, proximity, linear, and rotary sensors - eliminates external touch controller ICs. |
| DMA Controller | 4-channel peripheral DMA (ADC, SPI, I²C, USART, timers) + 1 memory-to-memory channel - reduces CPU load during sensor data acquisition. |
| Memory Protection | Flexible read/write protection for Flash and EEPROM, plus ECC on EEPROM - prevents unauthorized firmware access and ensures data integrity. |
| Fast Wakeup | 5 µs from Halt mode - meets strict response latency requirements in industrial safety controllers and alarm systems. |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
Use Scenario: Battery-powered gas/water meter with hourly pulse counting, temperature logging, and RF transmission. IC Role / Device Role / Timing Role: Primary MCU managing metrology ADC sampling, RTC timestamping, EEPROM data storage, and low-power RF wake scheduling. Use Value: Active-halt mode with RTC maintains timekeeping at <1 μA while enabling scheduled wakeups - extends 10-year battery life. |
Use Scenario: Environmental monitor deployed in remote locations measuring temperature, humidity, and air quality. IC Role / Device Role / Timing Role: Central sensor aggregator with 12-bit ADC, temp sensor, and I²C interface to external sensors. Use Value: 50 nA I/O leakage and 5 µs wakeup minimize quiescent current - achieves >5 years runtime on CR2032 coin cell. |
| Industrial Touch HMI | Portable Medical Device |
Use Scenario: Panel-mounted control interface with slider, button, and proximity wake for factory equipment. IC Role / Device Role / Timing Role: Capacitive touch controller with 20-channel CSG, LED driver on PA0, and UART communication to host PLC. Use Value: Integrated touch sensing eliminates external ICs and reduces BOM cost by 30% versus discrete solutions. |
Use Scenario: Handheld blood glucose monitor requiring accurate analog measurement, low-power display refresh, and secure data logging. IC Role / Device Role / Timing Role: Signal acquisition MCU with calibrated 12-bit ADC, internal reference voltage, and 256-byte EEPROM for patient history. Use Value: On-chip ECC-protected EEPROM ensures regulatory-compliant data retention over 100k write cycles. |
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 |
|---|---|---|---|
| STM8L151K4T6 | 4 KB Flash, 1 KB RAM, UFQFPN32 package - larger memory and pin count but higher footprint and cost. | Suitable for designs needing more GPIO or larger firmware image; not drop-in due to different package and pinout. | Select when additional RAM or peripheral concurrency is required beyond G2U6's 8 KB Flash/1 KB RAM limit. |
| STM32L011K4U6 | 32-bit ARM Cortex-M0+, 32 KB Flash, 8 KB RAM, same UFQFPN28 package - higher performance but increased code size and power in active mode. | Better for complex protocol stacks (BLE, LoRaWAN) where 8-bit throughput is insufficient. | Choose only if 32-bit processing, larger memory, or ARM ecosystem compatibility outweighs G2U6's lower active-mode current and simpler toolchain. |
Compared with STM8L151K4T6 and STM32L011K4U6, the STM8L151G2U6 delivers optimal balance of ultra-low standby current (sub-μA), minimal BOM cost, and sufficient resources for basic sensor node and metering tasks - making it the most energy-efficient choice for cost-sensitive, long-life applications.
Availability
STM8L151G2U6 is available at Aetrix Electronics and suitable for smart utility metering, wireless sensor nodes, industrial touch HMIs, and portable medical devices requiring stable component supply and long-term lifecycle assurance.
Supply support for STM8L151G2U6 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.
The STM8L ultra-low-power MCU family targets battery-operated and energy-harvesting applications, emphasizing sub-μA sleep current, fast wake-up, and integrated analog peripherals to reduce system-level component count.
FAQ
What is the maximum operating frequency and corresponding power consumption in Run mode?
The STM8L151G2U6 runs at up to 16 MHz with typical active current of 190 µA/MHz at 3.0 V. At full speed and 3.0 V, total Run-mode current is approximately 3.04 mA - measured with all peripherals disabled and HSI oscillator active. This value scales linearly with voltage and clock frequency per datasheet Table 19.
Does STM8L151G2U6 support capacitive touch sensing without external components?
Yes - it integrates a dedicated Capacitive Sensing GPIO (CSG) peripheral supporting up to 20 channels. It requires no external RC networks or dedicated touch controller ICs; only electrode traces on PCB are needed. Calibration and baseline tracking are handled in firmware using ST's Touch Sensing Library (TSML).
How is the RTC powered and maintained during Halt mode?
The RTC remains fully operational in Active-halt mode using the LSE (32.768 kHz) crystal oscillator, drawing just 0.8 µA typical current. It retains BCD calendar, alarm, and periodic wakeup functionality while CPU and most peripherals are powered down - verified in datasheet Table 24.
What debug interface does STM8L151G2U6 use, and what tools support it?
It uses the Single-Wire Interface Module (SWIM), a 2-pin (SWIM + NRST) debug interface supporting flash programming, breakpoints, and real-time variable inspection. Supported tools include ST-LINK/V2, ST Visual Develop (STVD), and Cosmic C compiler with integrated SWIM driver - no JTAG header required.
STM8L151G2U6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 28-UFQFN
- 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:
- 26
- 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 18x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM8L151G2U6 FAQ
1.How can I place an order for STM8L151G2U6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8L151G2U6 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 STM8L151G2U6 reliable?
The price and inventory of STM8L151G2U6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8L151G2U6 is usually 5 days.
3.What payment methods are accepted for STM8L151G2U6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8L151G2U6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8L151G2U6?
STM8L151G2U6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8L151G2U6 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 STM8L151G2U6?
For technical support, including STM8L151G2U6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8L151G2U6 requirements.
6.How does Aetrix verify that STM8L151G2U6 is sourced from the original manufacturer or authorized distributors?
All STM8L151G2U6 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 STM8L151G2U6 meets industry standards.
7.What is the process for return or replacement of STM8L151G2U6?
All STM8L151G2U6 units undergo pre-shipment inspection (PSI). If there is an issue with STM8L151G2U6, 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 STM8L151G2U6 part is unused and in its original packaging.
Return procedure for STM8L151G2U6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8L151G2U6 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…

