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

- Shipping:

Inventory:4,768
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32C031G6U7 from STMicroelectronics is a 32-bit Arm® Cortex®-M0+ microcontroller in UFQFPN28 package, featuring 32 KB flash, 12 KB SRAM with hardware parity, 48 MHz max CPU frequency, and integrated 12-bit ADC (0.4 µs conversion), two USARTs (one with LIN/ISO7816), I²C Fast-mode Plus, SPI, RTC, and 45 5 V-tolerant I/Os. It targets cost-sensitive industrial control, smart sensors, and power management modules requiring robust low-power operation down to Shutdown mode.
For engineers reviewing the STM32C031G6U7 datasheet, STM32C031G6U7 pinout, STM32C031G6U7 application, or STM32C031G6U7 equivalent, key selection criteria include its 28-pin UFQFPN footprint, 2.0–3.6 V supply range, -40°C to 125°C extended temperature grade, hardware CRC unit, and dual watchdog timers (IWDG + WWDG) for functional safety-critical firmware execution.
Technical Context
The device integrates an Arm Cortex-M0+ core with Memory Protection Unit (MPU), enabling secure partitioning of code and data spaces. Its clock system combines four oscillators: 4–48 MHz HSE, 32 kHz LSE with calibration, 48 MHz HSI48 (±1%), and 32 kHz LSI (±5%), supporting dynamic clock switching for power optimization.
Peripherals are interconnected via a multi-layer AHB/APB bus matrix, allowing concurrent DMA transfers and peripheral access without contention. The 3-channel DMA controller supports flexible request mapping to 39 event sources, including ADC, USART, SPI, and timers-enabling zero-CPU-overhead sensor data acquisition and communication stacks.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 48 MHz max - enables real-time deterministic control loops with <100 ns interrupt latency. |
| Flash / RAM | 32 KB flash with readout protection; 12 KB SRAM with hardware parity - supports certified firmware storage and fault-tolerant data buffers. |
| ADC | 12-bit, 0.4 µs conversion, up to 19 external channels - delivers high-resolution analog sensing for motor current or battery voltage monitoring. |
| Timers | Eight timers: one advanced-control (TIM1), four general-purpose (TIM3/14/16/17), two watchdogs (IWDG/WWDG), SysTick - enables PWM generation, encoder counting, and fail-safe timeout supervision. |
| Communication | Two USARTs (one with LIN/ISO7816), one I²C Fast-mode Plus (1 Mbit/s), one SPI (24 Mbit/s) - supports automotive diagnostics, industrial fieldbus bridging, and high-speed sensor interfacing. |
| Power Modes | Sleep, Stop, Standby, Shutdown - achieves 100 nA shutdown current, enabling multi-year battery life in wireless sensor nodes. |
| Operating Temp | -40°C to 125°C - qualified for under-hood automotive, industrial PLC I/O modules, and power converter control environments. |
Pinout & Package
STM32C031G6U7 uses the UFQFPN28 (4 × 4 mm, 0.5 mm pitch) package with 28 terminals, optimized for space-constrained PCB layouts while maintaining thermal performance via exposed pad (EPAD) soldered to ground plane.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Power supply / Ground | Dual VDD/VSS pairs ensure stable core and I/O rail decoupling; EPAD must be connected to VSS for thermal dissipation and noise immunity. |
| PA0–PA15, PB0–PB1 | General-purpose I/O | All 17 pins are 5 V-tolerant, mappable to EXTI lines - enable direct interface with legacy 5 V logic or industrial sensors without level shifters. |
| PA2/PA3 | USART1 TX/RX | Support LIN physical layer (ISO 17987-4) and auto-baud detection - simplifies integration into automotive body electronics networks. |
| PA4/PA5 | SPI1 NSS/SCK | Configurable as master/slave; SCK supports 24 Mbit/s - suitable for high-throughput flash memory or display driver interfaces. |
| PA6/PA7 | SPI1 MISO/MOSI | Full-duplex operation with hardware CRC offload - reduces CPU load during firmware OTA updates over external SPI NOR flash. |
| PC13 | RTC oscillator input | Connects to 32.768 kHz crystal with internal calibration - maintains ±1 ppm timekeeping accuracy across temperature for metering applications. |
Key Features
| Feature | Design Value |
|---|---|
| Hardware CRC unit | Accelerates checksum calculation for firmware integrity verification and secure boot validation in <1 µs per 32-bit word. |
| Programmable BOR | Three threshold levels (2.0/2.2/2.4 V) - prevents erratic operation during brownout events in unregulated 3.3 V power supplies. |
| 5 V-tolerant I/Os | All 45 GPIOs withstand 5.5 V - eliminates external level translators when interfacing with RS-232 transceivers or industrial digital I/O cards. |
| Calendar RTC | Alarm and periodic wake-up from Stop mode - enables scheduled sensor sampling every 10 seconds with <1 µA current draw. |
| SWD debug interface | 2-pin serial wire debug (SWCLK/SWDIO) - allows in-system programming and real-time trace without dedicated JTAG header footprint. |
Applications
| Industrial Motor Control | Smart Energy Metering |
|---|---|
|
Use Scenario: Brushless DC motor commutation in HVAC blowers and pump drives using hall-effect or encoder feedback. IC Role / Device Role / Timing Role: Real-time PWM generation via TIM1 advanced timer with dead-time insertion and synchronous ADC triggering on current sense. Use Value: Enables precise 16 kHz PWM carrier frequency with <100 ns timing jitter, reducing audible noise and improving efficiency by 3% over discrete solutions. |
Use Scenario: Residential electricity meter with tariff switching, tamper detection, and optical IR communication. IC Role / Device Role / Timing Role: System controller managing metrology IC (e.g., STPM32) via SPI, executing billing algorithms, and driving LCD via GPIO bit-banging. Use Value: Integrated RTC with alarm wakes MCU every 10 ms for pulse counting, achieving Class 0.5 accuracy while consuming <2 µA average current. |
| Automotive Body Electronics | IoT Sensor Node |
|
Use Scenario: Door module controlling window lift, mirror fold, and interior lighting with LIN bus diagnostics. IC Role / Device Role / Timing Role: LIN slave node implementing ISO 14229 UDS services, with PA2/PA3 configured for LIN physical layer and automatic baud rate detection. Use Value: Eliminates external LIN transceiver; meets ISO 17987-4 EMC requirements with on-chip slew-rate control and dominant timeout protection. |
Use Scenario: Battery-powered environmental sensor node measuring temperature, humidity, and CO₂ via I²C sensors. IC Role / Device Role / Timing Role: Low-power coordinator entering Stop mode between 30-second measurement cycles, woken by RTC alarm or external interrupt from motion detector. Use Value: Achieves 5-year battery life on CR2032 using Shutdown mode (100 nA) and hardware-accelerated ADC oversampling for noise reduction. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32C011F4U6 | 20-pin TSSOP, 16 KB flash, no RTC calendar, single USART | Limited I/O count and missing calendar RTC precludes energy metering or complex scheduling | Select when board space is constrained and only basic UART + GPIO functionality is required. |
| STM32G031F8P6 | 20-pin TSSOP, 64 KB flash, 8 KB SRAM, USB 2.0 FS, no LIN support | USB connectivity enables PC-based configuration but lacks native LIN physical layer for automotive diagnostics | Prefer for human-interface devices needing USB HID or DFU, not for LIN bus nodes. |
Compared with STM32C031G6U7, the C011F4U6 sacrifices RTC and communication flexibility for smaller footprint, while the G031F8P6 trades LIN compliance for USB capability-making the C031G6U7 optimal for cost-sensitive, LIN-enabled automotive and industrial edge nodes requiring calendar-aware low-power operation.
Availability
STM32C031G6U7 is available at Aetrix Electronics and suitable for industrial motor control, smart energy metering, automotive body electronics, and IoT sensor nodes requiring stable component supply across extended temperature ranges and long product lifecycles.
Supply support for STM32C031G6U7 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, and automotive-grade components since 1987.
The STM32C0 series targets cost-optimized, high-reliability embedded applications-specifically engineered for industrial automation, appliance control, and automotive sub-systems where robustness, low power, and functional safety features are essential.
FAQ
What is the maximum operating frequency and supported voltage range?
The STM32C031G6U7 operates at up to 48 MHz and supports a supply voltage range of 2.0 V to 3.6 V. Its internal 48 MHz RC oscillator (HSI48) achieves ±1% accuracy across temperature and voltage, eliminating need for external crystal in many timing-critical applications like motor control PWM generation.
Does it support hardware encryption or secure boot features?
No, the STM32C031G6U7 does not include hardware cryptographic accelerators or secure boot ROM. It provides readout protection (RDP) Level 1 and Level 2, memory protection unit (MPU), and hardware parity on SRAM-sufficient for basic firmware IP protection and fault detection, but not for certified secure boot implementations.
Can it drive a standard 16x2 character LCD directly?
Yes, the STM32C031G6U7 can drive a parallel 16x2 LCD using GPIO bit-banging due to its 45 5 V-tolerant I/Os and fast toggle speed (<10 ns). No external level shifters are needed, though dedicated LCD segment drivers (e.g., ST7036) are recommended for multiplexed displays requiring higher contrast and lower power.
What debug interface does it use and what pins are required?
It uses Serial Wire Debug (SWD) with two dedicated pins: SWCLK (PA14) and SWDIO (PA13). These pins are shared with JTAG TCK/TMS but default to SWD after reset. No NRST connection is mandatory for debug, though it enables reliable mass erase and recovery from lock-up states.
STM32C031G6U7 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 28-UFQFN
- Series:
- STM32C0
- Packaging:
- Tray
- Product Status:
- Active
- Programmable:
- -
- Core Processor:
- ARM® Cortex®-M0+
- Core Size:
- 32-Bit
- Speed:
- 48MHz
- Connectivity:
- I2C, IrDA, LINbus, SMBus, SPI, UART/USART
- Peripherals:
- Brown-out Detect/Reset, DMA, LCD, POR, PWM, WDT
- Number of I/O:
- 26
- Program Memory Size:
- 32KB (32K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 12K x 8
- Voltage - Supply (Vcc/Vdd):
- 2V ~ 3.6V
- Data Converters:
- A/D 17x12b SAR
- Oscillator Type:
- External, Internal
- Operating Temperature:
- -40°C ~ 105°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32C031G6U7 FAQ
1.How can I place an order for STM32C031G6U7 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32C031G6U7 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 STM32C031G6U7 reliable?
The price and inventory of STM32C031G6U7 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32C031G6U7 is usually 5 days.
3.What payment methods are accepted for STM32C031G6U7?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32C031G6U7 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32C031G6U7?
STM32C031G6U7 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32C031G6U7 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 STM32C031G6U7?
For technical support, including STM32C031G6U7 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32C031G6U7 requirements.
6.How does Aetrix verify that STM32C031G6U7 is sourced from the original manufacturer or authorized distributors?
All STM32C031G6U7 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 STM32C031G6U7 meets industry standards.
7.What is the process for return or replacement of STM32C031G6U7?
All STM32C031G6U7 units undergo pre-shipment inspection (PSI). If there is an issue with STM32C031G6U7, 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 STM32C031G6U7 part is unused and in its original packaging.
Return procedure for STM32C031G6U7:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32C031G6U7 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…

