Send an Inquiry

To receive a quote for your project, please fill in the following information, and we’ll get back to you promptly.

Name*
Company*
Email Address*
Phone/WhatsApp
Part Number*
Quantity*
Message
Submit Inventory List

Please fill in the following information, and we’ll get back to you promptly.

Name*
Company*
Email Address*
Phone/WhatsApp
Upload My List
Message

STMicroelectronics STM32L021D4P7TR

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

Inventory:4,476

Please send an inquiry. Send us your inquiry, and we will respond immediately.

Part Number
Quantity*
Price
Name*
Company
Email*
Comments

Product details

Overview

STM32L021D4P7TR from STMicroelectronics is an ultra-low-power 32-bit Arm® Cortex®-M0+ microcontroller featuring 16 KB Flash, 2 KB SRAM, 512 B ECC-protected EEPROM, 12-bit ADC (1.14 Msps), and hardware AES-128 encryption. It operates from 1.65–3.6 V across –40 to +125 °C and delivers 76 µA/MHz in Run mode with 5 µs wakeup from Flash-ideal for battery-powered sensor nodes and smart metering endpoints.

For engineers reviewing the STM32L021D4P7TR datasheet, STM32L021D4P7TR pinout, STM32L021D4P7TR application, or STM32L021D4P7TR equivalent, key selection criteria include ultra-low standby current (0.23 µA), 23 5V-tolerant I/Os, integrated RTC with 2 KB RAM retention in Stop mode, and support for ISO 7816/USART and low-power UART interfaces.

Technical Context

The STM32L021D4P7TR implements a single-core Arm Cortex-M0+ running at up to 32 MHz, supported by multiple clock sources including factory-trimmed 16 MHz HSI (±1%), 32 kHz LSE for RTC, and multispeed MSI (65 kHz–4.2 MHz). Its power architecture integrates programmable voltage detector (PVD), ultra-low-power brownout reset (BOR) with five thresholds, and dynamic voltage scaling for optimized active/low-power mode transitions.

Peripheral interconnect uses a centralized AHB/APB matrix enabling concurrent DMA-driven operations across ADC, SPI, I²C, USART, timers, and AES engine. The device supports five low-power modes-Run, Sleep, Low-power Run, Low-power Sleep, Stop, and Standby-with dedicated wakeup lines (16 in Stop, 2 in Standby) and sub-µA retention capability for critical data and RTC operation.

Key Specifications

ParameterValue and Actual Design Meaning
CoreArm Cortex-M0+, 32-bit, up to 32 MHz - enables deterministic real-time control with Thumb-2 instruction set and 0.95 DMIPS/MHz efficiency.
Memory16 KB Flash with ECC, 2 KB SRAM, 512 B EEPROM with ECC - ensures firmware integrity, volatile data buffering, and nonvolatile parameter storage resilient to bit flips.
Power Consumption0.23 µA Standby (2 wakeup pins), 0.54 µA Stop + RTC + 2 KB RAM retention - extends coin-cell or energy-harvesting battery life to multi-year operation.
Analog Peripherals12-bit ADC (1.14 Msps, 10 channels, down to 1.65 V), 2x ultra-low-power comparators - supports precision sensor acquisition and threshold-based wakeup without CPU intervention.
Communication1x USART (ISO 7816/IrDA), 1x LPUART, 1x SPI (16 Mbit/s), 1x I²C (SMBus/PMBus) - enables secure smart-card interfacing, low-power host communication, and sensor bus connectivity.
Crypto & SecurityHardware AES-128 engine, 96-bit unique ID, CRC unit - accelerates encrypted data transmission and device authentication while reducing firmware overhead and attack surface.
Timers7x timers: 2x 16-bit general-purpose (4/2 channels), 1x ultra-low-power timer, SysTick, RTC, 2x watchdogs - provides flexible timing, pulse generation, real-time scheduling, and system safety monitoring.

Pinout & Package

STM32L021D4P7TR 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, thermally enhanced package supports high-density PCB layouts and automated assembly.

Pin/TerminalCircuit RoleDesign Meaning
VDDMain power supply (1.65–3.6 V)Primary core and I/O domain supply; requires local decoupling for stable low-power operation.
VSSGround referenceDedicated analog/digital ground plane connection; critical for ADC accuracy and noise immunity.
NRSTActive-low reset inputAsynchronous reset pin with internal pull-up; accepts external push-button or supervisor IC assertion.
PA0–PA15General-purpose I/Os23 total GPIOs (20 on D4 variant); 23 pins are 5V-tolerant-enables direct interfacing with legacy 5V peripherals without level shifters.
PA1ADC_IN1 / COMP2_OUTConfigurable as analog input channel 1 or comparator 2 output-supports sensor signal conditioning and window-comparator logic.
PA2/PA3USART2_TX / USART2_RXDedicated full-duplex UART interface for debugging, firmware updates, or host communication at up to 921.6 kbps.
PA4/PA5SPI1_NSS / SPI1_SCKHardware SPI master clock and chip select-enables high-speed peripheral daisy-chaining (e.g., sensors, displays) with minimal CPU load.
PA15JTDI / SWDIOSerial Wire Debug I/O pin-supports programming and real-time debugging via ST-LINK without requiring additional debug headers.
PC13LSE_OSC_IN / RTC_OUTConnects to 32.768 kHz crystal for precise RTC timekeeping and calendar functions with ±20 ppm stability over temperature.
BOOT0Boot mode selectionPulled low during reset to boot from main Flash memory; essential for reliable field firmware execution.

