STMicroelectronics STM32L021D4P7
- Part No.:
- STM32L021D4P7
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 14-TSSOP (0.173", 4.40mm Width)
- Datasheet:
-
STM32L021D4P7.pdf
- Description:
- IC MCU 32BIT 16KB FLASH 14TSSOP
- Quantity:
- Payment:

- Shipping:

Inventory:739
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L021D4P7 from STMicroelectronics is an ultra-low-power 32-bit Arm® Cortex®-M0+ microcontroller in UFQFPN20 (3×3 mm) package, featuring 16 KB Flash, 2 KB SRAM, 512 B EEPROM with ECC, 12-bit ADC (1.14 Msps), and hardware AES-128 encryption. It operates from 1.65 V to 3.6 V across –40 °C to 125 °C and targets battery-powered sensor nodes and smart meters requiring sub-µA standby current (0.23 µA).
For engineers reviewing the STM32L021D4P7 datasheet, STM32L021D4P7 pinout, STM32L021D4P7 application, or STM32L021D4P7 equivalent, key selection criteria include verified ultra-low-power mode timing (5 µs wakeup from Flash), 23 I/Os with 5V tolerance, integrated RTC + backup registers, and dual ultra-low-power comparators with wake-up capability down to 1.65 V.
Technical Context
The STM32L021D4P7 implements a tightly coupled Arm Cortex-M0+ core running at up to 32 MHz, supported by multiple clock sources: factory-trimmed 16 MHz HSI (±1%), 32 kHz LSE for RTC calibration, and multispeed MSI (65 kHz–4.2 MHz). Its power architecture includes five BOR thresholds, programmable PVD, and dynamic voltage scaling enabling optimized current draw per operating mode.
Peripheral interconnect uses a dedicated AHB/APB matrix supporting concurrent DMA transfers across ADC, USART, SPI, I²C, timers, and AES. The device integrates a 7-channel DMA controller with priority arbitration, CRC calculation unit, and 96-bit unique ID - all designed for deterministic real-time execution in constrained energy environments.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | Arm Cortex-M0+, 32-bit, up to 32 MHz - delivers 0.95 DMIPS/MHz for deterministic real-time control in ultra-low-power systems. |
| Memory | 16 KB Flash with ECC + 2 KB SRAM + 512 B EEPROM with ECC - ensures data integrity and firmware resilience in harsh industrial deployments. |
| Power Modes | 0.23 µA Standby (2 wakeup pins), 0.54 µA Stop + RTC + 2 KB RAM retention - enables multi-year battery life in wireless sensor endpoints. |
| ADC | 12-bit, 1.14 Msps, 10-channel, operational down to 1.65 V - supports high-precision analog sensing without external supply boosting. |
| Crypto | AES-128 hardware accelerator - offloads encryption/decryption to preserve CPU cycles and reduce active time in secure firmware updates. |
| I/O Voltage | 23 GPIOs 5V-tolerant - simplifies interface with legacy 5V peripherals without level-shifting components. |
| Timers | 7 timers including 16-bit ultra-low-power LPTIM, RTC, SysTick, and dual watchdogs - enables precise timekeeping and fail-safe operation in metering applications. |
Pinout & Package
STM32L021D4P7 is housed in a 20-pin Ultra Thin Fine Pitch Quad Flat No-lead (UFQFPN20) package, 3 × 3 mm, 0.5 mm pitch, ECOPACK®2 compliant. This compact, leadless package supports high-density PCB layouts and automated reflow assembly.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply | Main 1.65–3.6 V supply for core and I/Os; decoupling required per datasheet layout guidelines. |
| VSS | Ground | Dedicated digital ground reference; separate analog ground not present in this variant. |
| NRST | Reset input | Active-low reset with internal pull-up; accepts 5V-tolerant signals for system-level reset coordination. |
| PA0–PA15 | General-purpose I/O | 23 total GPIOs (some shared); PA0–PA7 and PA9–PA15 available on UFQFPN20; 5V tolerant, configurable as analog/digital/alternate functions. |
| PA13/PA14 | SWD debug | Serial Wire Debug (SW-DP) interface - enables non-intrusive programming and real-time debugging without dedicated JTAG pins. |
| PA15 | Boot0 | Boot configuration pin; sampled at reset to select system memory bootloader or main Flash execution. |
| OSC_IN/OSC_OUT | External crystal input/output | Supports 0–32 MHz external clock source; used for precision timing or RTC calibration via 32 kHz LSE oscillator. |
| VREF+ | Analog reference | Optional external reference input for ADC; internal VREFINT (1.22 V) also available for self-calibration. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power standby | 0.23 µA with two wakeup pins enabled - extends coin-cell battery life beyond 10 years in intermittent-sensing applications. |
| Hardware AES-128 | Dedicated cryptographic engine with DMA support - reduces firmware size and CPU load during secure OTA updates. |
| 5V-tolerant I/Os | 23 pins tolerate 5V logic levels - eliminates need for external level shifters when interfacing with legacy sensors or displays. |
| Integrated RTC + backup registers | Real-time clock with calendar function and 20-byte backup register - maintains time and critical state across power cycles without external components. |
| Dual ultra-low-power comparators | Operate down to 1.65 V with window mode and wake-up capability - enables autonomous analog event detection without CPU intervention. |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
|
Use Scenario: Battery-powered gas/water meter with pulse counting, temperature compensation, and periodic RF transmission. IC Role / Device Role / Timing Role: Main system controller managing sensor acquisition, AES-encrypted data packaging, low-power RF wake-up scheduling, and RTC-based billing intervals. Use Value: 0.23 µA standby current and 5 µs wakeup enable >15-year battery life while maintaining accurate time-stamped consumption logs. |
Use Scenario: Environmental monitoring node (temperature/humidity/pressure) deployed in remote locations with LoRaWAN backhaul. IC Role / Device Role / Timing Role: Central data aggregator executing sensor fusion, ADC oversampling, and burst-mode RF transmission synchronized to LPTIM-triggered intervals. Use Value: 12-bit ADC with 1.14 Msps and 2 KB SRAM retention in Stop mode allow high-fidelity sampling without continuous CPU activity. |
| Industrial Asset Tracker | Low-Power Human Interface |
|
Use Scenario: GPS-denied indoor asset tag using accelerometer motion detection and BLE beaconing only on movement. IC Role / Device Role / Timing Role: Motion-triggered system supervisor using comparator wake-up and ultra-low-power timer to gate BLE radio activation. Use Value: Dual comparators with window mode detect threshold-crossing events autonomously, reducing average current to <1 µA in idle state. |
Use Scenario: Touch-button control panel for HVAC or lighting with capacitive sensing and LED feedback, powered by AA batteries. IC Role / Device Role / Timing Role: Input processor handling cap-sense scanning, LED PWM dimming, and UART communication to host MCU. Use Value: 23 5V-tolerant I/Os directly drive common anode LEDs and interface with legacy 5V touch ICs, minimizing BOM count. |
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 |
|---|---|---|---|
| STM32L011D4P7 | 8 KB Flash, 1 KB SRAM, no EEPROM, identical package and peripheral set - lacks data retention memory for logging. | Suitable for simpler control tasks without persistent parameter storage or firmware update history. | Select when cost sensitivity outweighs need for EEPROM-based field calibration or secure key storage. |
| STM32L031F6P7 | 32 KB Flash, 8 KB SRAM, 1 KB EEPROM, TSSOP20 package - larger memory and same voltage range but different footprint and thermal profile. | Better suited for applications requiring larger code space (e.g., BLE stack integration) and higher I/O count. | Choose when design requires >16 KB Flash or compatibility with TSSOP-20 reflow processes and thermal management constraints. |
Compared with STM32L011D4P7, the STM32L021D4P7 adds 512 B EEPROM and doubles RAM, enabling local data logging without external memory; versus STM32L031F6P7, it trades memory capacity and package type for lower unit cost and smaller board area in space-constrained designs.
Availability
STM32L021D4P7 is available at Aetrix Electronics and suitable for smart utility metering, wireless sensor nodes, industrial asset tracking, and low-power human interface devices requiring stable component supply throughout product lifecycles.
Supply support for STM32L021D4P7 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, MEMS, and automotive semiconductors since 1987.
The STM32L0 series targets ultra-low-power embedded applications demanding extended battery life, robust security, and industrial-grade reliability - with the STM32L021D4P7 optimized for cost-sensitive, space-constrained endpoints in metering and IoT edge nodes.
FAQ
What is the maximum operating frequency of the STM32L021D4P7?
The STM32L021D4P7 runs its Arm Cortex-M0+ core at up to 32 MHz, achievable across the full 1.65–3.6 V supply range and –40 °C to 125 °C temperature range. This frequency is sustained using the 16 MHz HSI oscillator with PLL multiplication or external clock sources, with performance validated per ST's electrical characteristics tables (Section 6.3.8).
Does the STM32L021D4P7 support USB or CAN interfaces?
No, the STM32L021D4P7 does not integrate USB or CAN peripherals. Its communication interfaces are limited to one USART (ISO 7816/IrDA capable), one LPUART, one SPI (16 Mbit/s), and one I²C (SMBus/PMBus). These were selected to minimize silicon area and power consumption for basic connectivity in ultra-low-power endpoints.
How many I/O pins are available in the UFQFPN20 package?
The STM32L021D4P7 in UFQFPN20 provides 18 usable I/O pins: PA0–PA7 (8), PA9–PA15 (7), plus PB0–PB1 (2), and NRST (1). One pin (PA15) serves dual function as Boot0, and PA13/PA14 are reserved for SWD debug - all 23 GPIOs listed in the datasheet are not physically accessible in this 20-pin variant.
Is the 512 B EEPROM truly independent of Flash endurance limits?
Yes, the 512 B data EEPROM is implemented as a separate memory array with dedicated ECC and endurance rated for 100,000 write/erase cycles and 20-year data retention at 85 °C (per Section 6.3.42 of DocID027982 Rev 5). It operates independently of Flash memory, allowing frequent parameter updates without impacting firmware storage longevity.
STM32L021D4P7 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 14-TSSOP (0.173", 4.40mm Width)
- Series:
- STM32L0
- Packaging:
- Tube
- Product Status:
- Active
- Programmable:
- Not Verified
- Core Processor:
- ARM® Cortex®-M0+
- Core Size:
- 32-Bit Single-Core
- Speed:
- 32MHz
- Connectivity:
- I2C, IrDA, SPI, UART/USART
- Peripherals:
- Brown-out Detect/Reset, DMA, POR, PWM, WDT
- Number of I/O:
- 11
- Program Memory Size:
- 16KB (16K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 512 x 8
- RAM Size:
- 2K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.65V ~ 3.6V
- Data Converters:
- A/D 4x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 105°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32L021D4P7 FAQ
1.How can I place an order for STM32L021D4P7 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L021D4P7 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 STM32L021D4P7 reliable?
The price and inventory of STM32L021D4P7 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L021D4P7 is usually 5 days.
3.What payment methods are accepted for STM32L021D4P7?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L021D4P7 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L021D4P7?
STM32L021D4P7 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L021D4P7 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 STM32L021D4P7?
For technical support, including STM32L021D4P7 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L021D4P7 requirements.
6.How does Aetrix verify that STM32L021D4P7 is sourced from the original manufacturer or authorized distributors?
All STM32L021D4P7 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 STM32L021D4P7 meets industry standards.
7.What is the process for return or replacement of STM32L021D4P7?
All STM32L021D4P7 units undergo pre-shipment inspection (PSI). If there is an issue with STM32L021D4P7, 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 STM32L021D4P7 part is unused and in its original packaging.
Return procedure for STM32L021D4P7:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L021D4P7 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…

