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

- Shipping:

Inventory:2,258
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32G031C4T6 from STMicroelectronics is an Arm® Cortex®-M0+ 32-bit microcontroller with 16 KB Flash, 8 KB SRAM, 48 MHz max CPU frequency, 12-bit ADC (0.4 µs conversion), and dual USART/I²C/SPI interfaces. It operates from 1.7–3.6 V across –40°C to 85°C and targets cost-sensitive industrial sensor nodes and smart metering front-ends requiring integrated analog sensing and low-power serial communication.
For engineers reviewing the STM32G031C4T6 datasheet, STM32G031C4T6 pinout, STM32G031C4T6 application, or STM32G031C4T6 equivalent, key selection criteria include its 28-pin TSSOP package, 5 V-tolerant GPIOs, hardware CRC unit, programmable BOR/PVD, and support for ISO7816/LIN/IRDA on USART1 - critical for secure peripheral interfacing and battery-backed RTC operation.
Technical Context
The STM32G031C4T6 integrates a single-core Arm Cortex-M0+ with MPU, supporting TrustZone-like memory protection via readout protection (RDP) levels and securable flash area. Its clock system combines 4–48 MHz HSE, 32 kHz LSE with calibration, and ±1% internal 16 MHz HSI with PLL - enabling precise timing for synchronous comms and motor control loops.
Peripheral interconnect uses a hierarchical AHB/APB bus matrix with DMA request multiplexer (DMAMUX), allowing flexible routing of 5 DMA channels to 39 request sources including ADC, timers, and USARTs. The 11-timer suite includes one 128 MHz-capable advanced timer (TIM1), four general-purpose 16-bit timers, and two low-power timers (LPTIM1/LPTIM2) optimized for sub-microamp wake-up from Stop mode.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 48 MHz max - delivers deterministic real-time response for control tasks with <20 ns interrupt latency. |
| Memory | 16 KB Flash + 8 KB SRAM with HW parity - supports firmware updates and data logging with error detection in safety-critical contexts. |
| ADC | 12-bit, 0.4 µs conversion, up to 16 external channels - enables fast sampling of temperature, voltage, or current sensors without external signal conditioning. |
| Timers | 11 timers including TIM1 (128 MHz capable), LPTIM1/2 - provides PWM generation, quadrature decoding, and ultra-low-power periodic wake-up (e.g., every 10 s from Stop mode). |
| Communication | 2× I²C (Fast-mode Plus), 2× USART (one with ISO7816/LIN/IRDA), 2× SPI - supports multi-drop sensor networks, smart card readers, and legacy automotive diagnostics. |
| Power Management | VBAT supply, programmable BOR/PVD, Sleep/Stop/Standby/Shutdown modes - achieves <150 nA shutdown current with RTC retention for battery-powered applications. |
| GPIO | 25 fast I/Os, multiple 5 V-tolerant - simplifies interface to legacy 5 V logic and industrial sensors without level shifters. |
Pinout & Package
STM32G031C4T6 is housed in a 20-pin TSSOP package (6.4 × 4.4 mm, pitch 0.65 mm), RoHS-compliant and ECOPACK2 certified. Pin functions are validated per ST's DS12992 Rev 4, Section 4 (Pin assignment and description), with all pins supporting remappable alternate functions via SYSCFG registers.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Power supply / Ground | Dual power domains: VDD powers core/peripherals; VSS provides reference return path for noise-sensitive analog circuits. |
| PA0–PA15, PB0–PB1 | General-purpose I/O | 25 total GPIOs; PA0–PA7 support external interrupts and analog inputs; PB0–PB1 usable as ADC channels or timer outputs. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts 1.65–5.5 V logic - compatible with external supervisor ICs or pushbutton debouncing circuits. |
| BOOT0 | Boot mode selection | High at power-on selects system memory bootloader; tied low for normal Flash execution - enables field firmware recovery without debugger. |
| SWDIO / SWCLK | Debug interface | 2-pin Serial Wire Debug (SWD) - allows full programming, debugging, and real-time trace via ST-LINK or compatible probes. |
| VREF+ / VREF– | Analog reference inputs | Enable external precision reference (e.g., 2.5 V) for ADC, improving measurement accuracy vs. internal VREFINT (±1.5% typical). |
| VBAT | Backup power supply | Connects to coin cell or supercapacitor to maintain RTC calendar, alarm, and 32 backup registers during main power loss. |
Key Features
| Feature | Design Value |
|---|---|
| Hardware CRC unit | Accelerates checksum calculation for firmware integrity verification and communication frame validation (e.g., Modbus RTU). |
| Programmable voltage detector (PVD) | Monitors VDD against 8 selectable thresholds (2.2–2.9 V); triggers interrupt or reset before brownout - prevents erratic behavior in unstable power rails. |
| Temperature sensor + VREFINT | On-die sensor calibrated at factory (±1.5°C accuracy); VREFINT (1.2 V ±1.5%) enables self-calibrating ADC measurements without external references. |
| Low-power UART (LPUART) | Operates in Stop mode with 32 kHz LSE clock - enables wake-up via UART frame detection while consuming <300 nA, ideal for remote wake-on-command systems. |
| Secure boot & RDP | Readout protection (RDP Level 1/2) and securable flash area prevent unauthorized firmware extraction - meets basic industrial security requirements. |
Applications
| Industrial Sensor Node | Smart Energy Meter Front-End |
|---|---|
Use Scenario: Compact environmental monitor measuring temperature, humidity, and supply voltage in factory automation cabinets. IC Role / Device Role / Timing Role: Central controller executing sensor polling, local data fusion, and RS-485/Modbus transmission using USART2 with hardware parity and DMA-driven transfers. Use Value: Integrated 12-bit ADC and 5 V-tolerant GPIOs eliminate external signal conditioning; low-power Stop mode extends battery life to >5 years on CR2032. | Use Scenario: Communication module in electricity meters handling pulse counting, tariff switching, and optical port (IRDA) data exchange with handheld readers. IC Role / Device Role / Timing Role: Interface processor managing IRDA physical layer (via USART1), RTC-based billing intervals, and tamper detection via EXTI on dedicated GPIOs. Use Value: Hardware ISO7816 and IRDA support enable direct compliance with DLMS/COSEM standards; VBAT-backed RTC ensures accurate time-stamping during mains failure. |
| POS Peripheral Controller | Home Appliance Motor Control |
Use Scenario: Secure payment terminal add-on board managing magnetic stripe reader, buzzer, and LED indicators. IC Role / Device Role / Timing Role: Secure peripheral coordinator using securable flash for encryption keys and ISO7816 interface (USART1) to communicate with EMV chip card readers. Use Value: RDP Level 2 and hardware CRC ensure firmware authenticity; 25 GPIOs provide direct drive for LEDs/buzzers without external drivers. | Use Scenario: Fan speed regulator in HVAC systems requiring precise PWM control and thermal monitoring. IC Role / Device Role / Timing Role: Motor driver MCU generating complementary PWM on TIM1 with dead-time insertion, reading thermistor via ADC channel PA0, and adjusting duty cycle based on temperature feedback. Use Value: Advanced timer with 128 MHz input clock enables 15.6 ns PWM resolution; internal temperature sensor reduces BOM cost by eliminating discrete thermal diodes. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32G030F6P6 | Same core and peripherals but only 16 KB Flash, no securable area, no VREFBUF, and no LPUART. | Lacks VBAT-RTC retention and secure boot features - unsuitable for tamper-resistant or long-term timekeeping designs. | Select when cost is primary constraint and security/backup power not required. |
| NXP LPC802M011JDH20 | ARM Cortex-M0+, 16 KB Flash, 4 KB SRAM, no hardware CRC, no securable flash, 1x USART, no ISO7816/LIN. | Missing LIN/ISO7816 and lacks 5 V-tolerant I/Os - cannot replace in smart meter or payment terminal use cases. | Consider only for simple GPIO/UART control where ST ecosystem tools are not needed. |
Compared with STM32G031C4T6, the STM32G030F6P6 omits VBAT support and secure boot, limiting use in regulated environments; the LPC802M011JDH20 lacks both 5 V-tolerant I/Os and LIN/ISO7816, making it incompatible with industrial metering or payment interfaces requiring those protocols.
Availability
STM32G031C4T6 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart energy meter front-ends, POS peripheral controllers, and home appliance motor control systems requiring stable component supply, long-lifecycle assurance, and ECOPACK2 compliance.
Supply support for STM32G031C4T6 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 analog components for industrial, automotive, and consumer markets.
The STM32G0 series targets cost-sensitive, low-power embedded applications with enhanced security and analog integration - specifically engineered for smart metering, sensor hubs, and white goods control where Flash size, package footprint, and certification readiness matter.
FAQ
What is the maximum operating frequency of the STM32G031C4T6?
The STM32G031C4T6 runs at up to 48 MHz using its internal 16 MHz HSI oscillator with PLL multiplication or external crystal sources. This frequency is confirmed in Section 3.9 (Clocks and startup) and Table 43 (PLL characteristics) of DS12992 Rev 4, with timing validated across –40°C to 85°C ambient and 1.7–3.6 V supply range.
Does the STM32G031C4T6 support USB connectivity?
No, the STM32G031C4T6 does not include a USB peripheral. Its communication interfaces are limited to two I²C, two USART, one LPUART, and two SPI ports - as explicitly listed in Table 2 (Device features and peripheral counts) and Section 3.19–3.21 of the datasheet. USB functionality requires higher-series variants like STM32G071 or G0B1.
Can the STM32G031C4T6 operate from a 3.3 V supply with 5 V-tolerant I/Os?
Yes - the device operates from 1.7–3.6 V and features multiple 5 V-tolerant GPIOs (e.g., PA0–PA7, PB0–PB1) as specified in Section 5.3.14 (I/O port characteristics) and Table 52 (Input characteristics of FT_e I/Os). These pins tolerate 5 V even when VDD = 3.3 V, enabling direct interfacing with legacy 5 V logic without level shifters.
What debug interface does the STM32G031C4T6 use?
The STM32G031C4T6 uses Serial Wire Debug (SWD) with two dedicated pins: SWDIO (PA13) and SWCLK (PA14). This is documented in Section 3.22.1 and Figure 13 (Pin layout - TSSOP20), supporting full programming, real-time debugging, and trace via ST-LINK/V2 or CMSIS-DAP compliant adapters.
STM32G031C4T6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 48-LQFP
- Series:
- STM32G0
- Packaging:
- Tray
- Product Status:
- Active
- Programmable:
- Not Verified
- Core Processor:
- ARM® Cortex®-M0+
- Core Size:
- 32-Bit Single-Core
- Speed:
- 64MHz
- Connectivity:
- I2C, IrDA, LINbus, SPI, SmartCard, UART/USART
- Peripherals:
- Brown-out Detect/Reset, DMA, I2S, POR, PWM, WDT
- Number of I/O:
- 44
- Program Memory Size:
- 16KB (16K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 8K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.7V ~ 3.6V
- Data Converters:
- A/D 19x12b SAR
- Oscillator Type:
- External, Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32G031C4T6 FAQ
1.How can I place an order for STM32G031C4T6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32G031C4T6 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 STM32G031C4T6 reliable?
The price and inventory of STM32G031C4T6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G031C4T6 is usually 5 days.
3.What payment methods are accepted for STM32G031C4T6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G031C4T6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32G031C4T6?
STM32G031C4T6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32G031C4T6 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 STM32G031C4T6?
For technical support, including STM32G031C4T6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G031C4T6 requirements.
6.How does Aetrix verify that STM32G031C4T6 is sourced from the original manufacturer or authorized distributors?
All STM32G031C4T6 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 STM32G031C4T6 meets industry standards.
7.What is the process for return or replacement of STM32G031C4T6?
All STM32G031C4T6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32G031C4T6, 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 STM32G031C4T6 part is unused and in its original packaging.
Return procedure for STM32G031C4T6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32G031C4T6 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…

