STMicroelectronics

STM32L031F6P6 - Ultra-Low-Power ARM Cortex-M0+ MCU | STMicroelectronics

MPN: STM32L031F6P6 βœ“ Active
In Stock (99,999) Ships in 1-3 business days
1.8 V to 3.6 V Vdss 87 uA/MHz Id TSSOP-20 (P6) Package 32 MHz Speed 32 KB Memory
$2.15 USD / Unit
MOQ: 1 |
Volume Pricing
Qty Unit Price Extended
1 $2.15 $2.15
10 $1.93 $19.30
100 $1.72 $172.00
500 $1.55 $775.00
1,000 $1.38 $1,380.00
ℹ️ All prices are in USD

Drop-in alternatives for STM32L031F6P6 β€” same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.

Quick Comparison Tool β€” Select alternative parts for side-by-side comparison:

STM32L031F6P7

βœ… Drop-In
πŸ“¦ TSSOP-20 (P6)
Same package and pinout, wider temperature range (-40 to +105C)

πŸ“‹ Reference alternative (not in catalog)

STM32L031F4P6

βœ… Drop-In
πŸ“¦ TSSOP-20 (P6)
Same package and pinout, 16 KB Flash instead of 32 KB

πŸ“‹ Reference alternative (not in catalog)

STM32L031G6P6

βœ… Drop-In
πŸ“¦ TSSOP-20 (P6)
Same package and pinout, more GPIOs (up to 20)

πŸ“‹ Reference alternative (not in catalog)

STM32L011F4P6

βœ… Drop-In
STMicroelectronics
πŸ“¦ TSSOP-20 (P6)
ARM Cortex-M0+ Β· 32 MHz Β· 16 KB Β· 2 KB Β· 1.8 V to 3.6 V Β· -40C to +85C Β· TSSOP-20 (P) Β· 12-bit

βœ“ 99,999 In Stock

$1.2 / Unit

View Datasheet β†’

STM32L021F4P6

βœ… Drop-In
πŸ“¦ TSSOP-20 (P6)
Same package and pinout, 16 KB Flash, 2 KB SRAM, no DAC

πŸ“‹ Reference alternative (not in catalog)

EFM32ZG222F32

βœ… Drop-In
πŸ“¦ TSSOP-20
Cross-brand, same TSSOP-20 package, 32 KB Flash, 4 KB SRAM, pin-compatible

πŸ“‹ Reference alternative (not in catalog)

ATSAMD21E15B

βœ… Drop-In
πŸ“¦ TSSOP-20
Cross-brand, same TSSOP-20 package, 16 KB Flash, 4 KB SRAM, pin-compatible

πŸ“‹ Reference alternative (not in catalog)

STM32L031F6P6 Maximum Ratings & Electrical Characteristics

Core ARM Cortex-M0+
Max Clock Frequency 32 MHz
Flash Memory 32 KB
SRAM 8 KB
Supply Voltage 1.8 V to 3.6 V
Package TSSOP-20 (P6)
Operating Temperature -40C to +85C
ADC 12-bit, 1.14 Msps, up to 13 channels
DAC None
Timers 1x 16-bit, 1x 32-bit, 1x low-power timer
Communication Interfaces 1x I2C, 1x SPI, 1x USART (LPUART)
GPIO Up to 16 I/Os
RTC Yes, with calendar and alarm
Low-Power Modes Sleep, Low-power run, Low-power sleep, Stop with RTC, Standby with RTC
Typical Run Current 87 uA/MHz
Standby Current (with RTC) 0.29 uA
RoHS Status Compliant

STM32L031F6P6 Pin Configuration

