STMicroelectronics STM32F031G6U7
- Part No.:
- STM32F031G6U7
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 28-UFQFN
- Datasheet:
-
STM32F031G6U7.pdf
- Description:
- IC MCU 32BIT 32KB FLASH 28UFQFPN
- Quantity:
- Payment:

- Shipping:

Inventory:3,035
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32F031G6U7 from STMicroelectronics is a 32-bit ARM® Cortex®-M0 microcontroller with 32 KB Flash, 4 KB SRAM (with hardware parity), 12-bit 1.0 µs ADC (10-channel), up to 39 fast I/Os (26 with 5 V tolerance), and operating voltage range of 2.0–3.6 V. It integrates 9 timers-including one advanced-control timer with deadtime generation-and communication interfaces (I²C Fast Mode Plus, USART with IrDA/LIN/ISO7816, SPI at 18 Mbit/s)-targeting cost-sensitive industrial control and smart sensor nodes.
For engineers reviewing the STM32F031G6U7 datasheet, STM32F031G6U7 pinout, STM32F031G6U7 application, or STM32F031G6U7 equivalent, key selection criteria include its 48 MHz max CPU frequency, ECOPACK®2-compliant UFQFPN32 package, -40 to +105°C extended temperature rating, SWD debug support, and integrated RTC with alarm and periodic wakeup from Stop/Standby modes.
Technical Context
The device implements a single-cycle ARM Cortex-M0 core with Thumb-2 instruction set, supporting deterministic real-time execution and low-latency interrupt handling via NVIC. Its clock system combines internal RC oscillators (8 MHz HSI with x6 PLL, 40 kHz LSI) and external sources (4–32 MHz HSE, 32.768 kHz LSE for RTC calibration).
Power architecture includes programmable voltage detector (PVD), POR/PDR reset logic, and three low-power modes (Sleep, Stop, Standby) with VBAT backup for RTC and registers. Analog subsystem features separate VDDA supply (2.4–3.6 V), internal temperature sensor, and calibrated VREFINT for ADC reference stability.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | ARM Cortex-M0, 48 MHz max-enables deterministic real-time control with <100 ns interrupt latency. |
| Flash Memory | 32 KB-supports firmware updates in-field without external memory; includes error correction for robustness. |
| SRAM | 4 KB with hardware parity-detects and flags single-bit memory errors for safety-critical operation. |
| ADC | 12-bit, 1.0 µs conversion time, 10-channel-meets sub-100 µs sampling requirements for motor current sensing. |
| I/O Voltage Tolerance | 26 pins tolerant to 5 V-simplifies interface with legacy 5 V peripherals without level shifters. |
| Operating Temperature | -40 to +105°C-qualified for industrial environments including motor drives and PLC I/O modules. |
| Debug Interface | Serial Wire Debug (SWD)-enables non-intrusive debugging and flash programming using standard ST-LINK tools. |
Pinout & Package
STM32F031G6U7 is housed in a 5 × 5 mm UFQFPN32 (Ultra-Fine Pitch Quad Flat No-lead) package with 0.5 mm pitch, optimized for compact PCB layouts and automated assembly. Pin count and thermal performance align with industrial-grade reliability requirements.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Digital power supply and ground | Separate digital rail (2.0–3.6 V); decoupling required per datasheet layout guidelines to suppress switching noise. |
| VDDA, VSSA | Analog power supply and ground | Isolated analog domain (2.4–3.6 V); mandatory separation from digital ground prevents ADC quantization noise. |
| PA0–PA15, PB0–PB9 | General-purpose I/Os | 39 total GPIOs; 26 support 5 V tolerance; all configurable as EXTI sources for wake-from-Stop event detection. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts 1.65–5.5 V logic levels-compatible with external supervisory circuits. |
| SYSCLK, SWDIO, SWCLK | System clock and debug interface | SWD pins share with GPIOA[13–14]; no dedicated debug header needed-reduces BOM count and board space. |
Key Features
| Feature | Design Value |
|---|---|
| Advanced-control timer (TIM1) | 6-channel PWM with programmable deadtime and emergency stop-enables safe gate driving for 3-phase motor inverters. |
| USART with IrDA modulation | Built-in IrDA encoder/decoder-eliminates external transceiver for infrared remote control or diagnostics interfaces. |
| I²C Fast Mode Plus (1 Mbit/s) | 20 mA sink capability on SDA/SCL-drives heavier bus capacitance without external pull-ups in multi-node systems. |
| RTC with calendar and alarm | Independent 32.768 kHz LSE oscillator with calibration-maintains accurate timekeeping during Stop/Standby with VBAT backup. |
| CRC calculation unit | Hardware-accelerated CRC-32-offloads firmware from integrity checks on firmware images or communication payloads. |
Applications
| Industrial Motor Control | Smart Sensor Node |
|---|---|
Use Scenario: Compact BLDC motor driver in HVAC blowers or small pumps requiring precise commutation timing and fault protection. IC Role / Device Role / Timing Role: Main controller executing FOC algorithms, generating 6-channel PWM with synchronized deadtime, and monitoring overcurrent via ADC. Use Value: TIM1's hardware deadtime insertion and emergency stop prevent shoot-through; 5 V-tolerant I/Os interface directly with Hall-effect sensors and gate drivers. | Use Scenario: Battery-powered environmental monitor measuring temperature, humidity, and CO₂ with wireless telemetry. IC Role / Device Role / Timing Role: System-on-chip managing sensor acquisition, data preprocessing, low-power scheduling, and UART-based BLE module control. Use Value: Stop/Standby mode current <1 µA extends battery life; integrated RTC enables scheduled wakeups; 12-bit ADC resolves sensor LSBs without external signal conditioning. |
| PLC Digital I/O Module | Home Appliance Control Panel |
Use Scenario: DIN-rail mounted I/O expansion module with 16 isolated digital inputs and 8 relay outputs. IC Role / Device Role / Timing Role: Central MCU handling optocoupler input scanning, watchdog supervision, and Modbus RTU over RS-485 via USART. Use Value: Hardware parity on SRAM detects memory corruption in harsh EMI environments; PVD monitors supply dips before brownout resets. | Use Scenario: Touch-enabled washing machine UI with LED indicators, buzzer feedback, and motor speed control. IC Role / Device Role / Timing Role: Single-chip solution managing capacitive touch sensing, PWM-driven LEDs/buzzer, and triac firing timing via timer output compare. Use Value: 48 MHz CPU handles real-time touch response (<10 ms latency); 39 GPIOs consolidate front-panel buttons, displays, and actuator drivers onto one die. |
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, 4 KB SRAM, no DMA, no advanced timer, TSSOP20 package | Limited peripheral set; suitable only for ultra-low-cost, low-pin-count applications like simple LED controllers | Select when BOM cost is primary constraint and advanced PWM or high-speed ADC not required. |
| STM32F042F6P6 | 32 KB Flash, 6 KB SRAM, USB 2.0 FS device, crystal-less USB clock recovery | USB connectivity adds host-facing functionality but increases layout complexity and ESD sensitivity | Choose when native USB device interface (e.g., HID keyboard/mouse emulation) is mandatory. |
Compared with STM32F031G6U7, the F030F4P6 sacrifices timer capability and Flash density for lower unit cost and smaller footprint, while the F042F6P6 trades off industrial temperature grade (-40 to +85°C only) and adds USB-but requires careful USB PHY layout and ESD protection.
Availability
STM32F031G6U7 is available at Aetrix Electronics and suitable for industrial motor control, smart sensor nodes, PLC digital I/O modules, and home appliance control panels requiring stable component supply across long production lifecycles.
Supply support for STM32F031G6U7 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, sensors, and analog devices for industrial, automotive, and consumer markets.
The STM32F0 series targets cost-sensitive, resource-constrained embedded applications demanding high integration, low power, and industrial-grade reliability-optimized for control-centric use cases without sacrificing peripheral richness.
FAQ
What is the maximum operating frequency of the STM32F031G6U7?
The STM32F031G6U7 achieves a maximum CPU clock frequency of 48 MHz using its internal 8 MHz HSI oscillator with x6 PLL multiplication or an external 4–32 MHz crystal. This frequency is fully supported across the full -40 to +105°C temperature range and 2.0–3.6 V supply voltage, enabling deterministic real-time execution for control loops and communication stacks.
Does the STM32F031G6U7 support hardware CRC calculation?
Yes, the STM32F031G6U7 includes a dedicated cyclic redundancy check (CRC) calculation unit compliant with CRC-32 standards. It operates independently of the CPU, accepting data via memory-mapped registers or DMA, and is commonly used for firmware image integrity verification and secure bootloader validation without software overhead.
Can the STM32F031G6U7 operate from a single 3.3 V supply without external regulators?
Yes-the STM32F031G6U7 supports direct connection to a regulated 3.3 V supply across its VDD/VSS and VDDA/VSSA pins. The internal voltage regulator is bypassed in this configuration, and the analog supply must be clean and decoupled per Section 6.1.6 of the datasheet to ensure ADC accuracy and RTC stability.
How many I/O pins on the STM32F031G6U7 are 5 V tolerant?
Up to 26 I/O pins on the STM32F031G6U7 are 5 V tolerant, as specified in Table 11 (Pin Definitions) and Section 3.7 of the datasheet. These pins tolerate 5 V logic levels regardless of VDD voltage (2.0–3.6 V), enabling direct interfacing with legacy 5 V peripherals such as optocouplers, logic gates, and industrial sensors without external level-shifting circuitry.
STM32F031G6U7 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 28-UFQFN
- 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:
- 23
- 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 ~ 105°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32F031G6U7 FAQ
1.How can I place an order for STM32F031G6U7 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32F031G6U7 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 STM32F031G6U7 reliable?
The price and inventory of STM32F031G6U7 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32F031G6U7 is usually 5 days.
3.What payment methods are accepted for STM32F031G6U7?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32F031G6U7 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32F031G6U7?
STM32F031G6U7 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32F031G6U7 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 STM32F031G6U7?
For technical support, including STM32F031G6U7 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32F031G6U7 requirements.
6.How does Aetrix verify that STM32F031G6U7 is sourced from the original manufacturer or authorized distributors?
All STM32F031G6U7 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 STM32F031G6U7 meets industry standards.
7.What is the process for return or replacement of STM32F031G6U7?
All STM32F031G6U7 units undergo pre-shipment inspection (PSI). If there is an issue with STM32F031G6U7, 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 STM32F031G6U7 part is unused and in its original packaging.
Return procedure for STM32F031G6U7:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32F031G6U7 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…

