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

- Shipping:

Inventory:1,793
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32F031F6P6TR from STMicroelectronics is a 32-bit ARM Cortex-M0 microcontroller in TSSOP20 package, operating up to 48 MHz with 32 KB Flash, 4 KB SRAM (HW parity), and integrated peripherals including 12-bit ADC (1.0 µs), 9 timers (including advanced-control TIM1 with deadtime and emergency stop), RTC, I²C (Fast Mode Plus), USART (LIN/IrDA/ISO7816), and SPI (18 Mbit/s). It targets cost-sensitive industrial control and sensor interface applications requiring extended temperature operation (−40 to +105°C).
For engineers reviewing the STM32F031F6P6TR datasheet, STM32F031F6P6TR pinout, STM32F031F6P6TR application, or STM32F031F6P6TR equivalent, key selection considerations include its TSSOP20 footprint, 5 V-tolerant I/Os (up to 26), programmable voltage detector (PVD), CRC unit, and SWD debug interface - all critical for resource-constrained embedded designs.
Technical Context
The device implements an ARM Cortex-M0 core with Harvard architecture, supporting Thumb-2 instruction set and NVIC with 32 interrupt vectors. Its clock system integrates multiple sources: 4–32 MHz HSE crystal, 32 kHz LSE for RTC, 8 MHz HSI with x6 PLL, and 40 kHz LSI for watchdogs.
Peripherals are tightly coupled via AHB/APB buses: the 12-bit ADC supports up to 10 channels with separate VDDA supply (2.4–3.6 V); TIM1 provides 6-channel PWM with configurable deadtime and emergency stop; and the I²C interface delivers 1 Mbit/s Fast Mode Plus with 20 mA sink capability and Stop-mode wakeup.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | ARM Cortex-M0, 48 MHz max - enables deterministic real-time control with low latency interrupt response. |
| Memory | 32 KB Flash + 4 KB SRAM with hardware parity - supports robust firmware storage and error-checked data buffering. |
| ADC | 12-bit, 1.0 µs conversion, 10-channel - suitable for fast analog sensing (e.g., motor current, temperature) without external oversampling. |
| Timers | 9 timers including TIM1 (advanced-control, 6-PWM, deadtime, emergency stop) - enables precise motor gate drive and safety-critical timing. |
| I/O Voltage | 2.0–3.6 V supply; up to 26 pins 5 V tolerant - simplifies interfacing with legacy 5 V logic and sensors without level shifters. |
| RTC & Backup | Calendar RTC with alarm, periodic wakeup from Stop/Standby, VBAT support - maintains timekeeping during ultra-low-power operation. |
| Debug | Serial Wire Debug (SWD) - enables full-speed on-chip debugging and programming using standard ST-LINK tools. |
| Temp Range | −40 to +105°C - qualified for industrial environments including motor drives and building automation. |
Pinout & Package
TSSOP20 (6.5 × 4.4 mm, 0.65 mm pitch) - compact surface-mount package optimized for space-constrained PCB layouts while maintaining hand-solderability and thermal performance.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Digital power supply | 2.0–3.6 V main supply for core and digital peripherals; decoupling required per datasheet layout guidelines. |
| VSS | Digital ground | Reference return path for digital circuitry; must be connected to low-impedance ground plane. |
| VDDA | Analog power supply | Separate 2.4–3.6 V supply for ADC/RTC; isolated from digital noise to ensure 12-bit accuracy. |
| VSSA | Analog ground | Dedicated analog reference return; requires star grounding or ferrite bead isolation from VSS. |
| NRST | Active-low reset input | Asynchronous reset pin with internal pull-up; accepts external push-button or supervisor IC assertion. |
| PA0–PA9, PB0–PB9 | General-purpose I/O | Up to 18 GPIOs (TSSOP20 pin count limit); most support 5 V tolerance and remappable alternate functions (USART, SPI, I²C, timers). |
| PA13/PA14 | SWD debug interface | SWDIO and SWCLK pins - enable programming and debugging without dedicated JTAG header. |
| OSC_IN/OSC_OUT | HSE crystal oscillator terminals | Support 4–32 MHz external crystal for precise clocking; optional for systems using internal RC oscillators. |
Key Features
| Feature | Design Value |
|---|---|
| Hardware CRC unit | Accelerates firmware integrity checks and communication frame validation without CPU overhead. |
| Programmable voltage detector (PVD) | Monitors VDD and triggers interrupt or reset at user-configurable thresholds (4 levels), enabling brown-out recovery. |
| Low-power modes (Sleep/Stop/Standby) | Stop mode draws ≤1.3 µA (typ) with RTC running - extends battery life in sensor nodes and portable devices. |
| 5 V-tolerant I/Os | 26 pins tolerate 5 V inputs while powered from 3.3 V - eliminates level translators in mixed-voltage systems. |
| Unique 96-bit ID | Factory-programmed serial number - enables secure device authentication and firmware binding in production. |
| ECOPACK®2 compliance | Meets RoHS and halogen-free requirements - supports environmental compliance for global industrial shipments. |
Applications
| Motor Control Interface | Sensor Data Acquisition |
|---|---|
Use Scenario: Compact BLDC motor driver in HVAC fan modules where space and BOM cost are constrained. IC Role / Device Role / Timing Role: MCU executes commutation logic, reads hall-effect sensors via GPIO, generates 6-channel PWM via TIM1 with deadtime, and monitors bus voltage via ADC. Use Value: Integrated advanced timer and 5 V-tolerant I/Os eliminate external gate drivers and level shifters, reducing component count by ≥3. | Use Scenario: Wireless temperature/humidity node with local display and battery backup. IC Role / Device Role / Timing Role: Manages I²C sensor reads, drives segment LCD via GPIO, logs data to Flash, and wakes periodically via RTC alarm to transmit via USART. Use Value: Standby current <1 µA with VBAT-powered RTC enables >5-year battery life using CR2032. |
| Industrial PLC I/O Module | Smart Lighting Controller |
Use Scenario: DIN-rail mounted digital input module monitoring 16 dry-contact switches in factory automation. IC Role / Device Role / Timing Role: Scans optocoupler-isolated inputs via GPIO interrupts, debounces in firmware, and communicates status over RS-485 via USART with LIN framing. Use Value: Hardware parity on SRAM and PVD detection prevent silent data corruption during voltage transients on noisy factory floors. | Use Scenario: DALI-compliant LED driver with dimming profile storage and thermal derating. IC Role / Device Role / Timing Role: Implements DALI slave protocol over UART, reads NTC thermistor via ADC, stores dimming curves in Flash, and adjusts PWM duty cycle via TIM16/TIM17. Use Value: 12-bit ADC with internal reference enables ±1°C temperature measurement accuracy without external precision references. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32F030F4P6 | 16 KB Flash, no advanced-control timer (TIM1), no RTC calendar, no VBAT support | Limited to basic control tasks without timekeeping or safety-critical PWM | Select when cost is primary constraint and advanced timer/RTC features are unused. |
| STM32F042F4P6 | 32 KB Flash, USB 2.0 FS device, no 5 V-tolerant I/Os, same TSSOP20 package | Requires USB connectivity but sacrifices 5 V interface compatibility | Choose for HID or CDC applications needing native USB, accepting I/O voltage limitation. |
Compared with STM32F031F6P6TR, the F030F4P6 reduces feature set to lower cost but removes RTC and advanced PWM - limiting suitability for time-aware or motor control use cases; the F042F4P6 adds USB at the expense of 5 V tolerance, making it incompatible with legacy 5 V sensor buses.
Availability
STM32F031F6P6TR is available at Aetrix Electronics and suitable for industrial motor control, sensor node design, and smart lighting systems requiring stable component supply across extended temperature ranges and long product lifecycles.
Supply support for STM32F031F6P6TR 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, designing and manufacturing microcontrollers, power management ICs, sensors, and analog products for industrial, automotive, and consumer markets.
The STM32F0 series targets cost-sensitive, resource-efficient embedded applications - delivering Cortex-M0 performance with industrial-grade reliability, low-power operation, and comprehensive peripheral integration in compact packages.
FAQ
What is the maximum operating frequency and how is it achieved?
The STM32F031F6P6TR achieves 48 MHz maximum CPU frequency using its internal 8 MHz HSI oscillator with a 6× PLL multiplier. Alternatively, an external 4–32 MHz crystal (HSE) can be used directly or with PLL scaling. The system clock is distributed via the AHB/APB prescalers, and all peripherals remain fully functional at full speed.
Does this MCU support hardware-based cryptographic functions?
No, the STM32F031F6P6TR does not include dedicated cryptographic accelerators (e.g., AES, SHA, PKA). It relies on software libraries for encryption tasks. For hardware crypto, consider STM32L4 or STM32G0 series parts with CryptoCell or AES engines - the F031 is optimized for deterministic real-time control, not security processing.
Can the ADC measure signals beyond the VDDA supply range?
No - the ADC input voltage range is strictly 0 to VDDA (2.4–3.6 V). Input signals exceeding VDDA risk damage or erroneous conversions. External signal conditioning (e.g., resistor dividers, op-amp clamping) is required for higher-voltage analog sources, and the internal VREFINT (1.2 V) or external reference can be selected for improved accuracy within the valid range.
Is SWD debug supported in all low-power modes?
SWD debug is disabled in Stop and Standby modes to minimize leakage current. It remains active in Sleep mode, allowing real-time variable inspection and breakpoint execution. To debug low-power behavior, use the Wakeup pin or RTC alarm to exit Stop mode under debugger control, then resume SWD session - full debug visibility requires waking the core first.
STM32F031F6P6TR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-TSSOP (0.173", 4.40mm Width)
- Series:
- STM32F0
- Packaging:
- Tape & Reel (TR)
- Product Status:
- Active
- Programmable:
- Not Verified
- Core Processor:
- ARM® Cortex®-M0
- Core Size:
- 32-Bit Single-Core
- Speed:
- 48MHz
- Connectivity:
- I2C, IrDA, LINbus, SPI, UART/USART
- Peripherals:
- DMA, I2S, POR, PWM, WDT
- Number of I/O:
- 15
- Program Memory Size:
- 32KB (32K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 4K x 8
- Voltage - Supply (Vcc/Vdd):
- 2V ~ 3.6V
- Data Converters:
- A/D 12x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32F031F6P6TR FAQ
1.How can I place an order for STM32F031F6P6TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32F031F6P6TR 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 STM32F031F6P6TR reliable?
The price and inventory of STM32F031F6P6TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32F031F6P6TR is usually 5 days.
3.What payment methods are accepted for STM32F031F6P6TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32F031F6P6TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32F031F6P6TR?
STM32F031F6P6TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32F031F6P6TR 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 STM32F031F6P6TR?
For technical support, including STM32F031F6P6TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32F031F6P6TR requirements.
6.How does Aetrix verify that STM32F031F6P6TR is sourced from the original manufacturer or authorized distributors?
All STM32F031F6P6TR 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 STM32F031F6P6TR meets industry standards.
7.What is the process for return or replacement of STM32F031F6P6TR?
All STM32F031F6P6TR units undergo pre-shipment inspection (PSI). If there is an issue with STM32F031F6P6TR, 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 STM32F031F6P6TR part is unused and in its original packaging.
Return procedure for STM32F031F6P6TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32F031F6P6TR 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…

