STMicroelectronics STM8L151F2P6
- Part No.:
- STM8L151F2P6
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 20-TSSOP (0.173", 4.40mm Width)
- Datasheet:
-
STM8L151F2P6.pdf
- Description:
- IC MCU 8BIT 4KB FLASH 20TSSOP
- Quantity:
- Payment:

- Shipping:

Inventory:3,843
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8L151F2P6 from STMicroelectronics is an 8-bit ultra-low-power microcontroller featuring 4 KB Flash, 128 bytes data EEPROM, RTC, 12-bit ADC (up to 28 channels), two 16-bit timers, USART, I²C, SPI, and two ultra-low-power comparators. 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 STM8L151F2P6 datasheet, STM8L151F2P6 pinout, STM8L151F2P6 application, or STM8L151F2P6 equivalent, key selection criteria include ultra-low leakage per I/O (50 nA), fast 5 µs wakeup from Halt mode, factory-trimmed 16 MHz RC oscillator, and support for capacitive touch sensing on up to 20 channels.
Technical Context
The STM8L151F2P6 implements a Harvard-architecture STM8 core with 3-stage pipeline, delivering 16 CISC MIPS at 16 MHz. Its clock system integrates three oscillators: 32 kHz LSE, 1–16 MHz HSE, and internal 16 MHz HSI (factory-trimmed ±1%) plus 38 kHz LSI.
Power management includes five low-power modes-Wait, Low-power Run, Low-power Wait, Active-halt with RTC, and Halt-with BOR thresholds selectable across five levels. The RTC supports BCD calendar, alarm interrupt, digital calibration (±0.5 ppm), and auto-wakeup with periodic interrupt.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | STM8 8-bit Harvard core with 3-stage pipeline, 16 MIPS peak performance at 16 MHz |
| Memory | 4 KB Flash program memory + 128 bytes data EEPROM with ECC; 1 KB RAM |
| ADC | 12-bit SAR ADC, up to 1 Msps, 28 input channels including temp sensor and internal reference |
| Low-Power Modes | 5 modes: Halt (200 nA typical), Active-halt with RTC (1.2 µA), Low-power Run (2.7 µA @ 1 MHz) |
| Timers | Two 16-bit general-purpose timers (TIM2/TIM3) with IC/OC/PWM and quadrature encoder; one 8-bit basic timer (TIM4) |
| Communication | 1× USART, 1× I²C (Fast-mode, 400 kHz), 1× SPI (master/slave, 8 Mbit/s) |
| Supply Range | 1.65–3.6 V (without BOR); 1.8–3.6 V (with BOR); operating temperature –40 to +85 °C |
Pinout & Package
STM8L151F2P6 is packaged in TSSOP20 (6.4 × 4.4 mm, 0.65 mm pitch), a 20-pin thin shrink small outline package suitable for compact PCB layouts and automated assembly.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply | Main digital supply input (1.65–3.6 V); decoupling required near pin |
| VSS | Ground | Digital ground reference; must be connected to low-impedance PCB plane |
| NRST | Reset input | Active-low reset with internal pull-up; accepts external push-button or supervisor signal |
| PA0–PA7 | General-purpose I/O | Bi-directional ports with interrupt capability; PA0 supports high-sink LED driver (20 mA) |
| PB0–PB5 | General-purpose I/O | Configurable as GPIO, alternate functions (USART TX/RX, SPI, I²C, TIM), or touch sense inputs |
| PC0–PC3 | General-purpose I/O | Support capacitive sensing; mapped to touchkey/proximity/linear/rotary sensor channels |
| SWIM | Debug interface | Single-wire interface for non-intrusive programming and debugging |
| OSC_IN / OSC_OUT | Crystal oscillator | Connects to external 32 kHz LSE crystal for RTC or 1–16 MHz HSE for main clock |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low leakage I/O | 50 nA per pin in Halt mode enables multi-year battery life in always-on sensing |
| Fast wake-up | 5 µs from Halt to full execution ensures responsive event-driven operation |
| Capacitive touch support | 20-channel hardware-accelerated touch sensing eliminates need for external controller |
| Factory-trimmed RC | 16 MHz internal oscillator trimmed to ±1% accuracy reduces BOM cost and board space |
| RTC with calibration | Digital calibration achieves ±0.5 ppm accuracy over temperature, enabling precise timekeeping without external TCXO |
Applications
| Smart Wearable Sensor Node | Portable Medical Monitor |
|---|---|
Use Scenario: Continuous ECG or SpO₂ monitoring in wrist-worn device powered by coin cell. IC Role / Device Role / Timing Role: Main MCU managing analog front-end sampling, real-time signal processing, BLE interface timing, and RTC-based data logging intervals. Use Value: Ultra-low 200 nA Halt current extends battery life beyond 2 years; 12-bit ADC supports clinical-grade signal resolution. | Use Scenario: Handheld blood glucose meter with LCD display, button interface, and USB charging. IC Role / Device Role / Timing Role: System controller handling glucose strip detection, ADC conversion, calibration storage in EEPROM, and USB enumeration timing via USART. Use Value: Integrated 128-byte data EEPROM with ECC ensures reliable calibration data retention; 50 nA I/O leakage prevents parasitic discharge during sleep. |
| Wireless Industrial Sensor | Energy-Harvesting IoT Endpoint |
Use Scenario: Battery-operated temperature/humidity node transmitting via sub-GHz RF every 5 minutes. IC Role / Device Role / Timing Role: Central controller coordinating sensor readout, CRC-protected packet assembly, low-power RF wake-up signaling, and RTC-triggered transmission windows. Use Value: Active-halt mode (1.2 µA) with RTC keeps time and schedules transmissions while minimizing energy use between cycles. | Use Scenario: Solar-powered environmental monitor using supercapacitor storage and duty-cycled operation. IC Role / Device Role / Timing Role: Power-aware system manager that enters Halt mode during energy harvesting, wakes on timer or external interrupt, and executes minimal sensor readout before returning to sleep. Use Value: 5 µs wake-up latency allows efficient burst-mode operation; internal 38 kHz LSI enables timing during ultra-low-power states without external components. |
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 | 2 KB Flash, no RTC, no DMA, single 16-bit timer, 1.65–3.6 V supply | Lacks calendar RTC and capacitive touch support; suited for simpler timer/control tasks | Select when RTC and touch are unnecessary and cost/BOM reduction is critical |
| STM32L011D4P6 | 32-bit ARM Cortex-M0+, 16 KB Flash, 2 KB RAM, 12-bit ADC, same TSSOP20 package | Higher code density and peripheral integration but requires ARM toolchain and higher design complexity | Choose for future-proofing, firmware scalability, or when 32-bit precision is needed in same footprint |
Compared with STM8L051F3P6, STM8L151F2P6 adds RTC, DMA, dual timers, and touch sensing-enabling richer functionality without increasing package size. Against STM32L011D4P6, it offers lower development overhead and deterministic 8-bit real-time response, though with less computational headroom.
Availability
STM8L151F2P6 is available at Aetrix Electronics and suitable for smart wearables, portable medical monitors, wireless industrial sensors, and energy-harvesting IoT endpoints requiring stable component supply and long-term production continuity.
Supply support for STM8L151F2P6 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-constrained applications where extended runtime, robust RTC functionality, and integrated analog peripherals are essential-designed specifically for energy-efficient edge sensing and control.
FAQ
What is the maximum operating frequency and core architecture of STM8L151F2P6?
The STM8L151F2P6 features an 8-bit STM8 core with Harvard architecture and 3-stage pipeline, achieving up to 16 MHz CPU frequency and 16 CISC MIPS peak performance. It supports both internal 16 MHz RC (factory-trimmed ±1%) and external crystal oscillators (1–16 MHz HSE or 32 kHz LSE), with clock security system for fail-safe operation.
Does STM8L151F2P6 support capacitive touch sensing, and how many channels are available?
Yes, STM8L151F2P6 supports up to 20 hardware-accelerated capacitive sensing channels compatible with touchkey, proximity, linear, and rotary touch sensors. These channels map to dedicated I/O pins (e.g., PC0–PC3, PB0–PB5) and integrate charge-transfer measurement with built-in filtering and noise immunity-no external components required.
What low-power modes does STM8L151F2P6 offer, and what is the lowest current consumption?
STM8L151F2P6 provides five low-power modes: Wait, Low-power Run, Low-power Wait, Active-halt with RTC, and Halt. In Halt mode with RTC disabled, typical current is 200 nA at 3.0 V and 25 °C. With RTC active (LSE clocked), consumption drops to 1.2 µA-enabling precise timekeeping while preserving multi-year battery life in intermittent-use applications.
Is SWIM debug supported, and what development tools are compatible?
Yes, STM8L151F2P6 supports SWIM (Single-Wire Interface Module) for non-intrusive on-chip debugging and fast flash programming. Compatible tools include ST-LINK/V2-1 debuggers, STM8CubeIDE, Cosmic C compiler, and IAR Embedded Workbench for STM8. The bootloader supports UART-based firmware updates without external programmer.
STM8L151F2P6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-TSSOP (0.173", 4.40mm Width)
- 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:
- 18
- 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 10x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM8L151F2P6 FAQ
1.How can I place an order for STM8L151F2P6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8L151F2P6 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 STM8L151F2P6 reliable?
The price and inventory of STM8L151F2P6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8L151F2P6 is usually 5 days.
3.What payment methods are accepted for STM8L151F2P6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8L151F2P6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8L151F2P6?
STM8L151F2P6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8L151F2P6 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 STM8L151F2P6?
For technical support, including STM8L151F2P6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8L151F2P6 requirements.
6.How does Aetrix verify that STM8L151F2P6 is sourced from the original manufacturer or authorized distributors?
All STM8L151F2P6 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 STM8L151F2P6 meets industry standards.
7.What is the process for return or replacement of STM8L151F2P6?
All STM8L151F2P6 units undergo pre-shipment inspection (PSI). If there is an issue with STM8L151F2P6, 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 STM8L151F2P6 part is unused and in its original packaging.
Return procedure for STM8L151F2P6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8L151F2P6 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…