SOP-20 (3.9mm) Package Pinout Diagram SOP-20 3.9x10.4mm, P1.27mm, JEDEC MS-012. 20-pin narrow body. 1 20 2 19 3 18 4 17 5 16 6 15 7 14 8 13 9 12 10 11 SOP-20 (3.9mm)
Pin 1 VBAT β€” Battery backup supply for RTC
Pin 2 PC14 β€” GPIO / OSC32_IN
Pin 3 PC15 β€” GPIO / OSC32_OUT
Pin 4 NRST β€” Reset (active low)
Pin 5 VSS β€” Ground
Pin 6 VDD β€” Power supply
Pin 7 PA0 β€” GPIO / ADC_IN0 / USART2_CTS
Pin 8 PA1 β€” GPIO / ADC_IN1 / USART2_RTS
Pin 9 PA2 β€” GPIO / ADC_IN2 / USART2_TX
Pin 10 PA3 β€” GPIO / ADC_IN3 / USART2_RX
Pin 11 PA4 β€” GPIO / ADC_IN4 / SPI1_NSS
Pin 12 PA5 β€” GPIO / ADC_IN5 / SPI1_SCK
Pin 13 PA6 β€” GPIO / ADC_IN6 / SPI1_MISO
Pin 14 PA7 β€” GPIO / ADC_IN7 / SPI1_MOSI
Pin 15 PB0 β€” GPIO / ADC_IN8
Pin 16 PB1 β€” GPIO / ADC_IN9
Pin 17 PB2 β€” GPIO / BOOT1
Pin 18 PB3 β€” GPIO / SPI1_SCK / USART2_TX
Pin 19 PB4 β€” GPIO / SPI1_MISO / USART2_RX
Pin 20 PB5 β€” GPIO / I2C1_SMBA

Safe Operating Area (SOA) & Thermal Characteristics

Safe Operating Area Chart Default safe operating area chart for STM32L031F6P6 Drain-to-Source Voltage (Vds) Drain Current (Id)

No official SOA curve available for this digital IC. Always operate within absolute maximum ratings specified in the datasheet. Ensure adequate cooling and derate as needed.

Typical Applications

STM32L031F6P6 is suitable for 6 applications: Portable Medical Devices, IoT Sensor Nodes, Smart Home Controllers, Industrial Monitoring, Wearable Devices, Battery Management Systems.

πŸ’Š

Portable Medical Devices

The STM32L031F6P6 is ideal for portable medical devices such as glucose meters, pulse oximeters, and wearable health monitors. Its ultra-low-power consumption (87 uA/MHz in Run mode, 0.29 uA in Standby) extends battery life, critical for devices that must operate for months on a single coin cell. The 12-bit ADC with hardware oversampling enables accurate sensor readings, while the I2C and SPI interfaces connect to various medical sensors. The device's small TSSOP-20 package fits compact designs, and its wide operating temperature range (-40Β°C to +85Β°C) ensures reliability in clinical and home environments. In a typical glucose meter, the MCU wakes up periodically to read the sensor, processes the data, and displays the result on an LCD, consuming minimal power between measurements.

🧩

IoT Sensor Nodes

For IoT sensor nodes, the STM32L031F6P6 provides the perfect balance of low power and connectivity. It can interface with various sensors (temperature, humidity, motion) via I2C or SPI, process data locally, and communicate with a gateway using a low-power radio module (e.g., LoRa, BLE) through its USART. The multiple low-power modes allow the node to sleep for extended periods, waking only to take measurements and transmit data, achieving years of battery life. The device's 32 KB Flash is sufficient for sensor firmware, and its 8 KB SRAM handles data buffering. In a typical smart agriculture application, the node measures soil moisture and temperature, sends data every hour, and remains in Standby mode (0.29 uA) between transmissions, ensuring long-term deployment without maintenance.

🏠

Smart Home Controllers

The STM32L031F6P6 is well-suited for smart home controllers, such as thermostat controllers, smart locks, and lighting control units. Its low-power operation allows battery-powered devices to last for years, while its rich peripheral set (GPIO, timers, ADC) enables direct control of relays, LEDs, and sensors. The RTC with calendar provides accurate timekeeping for scheduled events, and the USART can interface with Wi-Fi or Zigbee modules for home automation. In a smart thermostat, the MCU reads temperature sensors, controls the HVAC system via relays, and communicates with a central hub, all while maintaining low power consumption. The device's wide supply voltage range (1.8V to 3.6V) allows it to be powered from a variety of sources, including batteries and energy-harvesting circuits.

🏭

Industrial Monitoring

In industrial monitoring applications, the STM32L031F6P6 offers reliable operation in harsh environments with its -40Β°C to +85Β°C temperature range. It can monitor vibration, temperature, and pressure sensors, log data to its Flash memory, and communicate via RS-485 or CAN (through an external transceiver) using its USART. The 12-bit ADC with oversampling provides accurate measurements, and the low-power modes enable battery-powered wireless sensors for predictive maintenance. The device's robust design and wide supply voltage range make it suitable for factory automation and process control. In a typical vibration monitoring node, the MCU samples an accelerometer at regular intervals, performs FFT analysis, and transmits alerts when anomalies are detected, ensuring minimal downtime in manufacturing lines.

