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

- Shipping:

Inventory:1,609
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8L151G3U3 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 (1 Msps, 28 channels), two ultra-low-power comparators, and up to 41 I/Os in a 28-pin UFQFPN package. It operates from 1.65–3.6 V across –40 to +85 °C and targets battery-powered sensor nodes and portable medical devices requiring sub-μA Halt-mode current.
For engineers reviewing the STM8L151G3U3 datasheet, STM8L151G3U3 pinout, STM8L151G3U3 application, or STM8L151G3U3 equivalent, key selection criteria include verified Halt-mode current (300 nA typical), RTC accuracy under LSE clocking, capacitive touch channel count (up to 20), SWIM debug interface compatibility, and BOR threshold programmability across five levels.
Technical Context
The STM8L151G3U3 implements a Harvard-architecture STM8 core with 3-stage pipeline, delivering 16 CISC MIPS at 16 MHz. Its power management includes five distinct low-power modes-Wait, Low-power Run, Low-power Wait, Active-halt with RTC, and Halt-with 5 µs wakeup from Halt and 50 nA I/O leakage per pin.
Clock architecture integrates dual crystal oscillators (32 kHz LSE, 1–16 MHz HSE), factory-trimmed 16 MHz RC, and 38 kHz low-consumption RC, all protected by a clock security system. The RTC supports BCD calendar, alarm interrupt, auto-wakeup, and LSE security monitoring.
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-constrained firmware. |
| Max Operating Frequency | 16 MHz; delivers 16 CISC MIPS peak performance while maintaining ultra-low-power operation down to 1.65 V supply. |
| Halt Mode Current | 300 nA typical (VDD = 3.0 V, T = 25 °C); enables multi-year battery life in always-on sensing applications with RTC active. |
| ADC Resolution & Speed | 12-bit SAR ADC, 1 Msps max sampling rate across 28 channels; supports simultaneous temperature sensor and internal reference voltage measurement. |
| RTC Accuracy | ±0.5 ppm with digital calibration; eliminates external trimming components and ensures long-term timekeeping stability in metering and logging systems. |
| I/O Count & Mapping | Up to 41 GPIOs, all mappable to interrupt vectors; enables flexible peripheral routing and robust wake-up capability from any pin. |
| Capacitive Sensing | 20-channel CSG peripheral supporting touchkey, proximity, linear, and rotary touch; requires no external components for basic implementations. |
Pinout & Package
STM8L151G3U3 is housed in a 28-pin UFQFPN (4 × 4 mm, 0.5 mm pitch) package with exposed thermal pad. This compact, lead-free, ECOPACK-compliant package supports high-density PCB layouts and efficient thermal dissipation in space-constrained designs.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply input | Main digital supply rail (1.65–3.6 V); powers core, memories, and most peripherals; decoupling required near pin. |
| VSS | Ground reference | Digital ground return path; must be connected to low-impedance PCB plane for noise immunity and stable ADC operation. |
| NRST | Active-low reset input | Asynchronous reset pin with internal pull-up; accepts external push-button or supervisor IC assertion; supports SWIM programming entry. |
| SWIM | Single-wire interface module | Dedicated debug and programming pin; enables non-intrusive on-chip debugging and fast flash programming without JTAG overhead. |
| PA0–PA7 | General-purpose I/O bank A | 8-bit port with high-sink LED driver capability on PA0; supports interrupt, analog input, and capacitive sensing functions. |
| PB0–PB7 | General-purpose I/O bank B | 8-bit port with USART TX/RX, SPI SCK/MOSI/MISO, and I²C SCL/SDA remapping; configurable as open-drain or push-pull. |
| PC0–PC7 | General-purpose I/O bank C | 8-bit port supporting TIM2/TIM3 channels, ADC inputs, comparator outputs, and RTC_ALARM; includes dedicated beeper timer output. |
| PD0–PD6 | General-purpose I/O bank D | 7-bit port with TIM4, ADC, and comparator inputs; supports capacitive sensing and wake-up from all low-power modes. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power RTC | BCD calendar with alarm interrupt, digital calibration (±0.5 ppm), LSE security, and auto-wakeup from Halt-enables precise time-stamped logging without external RTC IC. |
| Flexible Power Modes | Five validated low-power states including Active-halt with RTC (400 nA typ.) and Halt (300 nA typ.), each with defined wakeup sources and latency (≤5 µs from Halt). |
| Integrated Analog Peripherals | 12-bit ADC (28 channels, 1 Msps), two rail-to-rail comparators (one with fixed threshold), internal temp sensor, and 1.22 V reference-reduces BOM count in sensor signal chains. |
| Capacitive Touch Engine | 20-channel CSG supporting touchkey, proximity, linear, and rotary configurations; uses hardware-accelerated charge-transfer method with no external components required. |
| Robust Development Support | SWIM single-wire interface enables full-speed debugging and flash programming without halting CPU; bootloader via USART simplifies field firmware updates. |
Applications
| Smart Utility Metering | Portable Medical Sensors |
|---|---|
|
Use Scenario: Battery-powered gas/water meters capturing flow data and transmitting hourly via LPWAN. IC Role / Device Role / Timing Role: Primary system controller managing sensor acquisition, RTC-timestamped logging, low-power radio interface timing, and secure firmware updates. Use Value: 300 nA Halt-mode current extends 10-year battery life; ±0.5 ppm RTC accuracy ensures regulatory-compliant billing intervals without drift compensation. |
Use Scenario: Wearable ECG patch continuously monitoring heart rate and detecting arrhythmia events. IC Role / Device Role / Timing Role: Signal acquisition hub digitizing analog leads via 12-bit ADC, performing real-time filtering, and triggering alerts using comparator-based event detection. Use Value: Ultra-low leakage I/O (50 nA/pin) prevents electrode polarization; integrated temp sensor enables patient-core temperature compensation of analog front-end gain. |
| Industrial Wireless Sensor Nodes | Home Appliance Control Panels |
|
Use Scenario: Self-powered vibration/temperature node on rotating machinery reporting condition data every 5 minutes. IC Role / Device Role / Timing Role: Energy-harvesting manager coordinating piezoelectric input, supercap charging, and burst-mode wireless transmission synchronized to RTC alarm. Use Value: Five low-power modes allow dynamic adaptation: Low-power Run during sensing, Active-halt during energy harvesting, Halt between transmissions-maximizing harvested energy utilization. |
Use Scenario: Touch-enabled oven control panel with proximity wake-up and slider-based temperature adjustment. IC Role / Device Role / Timing Role: Capacitive touch controller driving 12-key matrix and 4-segment linear slider while managing LED backlight dimming via PWM timers. Use Value: 20-channel CSG handles all touch functions in one chip; beeper timer (1/2/4 kHz) provides tactile feedback without external oscillator or driver circuitry. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar ultra-low-power 8-bit microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM8L051F3P6 | 4 KB Flash, no RTC, no EEPROM, 20-pin TSSOP only, lower peripheral count (no DMA, single comparator). | Suitable for cost-sensitive, non-time-critical sensor endpoints where calendar functionality is unnecessary. | Select when RTC, EEPROM, or capacitive touch are not required-offers lower unit cost and smaller footprint. |
| STM32L011K4U6 | 32-bit ARM Cortex-M0+, 16 KB Flash, 2 KB RAM, 12-bit ADC (1.14 Msps), but no integrated capacitive touch engine or beeper timer. | Better suited for applications needing higher compute throughput or richer connectivity (e.g., BLE stack integration), but requires external touch controller. | Choose when firmware complexity exceeds 8-bit capacity or when future-proofing for 32-bit toolchain migration is prioritized over analog integration. |
Compared with STM8L051F3P6, the STM8L151G3U3 adds RTC, EEPROM, and touch support at modest cost premium; versus STM32L011K4U6, it trades 32-bit compute headroom for superior analog integration and lower system-level BOM count in touch-and-sense applications.
Availability
STM8L151G3U3 is available at Aetrix Electronics and suitable for smart utility metering, portable medical sensors, industrial wireless sensor nodes, and home appliance control panels requiring stable component supply across extended product lifecycles.
Supply support for STM8L151G3U3 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 family targets battery-operated and energy-harvesting applications demanding sub-microamp sleep currents, integrated RTC, and rich analog peripherals-all within an 8-bit architecture optimized for deterministic real-time control.
FAQ
What is the minimum supply voltage for reliable operation with BOR enabled?
The STM8L151G3U3 requires a minimum supply voltage of 1.8 V when the Brown-out Reset (BOR) is enabled. BOR offers five selectable thresholds (1.65 V to 2.5 V), and operation below the selected threshold triggers a reset. At 1.8 V, all peripherals-including ADC, RTC, and comparators-function within datasheet specifications.
Does the device support capacitive touch sensing without external components?
Yes. The STM8L151G3U3 integrates a dedicated Capacitive Sensing Ground (CSG) peripheral supporting up to 20 channels. It uses charge-transfer measurement with built-in current sources and timing logic, enabling touchkey, proximity, linear, and rotary sensing without external resistors, op-amps, or dedicated touch ICs.
Can the RTC maintain accuracy when powered solely by a backup battery?
Yes. When VDD is absent, the RTC continues operating from the VBAT pin using an external coin-cell or supercapacitor. With LSE crystal (32.768 kHz) and digital calibration enabled, the RTC achieves ±0.5 ppm accuracy-equivalent to less than 16 seconds deviation per year-under stable temperature conditions.
Is SWIM debugging supported in all low-power modes?
SWIM debugging is fully functional in Run, Wait, and Low-power Run modes. In Low-power Wait, Active-halt, and Halt modes, SWIM remains accessible only if the debug session was initiated before entering the mode; it cannot wake the device from Halt. For production firmware, SWIM can be disabled via option bytes to prevent unauthorized access.
STM8L151G3U3 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:
- 8KB (8K 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 ~ 125°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM8L151G3U3 FAQ
1.How can I place an order for STM8L151G3U3 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8L151G3U3 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 STM8L151G3U3 reliable?
The price and inventory of STM8L151G3U3 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8L151G3U3 is usually 5 days.
3.What payment methods are accepted for STM8L151G3U3?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8L151G3U3 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8L151G3U3?
STM8L151G3U3 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8L151G3U3 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 STM8L151G3U3?
For technical support, including STM8L151G3U3 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8L151G3U3 requirements.
6.How does Aetrix verify that STM8L151G3U3 is sourced from the original manufacturer or authorized distributors?
All STM8L151G3U3 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 STM8L151G3U3 meets industry standards.
7.What is the process for return or replacement of STM8L151G3U3?
All STM8L151G3U3 units undergo pre-shipment inspection (PSI). If there is an issue with STM8L151G3U3, 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 STM8L151G3U3 part is unused and in its original packaging.
Return procedure for STM8L151G3U3:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8L151G3U3 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…

