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

- Shipping:

Inventory:1,477
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L021D4P7DTR from STMicroelectronics is an ultra-low-power 32-bit Arm® Cortex®-M0+ microcontroller 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 delivers 0.23 µA standby current with 2 wakeup pins - deployed in battery-powered IoT sensors and smart metering endpoints.
For engineers reviewing the STM32L021D4P7DTR datasheet, STM32L021D4P7DTR pinout, STM32L021D4P7DTR application, or STM32L021D4P7DTR equivalent, key selection criteria include verified low-power mode timing (5 µs Flash wakeup), 23 I/Os with 5V tolerance, integrated RTC with calibration, and UFQFPN20 package compatibility for space-constrained designs.
Technical Context
The device implements a dual-voltage domain architecture supporting dynamic voltage scaling to optimize power vs. performance across Run, Sleep, Stop, and Standby modes. Its clock system integrates factory-trimmed 16 MHz HSI (±1%), 32 kHz LSE for RTC, and programmable MSI (65 kHz–4.2 MHz) - enabling precise low-power timing without external crystals.
Analog subsystem includes two ultra-low-power comparators (operable down to 1.65 V) with window mode and wake-up capability, plus a 12-bit ADC with up to 10 channels and 1.14 Msps sampling rate - all supported by dedicated DMA channels and independent voltage reference (VREFINT).
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | Arm Cortex-M0+, 32 MHz max - delivers 0.95 DMIPS/MHz for deterministic real-time control in energy-harvesting systems. |
| Memory | 16 KB Flash with ECC + 2 KB SRAM + 512 B EEPROM with ECC - ensures firmware integrity and nonvolatile data retention over 100k write cycles. |
| Power Modes | 0.23 µA Standby (2 wakeup pins), 0.54 µA Stop + RTC + 2 KB RAM retention - enables multi-year operation on coin-cell batteries. |
| ADC | 12-bit, 1.14 Msps, 10-channel, operational down to 1.65 V - supports high-resolution sensor acquisition without external signal conditioning. |
| Crypto | Hardware AES-128 engine - accelerates secure firmware updates and encrypted telemetry without CPU overhead. |
| I/O | 23 GPIOs, 5V tolerant - simplifies interface to legacy peripherals and industrial logic without level shifters. |
| Timers | 7 timers including 16-bit ultra-low-power LPTIM, RTC, SysTick, and dual watchdogs - enables precise timekeeping and fail-safe operation in safety-critical nodes. |
Pinout & Package
STM32L021D4P7DTR is housed in a 20-pin UFQFPN (3 × 3 mm, 0.5 mm pitch) package compliant with ECOPACK®2 environmental standards. This compact, lead-free, surface-mount package supports automated assembly and thermal performance suitable for high-density PCB layouts.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Main power supply | 1.65–3.6 V input powering core, analog, and I/O domains; decoupling required per datasheet Section 6.1.6. |
| VSS | GND reference | Digital and analog ground return; separate routing recommended to minimize noise coupling into ADC/comparators. |
| NRST | Active-low reset | Asynchronous reset input with internal pull-up; accepts 5V-tolerant signals for robust system-level reset coordination. |
| PA0–PA15 | General-purpose I/O | 23 total GPIOs (PA0–PA15, PB0–PB7); PA0–PA7 and PB0–PB1 support 5V tolerance - enables direct connection to 5V logic buses. |
| OSC_IN / OSC_OUT | External crystal interface | Supports 0–32 MHz crystal or external clock source; used for high-accuracy timing or USB-free applications requiring stable frequency reference. |
| BOOT0 | Boot mode selection | Configures boot source (system memory or main Flash) at power-on; pulled low via 10 kΩ resistor for normal application execution. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power BOR | 5 selectable brownout reset thresholds - enables reliable operation across wide battery discharge curves without external supervisors. |
| Pre-programmed bootloader | USART and SPI interfaces supported - allows field firmware updates without debug probe, reducing service cost and downtime. |
| Serial wire debug (SW-DP) | 2-pin debug interface - provides full JTAG-like visibility (breakpoints, register access, memory inspection) while minimizing PCB footprint. |
| Temperature sensor | Calibrated internal sensor with ±2 °C accuracy - enables ambient temperature monitoring for thermal compensation in sensor fusion algorithms. |
| Backup registers | 20-byte tamper-resistant storage - retains critical state (e.g., metering counters, security flags) during power loss or deep sleep transitions. |
Applications
| Wireless Sensor Node | Smart Utility Meter |
|---|---|
Use Scenario: Battery-powered environmental monitor transmitting temperature/humidity via BLE or LoRaWAN. IC Role / Device Role / Timing Role: Main controller managing sensor acquisition, AES-encrypted payload generation, low-power radio scheduling, and RTC-based wake-up intervals. Use Value: 0.23 µA standby current extends 10-year battery life; 5 µs Flash wakeup ensures rapid response to sensor events without latency penalty. | Use Scenario: Gas/water meter with pulse counting, tamper detection, and secure data logging. IC Role / Device Role / Timing Role: System-on-chip handling metrology processing, EEPROM-backed consumption history, RTC-corrected billing timestamps, and anti-tamper GPIO monitoring. Use Value: 512 B ECC EEPROM guarantees 100k-cycle data integrity for regulatory compliance; 125 °C rating supports installation in hot utility enclosures. |
| Industrial Remote I/O Module | Asset Tracking Beacon |
Use Scenario: DIN-rail mounted edge node collecting analog/digital inputs from PLCs or field transmitters. IC Role / Device Role / Timing Role: Interface aggregator converting 4–20 mA/0–10 V signals via ADC, isolating digital I/Os, and forwarding data over RS-485 or CAN bus. Use Value: 23 5V-tolerant I/Os eliminate external level shifters; hardware CRC unit ensures error-free communication over noisy industrial networks. | Use Scenario: GPS-denied indoor asset tag using accelerometer-triggered BLE broadcast and motion-based power gating. IC Role / Device Role / Timing Role: Motion-aware controller activating sensors only on movement, managing BLE advertising duty cycle, and maintaining secure identity keys in backup registers. Use Value: Ultra-low-power comparators detect motion thresholds at sub-µA quiescent current; AES engine protects device identity against cloning attacks. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar ultra-low-power MCU applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32L011D4P7 | Same core, 16 KB Flash, but only 1 KB SRAM and no hardware AES - lacks cryptographic acceleration and reduced RAM for complex protocol stacks. | Suitable for simpler sensor polling tasks without secure OTA or large buffer requirements. | Select when AES and extra 1 KB RAM are unnecessary - reduces BOM cost where security and memory headroom are not critical. |
| STM32L031F4P6 | Higher integration: adds DAC, more timers, and 32 KB Flash - larger die size and higher active current (82 µA/MHz vs. 76 µA/MHz). | Better suited for closed-loop control or audio feedback applications needing analog output or extended peripheral set. | Choose when DAC, additional timers, or larger code space justify increased power and package size - not drop-in compatible due to pin count and layout differences. |
Compared with STM32L021D4P7DTR, STM32L011D4P7 trades AES and RAM for lower cost in basic sensing, while STM32L031F4P6 adds DAC and Flash at higher power and pin count - making STM32L021D4P7DTR the optimal balance of crypto, memory, and ultra-low-power efficiency in 20-pin form factor.
Availability
STM32L021D4P7DTR is available at Aetrix Electronics and suitable for wireless sensor nodes, smart utility meters, industrial remote I/O modules, and asset tracking beacons requiring stable component supply across long-lifecycle deployments.
Supply support for STM32L021D4P7DTR 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 ICs, sensors, and analog devices for industrial, automotive, and consumer markets.
The STM32L0 Access line targets cost-sensitive, battery-operated applications demanding ultra-low power, robust security, and minimal footprint - optimized for single-chip solutions in metering, wearables, and predictive maintenance edge nodes.
FAQ
What is the maximum operating frequency and corresponding power consumption in Run mode?
The STM32L021D4P7DTR runs at up to 32 MHz with 76 µA/MHz typical current draw when executing code from Flash. At 32 MHz, this equates to ~2.43 mA total active current - verified in datasheet Table 21 under VDD = 3.3 V, 25 °C conditions with all peripherals disabled except core and Flash.
Does this MCU support hardware debugging, and what interface is used?
Yes, it supports Serial Wire Debug (SW-DP) via SWCLK and SWDIO pins - a 2-pin ARM-standard interface providing full debug capabilities including breakpoints, memory inspection, and real-time variable monitoring without halting system clocks.
How many I/O pins are 5V tolerant, and which ones?
23 GPIOs are 5V tolerant: PA0–PA7 and PB0–PB1 (as confirmed in datasheet Section 3.7 and Table 12). These pins tolerate up to 5.5 V regardless of VDD level, enabling direct interfacing with 5V logic families without external level-shifting circuitry.
Is the 512 B EEPROM truly independent of Flash, and what endurance does it offer?
Yes, the 512 B data EEPROM is physically separate from Flash memory and features ECC protection. It supports 100,000 write/erase cycles and 20-year data retention at 55 °C - validated per datasheet Table 43 and specified for use in metering registers and calibration storage.
STM32L021D4P7DTR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 14-TSSOP (0.173", 4.40mm Width)
- Series:
- STM32L0
- Packaging:
- Tape & Reel (TR)
- 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:
STM32L021D4P7DTR FAQ
1.How can I place an order for STM32L021D4P7DTR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L021D4P7DTR 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 STM32L021D4P7DTR reliable?
The price and inventory of STM32L021D4P7DTR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L021D4P7DTR is usually 5 days.
3.What payment methods are accepted for STM32L021D4P7DTR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L021D4P7DTR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L021D4P7DTR?
STM32L021D4P7DTR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L021D4P7DTR 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 STM32L021D4P7DTR?
For technical support, including STM32L021D4P7DTR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L021D4P7DTR requirements.
6.How does Aetrix verify that STM32L021D4P7DTR is sourced from the original manufacturer or authorized distributors?
All STM32L021D4P7DTR 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 STM32L021D4P7DTR meets industry standards.
7.What is the process for return or replacement of STM32L021D4P7DTR?
All STM32L021D4P7DTR units undergo pre-shipment inspection (PSI). If there is an issue with STM32L021D4P7DTR, 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 STM32L021D4P7DTR part is unused and in its original packaging.
Return procedure for STM32L021D4P7DTR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L021D4P7DTR 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…