πŸ“±

Wearable Devices

The STM32L031F6P6 is an excellent choice for wearable devices like fitness trackers, smartwatches, and health monitors. Its ultra-low-power consumption is essential for devices that are worn continuously and need to last days or weeks on a small battery. The device's small TSSOP-20 package allows for compact PCB designs, and its integrated RTC and timers support activity tracking and sleep monitoring. The ADC can interface with bio-sensors (e.g., heart rate, skin conductance), and the I2C/SPI interfaces connect to displays and memory. In a fitness tracker, the MCU collects accelerometer data, counts steps, monitors heart rate, and displays information on an OLED screen, all while consuming minimal power to maximize battery life.

⚑

Battery Management Systems

The STM32L031F6P6 can be used in battery management systems (BMS) for monitoring and protecting lithium-ion batteries. Its low-power operation is crucial for minimizing self-discharge of the battery pack, and its ADC can measure cell voltages and temperatures accurately. The device's multiple timers and GPIOs can control balancing circuits and disconnect switches, while the USART can communicate with a host controller. The wide supply voltage range (1.8V to 3.6V) allows the MCU to be powered directly from the battery pack. In a typical BMS, the MCU continuously monitors each cell's voltage, balances cells, and triggers protection if overvoltage or undervoltage is detected, ensuring safe and efficient battery operation.

Recommended Products Summary