Key Features

FeatureDesign Value
Ultra-low-power BORFive selectable brownout reset thresholds (1.6–2.4 V) enable robust operation across wide battery discharge curves without external supervisors.
Hardware AES-128Dedicated cryptographic accelerator reduces encryption latency to <10 µs per 128-bit block and offloads CPU-critical for OTA firmware updates and secure sensor data reporting.
5-channel DMAEnables zero-CPU-overhead data movement between ADC, SPI, I²C, USART, timers, and AES-preserves ultra-low-power states during background transfers.
RTC with 2 KB retentionReal-time clock continues counting with calendar function while retaining 2 KB SRAM in Stop mode using only 0.54 µA-maintains state and timestamps across deep sleep cycles.
Pre-programmed bootloaderFactory-loaded USART/SPI bootloader allows firmware updates over serial interface without JTAG/SWD-reduces production test complexity and field service cost.

Applications

Smart Utility MeteringWearable Health Sensors

Use Scenario: Battery-powered gas/water meters logging consumption every 15 minutes with tamper detection and wireless upload.

IC Role / Device Role / Timing Role: Main system controller managing sensor polling, EEPROM-based tariff storage, RTC-scheduled transmissions, and AES-encrypted payload generation.

Use Value: 0.23 µA Standby current enables >10-year battery life; 512 B EEPROM retains billing history and calibration data across power loss.

Use Scenario: Disposable ECG patch continuously acquiring biopotential signals and transmitting alerts via BLE gateway.

IC Role / Device Role / Timing Role: Signal acquisition hub performing ADC sampling, comparator-based R-wave detection, and low-power UART handoff to BLE SoC.

Use Value: 12-bit ADC with 1.14 Msps supports 1 kHz ECG sampling; 2x comparators enable hardware-triggered wakeup on heartbeat onset-minimizing active time.

Industrial Wireless Sensor NodesAsset Tracking Beacons

Use Scenario: LoRaWAN-enabled temperature/humidity node deployed in unpowered remote locations with solar harvesting.

IC Role / Device Role / Timing Role: Environmental data aggregator with I²C sensor interface, AES-secured packet formation, and scheduled LoRa transmit bursts.

Use Value: Hardware AES-128 encrypts sensor payloads before radio transmission; 76 µA/MHz Run efficiency maximizes energy harvested per millisecond of processing.

Use Scenario: GPS-denied indoor asset tracker using UWB or BLE AoA, logging location events and sending periodic status beacons.

IC Role / Device Role / Timing Role: Event coordinator capturing motion interrupts (via GPIO), timestamping with RTC, and initiating low-power UART commands to positioning module.

Use Value: 16 wakeup lines in Stop mode allow immediate response to accelerometer interrupts; 96-bit unique ID enables secure device identity binding in cloud fleet management.

Equivalent & Alternatives

The following parts are listed as comparable options for similar ultra-low-power MCU applications.

Alternative PartTechnical DifferenceApplication DifferenceSelection Advice
STM32L011D4P7TR8 KB Flash, 1 KB SRAM, no hardware AES, same 20-pin UFQFPN packageLacks secure firmware update capability and reduced memory for complex sensor fusion algorithmsSelect when cost sensitivity outweighs security and memory requirements; verify AES dependency in firmware stack.
STM32L031F6P7TR32 KB Flash, 8 KB SRAM, hardware AES, 20-pin TSSOP package (6.5 × 4.4 mm)Larger footprint and higher static current (0.32 µA Standby) but enables larger RTOS-based applicationsChoose for designs needing extended code space and future-proofing; accept trade-off in board area and standby power.

Compared with STM32L021D4P7TR, STM32L011D4P7TR sacrifices security and memory headroom for lower BOM cost, while STM32L031F6P7TR trades package size and standby current for scalability-making the D4P7TR optimal for space-constrained, security-aware, long-life battery applications.

Availability

STM32L021D4P7TR is available at Aetrix Electronics and suitable for smart metering, wearable health monitors, industrial wireless sensor nodes, and asset tracking beacons requiring stable component supply across multi-year production cycles.

Supply support for STM32L021D4P7TR 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 sensors, and automotive-grade components since 1987.

