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

- Shipping:

Inventory:2,396
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8L151G2U3TR from STMicroelectronics is an 8-bit ultra-low-power microcontroller featuring 8 KB Flash, 256-byte data EEPROM with ECC, RTC, 12-bit ADC (up to 1 Msps), two ultra-low-power comparators, and multiple timers including TIM2/TIM3 (16-bit) and TIM4 (8-bit). It operates from 1.65–3.6 V across –40 to +85 °C and targets battery-powered sensor nodes and portable medical devices.
For engineers reviewing the STM8L151G2U3TR datasheet, STM8L151G2U3TR pinout, STM8L151G2U3TR application, or STM8L151G2U3TR equivalent, key selection criteria include ultra-low leakage per I/O (50 nA), fast Halt-mode wakeup (5 µs), BCD calendar RTC with ±0.5 ppm digital calibration, and support for up to 20 capacitive sensing channels.
Technical Context
The STM8L151G2U3TR implements a Harvard-architecture STM8 core with 3-stage pipeline, delivering 16 CISC MIPS at 16 MHz. Its clock system integrates three oscillators: factory-trimmed 16 MHz RC, 38 kHz low-consumption RC, and external 32 kHz crystal (LSE) for RTC.
Power management includes five low-power modes (Wait, Low-power Run, Low-power Wait, Active-halt with RTC, Halt), programmable voltage detector (PVD), and BOR with five selectable thresholds. The RTC supports auto-wakeup from Halt via periodic interrupt and digital calibration for precision timing.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | Harvard, 3-stage pipeline STM8 CPU delivering 16 MIPS at 16 MHz |
| Flash / EEPROM | 8 KB Flash with read-while-write; 256-byte data EEPROM with ECC for robust nonvolatile storage |
| ADC | 12-bit SAR ADC with up to 28 channels, 1 Msps sampling rate, internal reference and temperature sensor |
| RTC Accuracy | ±0.5 ppm digital calibration enables precise timekeeping in battery-backed applications |
| I/O Leakage | 50 nA per I/O in Halt mode ensures multi-year operation on coin-cell batteries |
| Wakeup Time | 5 µs from Halt mode enables rapid response to external events without sacrificing energy efficiency |
| Operating Voltage | 1.65–3.6 V (no BOR) or 1.8–3.6 V (with BOR) supports wide-range primary/secondary battery chemistries |
Pinout & Package
STM8L151G2U3TR is housed in a UFQFPN28 (4×4 mm, 0.5 mm pitch) package with 28 terminals, optimized for space-constrained ultra-low-power designs.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Core power supply | Primary 1.65–3.6 V input powering CPU, memories, and peripherals |
| VSS | Ground reference | Dedicated analog/digital ground return path for noise-sensitive operation |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts external push-button or supervisor signal |
| PA0–PA7 | General-purpose I/O bank A | 8-bit port supporting interrupt-on-change, capacitive sensing, and high-sink LED drive (PA0) |
| PB0–PB7 | General-purpose I/O bank B | 8-bit port with remappable USART, SPI, I²C, and timer functions |
| PC0–PC7 | General-purpose I/O bank C | 8-bit port supporting RTC alarm output, beeper, and comparator outputs |
| PD0–PD6 | General-purpose I/O bank D | 7-bit port with ADC channel inputs and comparator inputs |
| OSC_IN / OSC_OUT | External crystal oscillator interface | Supports 32 kHz LSE crystal for RTC or 1–16 MHz HSE for main system clock |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power RTC | BCD calendar with alarm interrupt and auto-wakeup from Halt-enables time-triggered low-energy operation |
| Capacitive Sensing | Up to 20 channels supporting touchkey, proximity, linear, and rotary sensors without external components |
| Low-power Modes | Five distinct modes including Active-halt with RTC active-reduces average current to sub-µA levels |
| Memory Protection | Flexible Flash/EEPROM write/read protection with option bytes-prevents accidental firmware overwrite |
| SWIM Debug Interface | Single-wire on-chip programming and non-intrusive debugging-minimizes PCB footprint and debug pin count |
Applications
| Smart Utility Metering | Portable Medical Sensors |
|---|---|
Use Scenario: Battery-powered gas/water meter with hourly pulse logging and tamper detection. IC Role / Device Role / Timing Role: Main controller managing sensor acquisition, RTC-based timestamping, and secure data storage in EEPROM. Use Value: 50 nA I/O leakage and 5 µs Halt wakeup enable >10-year battery life with periodic wake-and-log cycles. | Use Scenario: Wearable ECG patch recording heart activity and transmitting alerts via BLE companion MCU. IC Role / Device Role / Timing Role: Analog front-end controller handling 12-bit ADC sampling, comparator-based R-wave detection, and RTC-synchronized data buffering. Use Value: Integrated 12-bit ADC (1 Msps) and dual comparators allow real-time arrhythmia flagging with <1 µs latency. |
| Industrial Wireless Sensor Node | Home Automation Touch Panel |
Use Scenario: LoRaWAN node monitoring temperature, humidity, and door status in unattended factory zones. IC Role / Device Role / Timing Role: System manager coordinating sensor reads, low-power wait states, and SPI communication with transceiver. Use Value: Five low-power modes and SWIM debug support field firmware updates without hardware rework. | Use Scenario: Wall-mounted thermostat with slider and button controls requiring reliable touch response. IC Role / Device Role / Timing Role: Capacitive sensing engine driving 20-channel CSD peripheral for multi-touch UI with proximity wake. Use Value: On-die capacitive sensing eliminates external ICs and reduces BOM cost while supporting linear/rotary gestures. |
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 |
|---|---|---|---|
| STM8L152C2T6 | Same core and peripherals but in LQFP48 package with 32 KB Flash and 1 KB RAM | Requires larger PCB area and supports more complex firmware; lacks UFQFPN28 footprint compatibility | Select when additional memory or I/O count justifies larger package and higher cost |
| STM32L011K4U6 | ARM Cortex-M0+ core, 16 KB Flash, 2 KB RAM, no built-in capacitive sensing, lower active current (160 µA/MHz) | Higher code density and toolchain maturity but requires external touch controller for UI | Select when migrating to ARM ecosystem or prioritizing active-mode efficiency over integrated analog features |
Compared with STM8L152C2T6, STM8L151G2U3TR offers identical low-power architecture in a smaller 4×4 mm package with sufficient memory for basic sensing tasks; compared with STM32L011K4U6, it provides native capacitive sensing and simpler legacy toolchain support at the expense of ARM compatibility and peak processing throughput.
Availability
STM8L151G2U3TR is available at Aetrix Electronics and suitable for smart utility metering, portable medical sensors, and industrial wireless sensor nodes requiring stable component supply and long-term production continuity.
Supply support for STM8L151G2U3TR 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 battery-operated and energy-harvesting applications where extended runtime, RTC precision, and integrated analog peripherals reduce system complexity and bill-of-materials cost.
FAQ
What is the maximum operating frequency and corresponding power consumption in Run mode?
The STM8L151G2U3TR achieves a maximum CPU frequency of 16 MHz using the internal 16 MHz RC oscillator or external HSE. At VDD = 3.0 V and fCPU = 16 MHz, typical active current is 190 µA/MHz, resulting in ~3.04 mA total consumption-verified in DS7204 Rev 11 Table 19 under "Total current consumption in Run mode."
Does this MCU support hardware-accelerated capacitive sensing, and how many channels are available?
Yes, the STM8L151G2U3TR integrates a dedicated capacitive sensing controller supporting up to 20 channels. It enables touchkey, proximity, linear, and rotary touch without external components, with configurable scan speed and noise immunity-detailed in Section 3.11 and Table 1 of the datasheet.
What RTC accuracy can be achieved, and is calibration required?
The RTC achieves ±0.5 ppm accuracy after digital calibration, which is performed once during production and stored in option bytes. No user calibration is needed-the calibrated value is automatically applied at startup, enabling precise timekeeping over temperature and voltage variations.
Is SWIM debugging supported, and what pins are required?
Yes, SWIM (Single-Wire Interface Module) debugging is fully supported for non-intrusive on-chip programming and real-time debugging. Only one dedicated pin (SWIM) plus VDD and VSS are required-no UART or JTAG pins needed-making it ideal for minimal-pin-count designs as confirmed in Section 3.17 and Figure 1.
STM8L151G2U3TR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 28-UFQFN
- Series:
- STM8L EnergyLite
- Packaging:
- Tape & Reel (TR)
- 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, 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.65V ~ 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:
STM8L151G2U3TR FAQ
1.How can I place an order for STM8L151G2U3TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8L151G2U3TR 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 STM8L151G2U3TR reliable?
The price and inventory of STM8L151G2U3TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8L151G2U3TR is usually 5 days.
3.What payment methods are accepted for STM8L151G2U3TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8L151G2U3TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8L151G2U3TR?
STM8L151G2U3TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8L151G2U3TR 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 STM8L151G2U3TR?
For technical support, including STM8L151G2U3TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8L151G2U3TR requirements.
6.How does Aetrix verify that STM8L151G2U3TR is sourced from the original manufacturer or authorized distributors?
All STM8L151G2U3TR 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 STM8L151G2U3TR meets industry standards.
7.What is the process for return or replacement of STM8L151G2U3TR?
All STM8L151G2U3TR units undergo pre-shipment inspection (PSI). If there is an issue with STM8L151G2U3TR, 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 STM8L151G2U3TR part is unused and in its original packaging.
Return procedure for STM8L151G2U3TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8L151G2U3TR 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…