MAX30102 Pulse oximeter sensor Used in: Portable Medical Devices BME280 Environmental sensor Used in: Portable Medical Devices SX1276 LoRa transceiver Used in: IoT Sensor Nodes SHT30 Temperature/humidity sensor Used in: IoT Sensor Nodes ESP8266 Wi-Fi module Used in: Smart Home Controllers MCP23017 GPIO expander Used in: Smart Home Controllers ADXL345 Accelerometer Used in: Industrial Monitoring MAX485 RS-485 transceiver Used in: Industrial Monitoring LSM6DS3 Inertial measurement unit Used in: Wearable Devices SSD1306 OLED display driver Used in: Wearable Devices BQ76920 Battery monitor Used in: Battery Management Systems INA219 Current sensor Used in: Battery Management Systems
What is the maximum clock frequency of STM32L031F6P6?
The STM32L031F6P6 operates at a maximum clock frequency of 32 MHz. According to the STM32L031F6 datasheet, the ARM Cortex-M0+ core can run at up to 32 MHz, providing a good balance between performance and power consumption for ultra-low-power applications.
How much Flash and SRAM does STM32L031F6P6 have?
The STM32L031F6P6 has 32 KB of Flash memory and 8 KB of SRAM. This memory configuration is suitable for small to medium embedded applications, such as sensor nodes and portable devices, where code and data requirements are modest.
What is the supply voltage range of STM32L031F6P6?
The STM32L031F6P6 operates from a supply voltage range of 1.8V to 3.6V. This wide range allows the microcontroller to be powered directly from batteries or regulated supplies, making it flexible for various low-power designs.
What package is STM32L031F6P6 available in?
The STM32L031F6P6 is available in a 20-pin TSSOP package (designated as P6). This compact package measures 6.4mm x 4.4mm with a 0.65mm pitch, suitable for space-constrained PCB designs.
What are the low-power modes of STM32L031F6P6?
The STM32L031F6P6 supports several low-power modes: Sleep, Low-power run, Low-power sleep, Stop with RTC, and Standby with RTC. In Standby mode with RTC, the current consumption is as low as 0.29 uA, enabling long battery life in applications that need periodic wake-up.
What is the typical current consumption in Run mode?
The typical current consumption in Run mode is 87 uA/MHz. For example, at 32 MHz, the current draw would be approximately 2.78 mA. This low power consumption makes the STM32L031F6P6 ideal for battery-powered applications.
Does STM32L031F6P6 have an ADC?
Yes, the STM32L031F6P6 includes a 12-bit ADC with a conversion rate of up to 1.14 Msps. It supports up to 13 external channels and has hardware oversampling to improve resolution in noisy environments.
What communication interfaces are available on STM32L031F6P6?
The STM32L031F6P6 provides one I2C, one SPI, and one USART (which can be configured as a low-power UART, LPUART). These interfaces allow connection to sensors, displays, and other peripherals in embedded systems.
Is STM32L031F6P6 suitable for IoT applications?
Yes, the STM32L031F6P6 is well-suited for IoT applications due to its ultra-low-power consumption, multiple low-power modes, and rich peripheral set. It can be used in wireless sensor nodes, smart home devices, and wearable devices where battery life is critical.
What is the difference between STM32L031F6P6 and STM32L031F6P7?
The STM32L031F6P6 and STM32L031F6P7 are identical in terms of core, memory, and peripherals. The difference lies in the temperature range: the P6 variant is rated for -40Β°C to +85Β°C, while the P7 variant is rated for -40Β°C to +105Β°C. Choose the P7 for high-temperature environments.
Can STM32L031F6P6 be used for battery-powered devices?
Absolutely. The STM32L031F6P6 is designed for ultra-low-power operation, with standby current as low as 0.29 uA. It can run directly from a coin cell or two AA batteries, making it perfect for portable and battery-powered devices.
What is the price of STM32L031F6P6?
As of 2026-08-06, the price of STM32L031F6P6 is approximately $2.15 for single-unit quantities, decreasing to $1.38 at 1000 units. Prices may vary by distributor and quantity, so check current listings on DigiKey or Mouser.
Where can I buy STM32L031F6P6?
STM32L031F6P6 is available from major distributors such as DigiKey, Mouser, and Farnell. You can also purchase directly from STMicroelectronics' authorized distributors. Check stock availability and pricing on their websites.
What is the lead time for STM32L031F6P6?
The typical lead time for STM32L031F6P6 is 8-12 weeks for large orders, but it is often in stock at distributors for immediate shipment. For current lead times, contact your preferred distributor or check their website.
What is the best drop-in replacement for STM32L031F6P6?
The best drop-in replacement for STM32L031F6P6 is the STM32L031F6P7, which is pin-compatible and has the same package and memory, but supports a wider temperature range. Other pin-compatible alternatives include STM32L031F4P6 (16 KB Flash) and STM32L031G6P6 (same, but with more GPIOs).
Can STM32L031F6P6 be replaced by STM32L051F6P6?
No, the STM32L051F6P6 is not a drop-in replacement because it has a different pinout and package (LQFP-48 vs TSSOP-20). While it is also an ultra-low-power MCU, it offers more peripherals and memory, but requires a PCB redesign.
Where can I download the STM32L031F6P6 datasheet PDF?
You can download the STM32L031F6P6 datasheet PDF from the STMicroelectronics website at https://www.st.com/resource/en/datasheet/stm32l031f6.pdf. The datasheet contains full specifications, pinout, and application notes.
Where can I find the STM32L031F6P6 pinout?
The STM32L031F6P6 pinout is detailed in the datasheet on pages 20-23. It is also available in the STM32CubeMX tool, which provides a graphical pinout configuration for the TSSOP-20 package.
What are the key specifications of STM32L031F6P6 that engineers should know?
Engineers should know that the STM32L031F6P6 features a 32 MHz ARM Cortex-M0+ core, 32 KB Flash, 8 KB SRAM, 12-bit ADC, multiple low-power modes with standby current of 0.29 uA, and operates from 1.8V to 3.6V. It is available in a TSSOP-20 package and supports I2C, SPI, and USART interfaces.
Is STM32L031F6P6 the same as STM32L031F6P7?
No, they are not the same. The STM32L031F6P6 has an operating temperature range of -40Β°C to +85Β°C, while the STM32L031F6P7 is rated for -40Β°C to +105Β°C. All other specifications are identical, and they are pin-compatible.
What is the best STMicroelectronics equivalent for STM32L031F6P6?
The best STMicroelectronics equivalent for STM32L031F6P6 is the STM32L031F6P7, which is a drop-in replacement with a wider temperature range. Other STM32L0 series parts like STM32L031F4P6 (16 KB Flash) are also pin-compatible but have less memory.

Engineering reference data for STM32L031F6P6 β€” comparison, design guidance, and compliance information.

