STMicroelectronics STM32F031K6T6
- Part No.:
- STM32F031K6T6
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 32-LQFP
- Datasheet:
-
STM32F031K6T6.pdf
- Description:
- IC MCU 32BIT 32KB FLASH 32LQFP
- Quantity:
- Payment:

- Shipping:

Inventory:4,166
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32F031K6T6 from STMicroelectronics is a 32-bit ARM® Cortex®-M0 microcontroller with 32 KB Flash, 4 KB SRAM (with hardware parity), 48 MHz max CPU frequency, 12-bit 1.0 µs ADC (10-channel), and integrated RTC with alarm-designed for cost-sensitive industrial control, smart sensors, and low-power HMI applications.
For engineers reviewing the STM32F031K6T6 datasheet, STM32F031K6T6 pinout, STM32F031K6T6 application, or STM32F031K6T6 equivalent, key selection criteria include Flash/SRAM size, 5 V-tolerant I/O count (up to 26), low-power mode timing (Stop/Standby wakeup), I²C Fast Mode Plus support (1 Mbit/s), and TSSOP20 package compatibility with legacy PCB layouts.
Technical Context
The device implements a single-cycle ARM Cortex-M0 core with Thumb-2 instruction set, tightly coupled NVIC supporting up to 32 interrupts, and a unified memory map with bit-band aliasing for atomic peripheral register access. Its clock system integrates dual oscillators (4–32 MHz HSE + 32 kHz LSE), internal RC sources (8 MHz HSI, 40 kHz LSI), and a PLL for precise 48 MHz system clock derivation.
Peripheral interconnect uses AHB/APB bus matrix architecture: DMA controller routes transfers between memory and peripherals including USART, SPI, I²C, timers, and ADC-enabling zero-CPU-overhead data movement. All I/Os support remappable alternate functions via GPIOx_AFR registers, with configurable pull-up/pull-down, open-drain, and slew-rate control.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | ARM Cortex-M0, 48 MHz max - enables real-time deterministic execution of control loops within ≤20.8 ns instruction cycle time. |
| Flash Memory | 32 KB - sufficient for bootloader + application firmware with room for field updates in resource-constrained embedded systems. |
| SRAM | 4 KB with hardware parity - detects single-bit errors in runtime data storage, critical for safety-aware industrial firmware. |
| ADC | 12-bit, 1.0 µs conversion, 10-channel - supports simultaneous sampling of multiple analog sensors (e.g., temperature, voltage, current) at ≥1 MSPS aggregate rate. |
| I/O Voltage Tolerance | 26 pins 5 V tolerant - allows direct interfacing with legacy 5 V logic without level shifters in mixed-voltage designs. |
| Low-Power Modes | Sleep/Stop/Standby with RTC retention - achieves <1 µA Standby current (VBAT only), enabling battery-backed operation for >1 year on CR2032. |
| Communication Interfaces | 1× I²C (Fast Mode Plus, 1 Mbit/s), 1× USART (LIN/IrDA/ISO7816), 1× SPI (18 Mbit/s) - covers sensor networking, serial diagnostics, and secure peripheral attachment. |
| Timers | 9 timers including 1× advanced-control (TIM1) with deadtime & emergency stop - supports 3-phase motor control, digital power supply PWM, and safety-critical timing. |
Pinout & Package
The STM32F031K6T6 is housed in a 20-pin TSSOP package (4.4 mm × 6.5 mm, 0.65 mm pitch), optimized for automated assembly and thermal performance in compact industrial modules.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Digital power supply | 2.0–3.6 V main supply; decoupling required per STM32 layout guidelines to ensure stable core operation. |
| VSS | Digital ground | Reference return path for all digital I/O and core logic; must be connected to PCB ground plane with low-inductance trace. |
| VDDA | Analog power supply | 2.4–3.6 V dedicated analog rail; isolated from VDD to minimize noise coupling into ADC and RTC circuits. |
| PA0–PA15 | General-purpose I/O | Configurable as GPIO, EXTI, or alternate function (e.g., USART_TX, SPI_MOSI); PA0–PA7 support 5 V tolerance. |
| NRST | Active-low reset input | External reset trigger with Schmitt-trigger input; internal pull-up ensures reliable startup after power-on or brownout. |
| SWDIO/SWCLK | Serial Wire Debug interface | Two-pin debug port supporting full SWD protocol-enables programming, breakpoint debugging, and real-time variable inspection without JTAG overhead. |
| BOOT0 | Boot mode selection | High at reset forces boot from system memory (ROM bootloader); used for firmware recovery or factory programming via USART. |
Key Features
| Feature | Design Value |
|---|---|
| CRC calculation unit | Hardware-accelerated CRC-32 generator for firmware image integrity verification during OTA updates. |
| Programmable voltage detector (PVD) | Configurable threshold (2.2–2.9 V) triggers interrupt before brownout-enables graceful shutdown or data save in power-fail scenarios. |
| Temperature sensor & VREFINT | On-die sensor calibrated to ±1.5°C accuracy; internal 1.22 V reference enables self-calibrating ADC measurements without external components. |
| Independent watchdog (IWDG) | Free-running 12-bit counter clocked by 40 kHz LSI-guarantees system recovery from software lockup even if main clock fails. |
| Calendar RTC with alarm | Real-time date/time tracking (YY-MM-DD hh:mm:ss) plus programmable alarm interrupt-supports scheduled wakeups from Stop/Standby modes. |
| 96-bit unique ID | Factory-programmed serial number accessible via system memory-enables device authentication, license binding, and secure firmware provisioning. |
Applications
| Industrial Motor Control | Smart Sensor Node |
|---|---|
Use Scenario: Compact BLDC motor driver in HVAC actuators requiring closed-loop speed regulation and fault protection. IC Role / Device Role / Timing Role: MCU executes FOC algorithm, generates 6-channel complementary PWM with deadtime, monitors overcurrent via ADC, and triggers emergency stop on fault. Use Value: Integrated TIM1 with deadtime generation eliminates external gate-driver logic; 5 V-tolerant I/O interfaces directly with Hall-effect sensors and optocoupled feedback. | Use Scenario: Battery-powered environmental monitor measuring temperature, humidity, and CO₂ using I²C sensors and UART telemetry. IC Role / Device Role / Timing Role: Central controller manages sensor polling, ADC acquisition, low-power scheduling, and wireless module wake-up via USART. Use Value: Sub-µA Standby current extends CR2032 life beyond 12 months; RTC alarm wakes MCU every 10 s for measurement burst, minimizing active time. |
| Energy Metering Interface | PLC I/O Module |
Use Scenario: DIN-rail mounted sub-meter collecting voltage/current waveforms via shunt/CT and reporting via RS-485. IC Role / Device Role / Timing Role: High-speed ADC samples AC line at 10 kSPS; USART handles Modbus RTU protocol; CRC validates firmware updates. Use Value: 12-bit ADC with 1 µs conversion captures waveform harmonics; Fast Mode Plus I²C isolates metering ICs from communication bus noise. | Use Scenario: Modular digital input card for industrial PLCs accepting 24 V DC field signals with ESD protection and status LED indication. IC Role / Device Role / Timing Role: GPIO reads opto-isolated inputs; TIM16/TIM17 generate PWM for LED dimming; IWDG ensures fail-safe behavior during transient faults. Use Value: 26 5 V-tolerant I/Os simplify interface to standard 24 V logic; hardware parity on SRAM prevents corrupted I/O state tables during EMI events. |
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 hardware parity on SRAM, no RTC calendar, fewer timers (7 total), same TSSOP20 package. | Lacks calendar RTC and hardware parity-unsuitable for battery-backed timekeeping or safety-critical data logging. | Select when cost is primary constraint and RTC/calendar, SRAM parity, or advanced timer features are unnecessary. |
| STM32F042F4P6 | Same Flash/SRAM, adds USB 2.0 FS device interface, enhanced CRC, higher-temp grade (−40 to +105°C vs. −40 to +85°C). | USB capability enables direct PC connectivity for configuration/diagnostics; extended temp rating suits harsher environments. | Choose when USB host/device functionality or extended temperature operation is required despite identical core/peripheral count. |
Compared with STM32F030F4P6, the STM32F031K6T6 provides essential reliability features (RTC calendar, SRAM parity, PVD) for industrial control; versus STM32F042F4P6, it trades USB for lower BOM cost and simpler layout-ideal where USB is unused and thermal margin is adequate.
Availability
STM32F031K6T6 is available at Aetrix Electronics and suitable for industrial motor control, smart sensor nodes, energy metering interfaces, and PLC I/O modules requiring stable component supply across multi-year production cycles.
Supply support for STM32F031K6T6 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 devices, sensors, and analog ICs for industrial, automotive, and consumer markets.
The STM32F0 series targets cost-optimized, ultra-low-power 32-bit applications-emphasizing ease of migration from 8-bit MCUs while delivering Cortex-M0 performance, robust peripheral integration, and long-term product longevity for industrial equipment.
FAQ
What is the maximum operating frequency and corresponding supply voltage range?
The STM32F031K6T6 operates at up to 48 MHz across its full supply range of 2.0–3.6 V. At 48 MHz, the minimum recommended VDD is 2.4 V per electrical characteristics (Section 6.3.1). Below 2.4 V, maximum frequency must be reduced linearly to maintain timing margins-e.g., 24 MHz at 2.0 V.
Does this MCU support in-application programming (IAP) of Flash memory?
Yes, the STM32F031K6T6 supports IAP via its embedded Flash programming interface. Firmware can erase and reprogram Flash sectors (1 KB each) while executing from RAM or another sector, enabling field firmware updates without external programmers-subject to proper write-protection and address alignment per RM0091.
How many I/O pins support 5 V tolerance, and which ones are they?
Up to 26 I/O pins are 5 V tolerant, specifically PA0–PA7, PA9–PA15, PB0–PB1, and PB10–PB15. This is confirmed in Section 3.7 of the datasheet and applies regardless of VDD level (2.0–3.6 V). Pins not listed-including NRST, BOOT0, and SWD-must remain within VDD + 0.3 V.
What debug interfaces are supported, and what hardware is required?
The device supports Serial Wire Debug (SWD) only-using SWDIO and SWCLK pins. No JTAG support. A standard ARM-compliant SWD debugger (e.g., ST-LINK/V2, Segger J-Link) is required; no additional level-shifting or passive components are needed for 3.3 V debug signaling.
STM32F031K6T6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 32-LQFP
- Series:
- STM32F0
- Packaging:
- Tray
- 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:
- 25
- 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 13x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32F031K6T6 FAQ
1.How can I place an order for STM32F031K6T6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32F031K6T6 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 STM32F031K6T6 reliable?
The price and inventory of STM32F031K6T6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32F031K6T6 is usually 5 days.
3.What payment methods are accepted for STM32F031K6T6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32F031K6T6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32F031K6T6?
STM32F031K6T6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32F031K6T6 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 STM32F031K6T6?
For technical support, including STM32F031K6T6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32F031K6T6 requirements.
6.How does Aetrix verify that STM32F031K6T6 is sourced from the original manufacturer or authorized distributors?
All STM32F031K6T6 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 STM32F031K6T6 meets industry standards.
7.What is the process for return or replacement of STM32F031K6T6?
All STM32F031K6T6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32F031K6T6, 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 STM32F031K6T6 part is unused and in its original packaging.
Return procedure for STM32F031K6T6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32F031K6T6 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…