The STM32L0 series targets ultra-low-power embedded applications, emphasizing sub-µA standby operation, integrated analog peripherals, and hardware security-specifically engineered for battery-operated IoT edge devices and energy-constrained industrial systems.

FAQ

What is the maximum operating frequency and core type of the STM32L021D4P7TR?

The STM32L021D4P7TR features an Arm Cortex-M0+ core rated for up to 32 MHz operation. It achieves 0.95 DMIPS/MHz performance with Thumb-2 instruction set support. The core is factory-calibrated for 16 MHz HSI accuracy within ±1%, and supports PLL multiplication for higher-frequency operation when required by application timing constraints.

Does the STM32L021D4P7TR support 5V-tolerant I/Os, and how many are available?

Yes, the STM32L021D4P7TR supports 23 I/O pins with 5V tolerance-confirmed in Section 3.7 of the datasheet. This allows direct interfacing with standard 5V logic peripherals (e.g., legacy sensors, displays, or level-shifter-free UART transceivers) without external protection circuitry, simplifying design and reducing BOM count in mixed-voltage systems.

How does the hardware AES-128 engine integrate with the MCU's memory and peripherals?

The AES-128 engine is accessible via dedicated APB registers and supports ECB/CBC modes with DMA-triggered operation. It reads plaintext from SRAM or Flash, writes ciphertext to SRAM, and can be synchronized with USART or SPI transfers-enabling encrypted data streaming without CPU involvement. Key storage relies on software-managed memory; no dedicated key register is present.

What are the wakeup sources and latency from Stop mode?

From Stop mode, the STM32L021D4P7TR supports wakeup via 16 configurable EXTI lines, RTC alarm, comparator events, or USART start-bit detection. Measured wakeup time is ≤5 µs when exiting to Run mode from Flash, as specified in Table 33 (Section 6.3.33). This latency includes clock stabilization and vector fetch-critical for responsive event-driven sensing.

STM32L021D4P7TR 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:

STM32L021D4P7TR FAQ

1.How can I place an order for STM32L021D4P7TR through Aetrix?

Please submit a Request for Quotation (RFQ) for STM32L021D4P7TR 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 STM32L021D4P7TR reliable?

The price and inventory of STM32L021D4P7TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L021D4P7TR is usually 5 days.

3.What payment methods are accepted for STM32L021D4P7TR?

We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L021D4P7TR transactions.

Note: Certain payment methods may incur a processing fee.

4.How is shipping managed for STM32L021D4P7TR?

STM32L021D4P7TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.

Once your STM32L021D4P7TR 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 STM32L021D4P7TR?

For technical support, including STM32L021D4P7TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L021D4P7TR requirements.

6.How does Aetrix verify that STM32L021D4P7TR is sourced from the original manufacturer or authorized distributors?

All STM32L021D4P7TR 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 STM32L021D4P7TR meets industry standards.

7.What is the process for return or replacement of STM32L021D4P7TR?

All STM32L021D4P7TR units undergo pre-shipment inspection (PSI). If there is an issue with STM32L021D4P7TR, 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 STM32L021D4P7TR part is unused and in its original packaging.

Return procedure for STM32L021D4P7TR:

1.Submit a request within 90 days.

2.Obtain a Return Material Authorization (RMA) from Aetrix.

STM32L021D4P7TR Tags

  • STM32L021D4P7TR
  • STM32L021D4P7TR PDF
  • STM32L021D4P7TR Datasheet
  • STM32L021D4P7TR Specifications
  • STM32L021D4P7TR Images
  • STMicroelectronics
  • STMicroelectronics STM32L021D4P7TR
  • Buy STM32L021D4P7TR
  • STM32L021D4P7TR Price
  • STM32L021D4P7TR Distributor
  • STM32L021D4P7TR Supplier
  • STM32L021D4P7TR Wholesale
Related Products
ATTINY4-TSHR
ATTINY4-TSHR

Microchip Technology

ATTINY10-TSHR
ATTINY10-TSHR

Microchip Technology

ATTINY10-TS8R
ATTINY10-TS8R

Microchip Technology

ATTINY202-SSNR
ATTINY202-SSNR

Microchip Technology

ATTINY202-SSFR
ATTINY202-SSFR

Microchip Technology

ATTINY402-SSNR
ATTINY402-SSNR

Microchip Technology

PIC16F15213T-I/MF
PIC16F15213T-I/MF

Microchip Technology

PIC16F15213-E/MF
PIC16F15213-E/MF

Microchip Technology

PIC10F200T-I/OT
PIC10F200T-I/OT

Microchip Technology

ATTINY412-SSNR
ATTINY412-SSNR

Microchip Technology

PIC10F202T-I/OT
PIC10F202T-I/OT

Microchip Technology

ATTINY404-SSNR
ATTINY404-SSNR

Microchip Technology

Tech Hub

Search

Search

PRODUCT

PRODUCT

PHONE

PHONE

USER

USER