Selection Guide

Choose the STM32L031F6P6 when you need an ultra-low-power MCU with a good balance of memory (32 KB Flash, 8 KB SRAM) and peripherals (ADC, I2C, SPI, USART) in a compact TSSOP-20 package. It is ideal for battery-powered IoT devices, wearables, and portable medical devices. If you require a wider temperature range (-40Β°C to +105Β°C), select the STM32L031F6P7, which is pin-compatible. For applications with lower memory requirements, the STM32L031F4P6 (16 KB Flash) is a cost-effective alternative. If you need more GPIOs, consider the STM32L031G6P6, which offers up to 20 I/Os in the same package. For cross-brand options, the EFM32ZG222F32 and ATSAMD21E15B are pin-compatible but offer lower SRAM and different power characteristics; verify pinout and software compatibility before switching.

Comparison with Alternatives

Parameter This Product STM32L031F6P7 STM32L031F4P6 STM32L031G6P6 STM32L011F4P6 STM32L021F4P6 EFM32ZG222F32 ATSAMD21E15B
Package TSSOP-20 (P6) TSSOP-20 (P6) - same TSSOP-20 (P6) - same TSSOP-20 (P6) - same TSSOP-20 (P6) - same TSSOP-20 (P6) - same TSSOP-20 - same TSSOP-20 - same
Brand STMicroelectronics STMicroelectronics STMicroelectronics STMicroelectronics STMicroelectronics STMicroelectronics Silicon Labs Microchip Technology
Core ARM Cortex-M0+ ARM Cortex-M0+ ARM Cortex-M0+ ARM Cortex-M0+ ARM Cortex-M0+ ARM Cortex-M0+ ARM Cortex-M0+ ARM Cortex-M0+
Max Clock Frequency 32 MHz 32 MHz 32 MHz 32 MHz 32 MHz 32 MHz 24 MHz 48 MHz
Flash Memory 32 KB 32 KB 16 KB 32 KB 16 KB 16 KB 32 KB 16 KB
SRAM 8 KB 8 KB 8 KB 8 KB 2 KB 2 KB 4 KB 4 KB
Supply Voltage 1.8V to 3.6V 1.8V to 3.6V 1.8V to 3.6V 1.8V to 3.6V 1.65V to 3.6V 1.65V to 3.6V 1.98V to 3.8V 1.62V to 3.63V
Operating Temperature -40C to +85C -40C to +105C -40C to +85C -40C to +85C -40C to +85C -40C to +85C -40C to +85C -40C to +85C

Key Differentiators

  • Ultra-low standby current of 0.29 uA with RTC (vs EFM32ZG222F32)
  • Higher clock frequency of 32 MHz (vs EFM32ZG222F32)
  • Larger SRAM of 8 KB (vs ATSAMD21E15B)

Design Notes

For optimal low-power performance, use the internal 16 MHz RC oscillator for run mode and the 32.768 kHz crystal for RTC. In Standby mode, the current is 0.29 uA with RTC, but this requires the RTC to be powered from VBAT. Ensure VBAT is connected to a battery or a supercapacitor to maintain RTC operation when the main supply is off. Decouple VDD with a 100 nF capacitor close to each pin and a 1 uF capacitor on the main supply.

Place the 32.768 kHz crystal close to the OSC32_IN and OSC32_OUT pins (PC14 and PC15) with load capacitors as specified in the datasheet (typically 6.8 pF). Keep the trace lengths short and avoid routing high-speed signals near the crystal to prevent interference. For the ADC, use a separate analog ground plane if possible and connect the VREF+ pin to a clean reference voltage.

Do not leave unused GPIO pins floating; configure them as analog inputs or outputs to reduce leakage current. When using the LPUART, ensure the baud rate is set correctly for low-power operation. Also, be aware that the BOOT0 pin (PB2) must be pulled low for normal boot from Flash; a floating BOOT0 can cause unexpected boot behavior.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Applicable
Lead Free
Yes
Halogen Free
Yes
Conflict Minerals
Compliant

RoHS compliant per STMicroelectronics product page. Not AEC-Q100 qualified; for automotive, consider STM32L0 series with AEC-Q100 qualification.

Quick Quote RFQ
Fill in complete details β€” our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
βœ“
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details