STM32G031G8U6 - 64KB Flash ARM Cortex-M0+ MCU | STMicroelectronics
MPN: STM32G031G8U6 β Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.15 | $2.15 |
| 10 | $1.93 | $19.30 |
| 100 | $1.72 | $172.00 |
| 500 | $1.55 | $775.00 |
| 1,000 | $1.38 | $1,380.00 |
Drop-in alternatives for STM32G031G8U6 β same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Quick Comparison Tool β Select alternative parts for side-by-side comparison:
STM32G031G6U6
β Drop-Inπ Reference alternative (not in catalog)
STM32G031G8U6
β Drop-Inβ In Stock
$1.38 / Unit
View Datasheet βSTM32G031G8U6
β Drop-Inβ In Stock
$1.38 / Unit
View Datasheet βLPC812M101JDH16
β Drop-Inπ Reference alternative (not in catalog)
EFM8BB21F16G-A-QFN28
β Drop-Inπ Reference alternative (not in catalog)
STM32G031G8U6 Maximum Ratings & Electrical Characteristics
| Core | ARM Cortex-M0+ |
| Core Frequency | 64 MHz |
| Flash Memory | 64 KB |
| SRAM | 8 KB |
| Package | UFQFPN-28 (4x4 mm) |
| Supply Voltage | 1.7V to 3.6V |
| ADC Resolution | 12-bit |
| ADC Sampling Rate | 2.5 MSPS |
| DAC Resolution | 12-bit |
| Operational Amplifier | 1 |
| Low-Power RTC | Yes |
| Standby Current | 0.4 uA |
| Operating Temperature | -40C to +85C |
| Process Technology | 90nm |
| Communication Interfaces | I2C, SPI, USART |
| Timers | Multiple (including advanced-control) |
| Memory Protection Unit | Yes |
| Hardware Multiplier | Single-cycle |
| RoHS Status | Compliant |
STM32G031G8U6 Pin Configuration
| Pin 1 | VBAT β Battery backup supply for RTC |
| Pin 2 | PC14 β GPIO / OSC32_IN |
| Pin 3 | PC15 β GPIO / OSC32_OUT |
| Pin 4 | NRST β Reset (active low) |
| Pin 5 | VDDA β Analog power supply |
| Pin 6 | PA0 β GPIO / ADC_IN0 |
| Pin 7 | PA1 β GPIO / ADC_IN1 |
| Pin 8 | PA2 β GPIO / USART2_TX |
| Pin 9 | PA3 β GPIO / USART2_RX |
| Pin 10 | PA4 β GPIO / DAC_OUT |
| Pin 11 | PA5 β GPIO / SPI1_SCK |
| Pin 12 | PA6 β GPIO / SPI1_MISO |
| Pin 13 | PA7 β GPIO / SPI1_MOSI |
| Pin 14 | PB0 β GPIO / ADC_IN8 |
| Pin 15 | PB1 β GPIO / ADC_IN9 |
| Pin 16 | PB2 β GPIO / BOOT1 |
| Pin 17 | PB10 β GPIO / I2C2_SCL |
| Pin 18 | PB11 β GPIO / I2C2_SDA |
| Pin 19 | VSS β Ground |
| Pin 20 | VDD β Digital power supply |
| Pin 21 | PA13 β GPIO / SWDIO |
| Pin 22 | PA14 β GPIO / SWCLK |
| Pin 23 | PA15 β GPIO / TIM2_CH1 |
| Pin 24 | PB3 β GPIO / TIM2_CH2 |
| Pin 25 | PB4 β GPIO / TIM3_CH1 |
| Pin 26 | PB5 β GPIO / TIM3_CH2 |
| Pin 27 | PB6 β GPIO / I2C1_SCL |
| Pin 28 | PB7 β GPIO / I2C1_SDA |
Safe Operating Area (SOA) & Thermal Characteristics
No official SOA curve available for this digital IC. Always operate within absolute maximum ratings specified in the datasheet. Ensure adequate cooling and derate as needed.
Typical Applications
STM32G031G8U6 is suitable for 6 applications: Sensor Hub, Smart Home Device, Portable Medical Monitor, Industrial Automation Controller, IoT Edge Node, Consumer Electronics.
Sensor Hub
The STM32G031G8U6 is ideal for sensor hubs due to its low power consumption and rich analog peripherals. Its 12-bit ADC with hardware oversampling enables precise sensor data acquisition, while the I2C and SPI interfaces connect to various sensors. The Cortex-M0+ core efficiently processes sensor data, and the low-power modes extend battery life in portable sensor nodes. In a typical sensor hub, the MCU reads temperature, humidity, and motion sensors, aggregates the data, and communicates via I2C or SPI to a central gateway. The wide supply voltage range (1.7V to 3.6V) allows direct battery operation, and the standby current of 0.4 uA ensures minimal power draw when idle. Designers should place decoupling capacitors close to VDD and use the Stop mode with wake-up on sensor interrupts to minimize average current.
Recommended
Smart Home Device
The STM32G031G8U6 is well-suited for smart home devices such as smart thermostats, lighting controllers, and security sensors. Its low power consumption and multiple low-power modes enable battery-powered operation for years. The device's communication interfaces (I2C, SPI, USART) allow connectivity with Wi-Fi or BLE modules, while the 12-bit ADC reads analog sensors like thermistors or light sensors. The Cortex-M0+ core provides sufficient processing power for control algorithms and user interface handling. In a smart thermostat, the MCU reads temperature, controls a relay or TRIAC for heating/cooling, and communicates with a cloud server via a Wi-Fi module. The wide operating temperature range (-40C to +85C) ensures reliable operation in various home environments. Designers should utilize the Stop mode with wake-up on external interrupts to minimize power consumption when the device is idle.
Recommended
Portable Medical Monitor
The STM32G031G8U6 is suitable for portable medical monitors like pulse oximeters, glucose meters, and ECG monitors. Its low power consumption and compact UFQFPN-28 package make it ideal for wearable devices. The 12-bit ADC with up to 2.5 MSPS sampling rate captures physiological signals with high resolution, while the operational amplifier conditions weak sensor signals. The device's low supply voltage (1.7V to 3.6V) allows operation from a single coin cell battery. In a pulse oximeter, the MCU drives an LED, reads the photodetector signal through the ADC, calculates oxygen saturation, and displays the result on an OLED. The low-power modes extend battery life, and the wide temperature range ensures operation in clinical environments. Designers should ensure proper analog grounding and use the internal reference for accurate ADC measurements.
Recommended
Industrial Automation Controller
The STM32G031G8U6 is used in industrial automation controllers for tasks like motor control, process monitoring, and PLCs. Its advanced-control timers generate PWM signals for motor drivers, and the 12-bit ADC reads current and voltage sensors for feedback. The device's robust communication interfaces (USART, SPI, I2C) enable connection to industrial networks like Modbus. The wide operating temperature range (-40C to +85C) and high reliability make it suitable for factory floors. In a motor control application, the MCU generates PWM signals, reads encoder feedback, and implements PID control algorithms. The single-cycle hardware multiplier enhances real-time performance. Designers should use the MPU for safety-critical applications and ensure proper decoupling for noise immunity in industrial environments.
Recommended
IoT Edge Node
The STM32G031G8U6 is an excellent choice for IoT edge nodes that collect data and transmit it to the cloud. Its low power consumption and multiple low-power modes enable battery-powered operation for extended periods. The device's communication interfaces (I2C, SPI, USART) connect to sensors and wireless modules like LoRa or BLE. The 12-bit ADC reads analog sensors, and the Cortex-M0+ core processes data locally to reduce cloud communication. In a typical IoT edge node, the MCU wakes up periodically, reads sensors, processes data, and transmits it via a LoRa module. The standby current of 0.4 uA ensures minimal power draw between transmissions. Designers should utilize the Stop mode with wake-up on RTC or external interrupts to achieve long battery life.
Recommended
Consumer Electronics
The STM32G031G8U6 is used in consumer electronics like remote controls, toys, and small appliances. Its low cost and compact package make it ideal for high-volume products. The device's rich peripheral set includes timers for PWM dimming, ADC for touch sensing, and communication interfaces for connectivity. The wide supply voltage range (1.7V to 3.6V) allows operation from two AA batteries. In a remote control, the MCU scans keypad inputs, encodes IR signals, and transmits them via an IR LED. The low-power modes extend battery life, and the small footprint reduces PCB size. Designers should use the internal RC oscillator to reduce BOM cost and ensure proper ESD protection on exposed pins.
Recommended
Recommended Products Summary
Engineering reference data for STM32G031G8U6 β comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | STM32G031G6U6 | LPC812M101JDH16 | EFM8BB21F16G-A-QFN28 |
|---|---|---|---|---|
| Package | UFQFPN-28 | UFQFPN-28 | UFQFPN-28 | QFN-28 |
| Brand | STMicroelectronics | STMicroelectronics | NXP Semiconductors | Silicon Labs |
| Core | ARM Cortex-M0+ | ARM Cortex-M0+ | ARM Cortex-M0+ | 8051 |
| Core Frequency | 64 MHz | 64 MHz | 30 MHz | 50 MHz |
| Flash Memory | 64 KB | 32 KB | 16 KB | 16 KB |
| SRAM | 8 KB | 8 KB | 4 KB | 2 KB |
| ADC Resolution | 12-bit | 12-bit | 12-bit | 12-bit |
| Supply Voltage | 1.7V to 3.6V | 1.7V to 3.6V | 1.8V to 3.6V | 2.2V to 3.6V |
Key Differentiators
- Higher Flash memory (64 KB) compared to alternatives (vs LPC812M101JDH16)
- Wider supply voltage range (1.7V to 3.6V) (vs EFM8BB21F16G-A-QFN28)
- Higher core frequency (64 MHz) (vs LPC812M101JDH16)
Design Notes
Decouple each VDD pin with a 100nF ceramic capacitor placed as close as possible to the pin. Additionally, use a 4.7uF capacitor on the main VDD rail. For VDDA, connect a 1uF capacitor to ground and ensure a clean analog supply. If VREF+ is used, connect it to VDDA for full-scale ADC reference.
For the UFQFPN-28 package, ensure the exposed pad (EP) is soldered to a ground plane for thermal and electrical performance. Use a 0.3mm via array under the pad for heat dissipation. Keep high-speed traces short and avoid routing under the crystal oscillator area.
Do not leave the NRST pin floating; connect a 100nF capacitor to ground and a 10k ohm pull-up resistor to VDD. For low-power applications, configure unused GPIOs as analog inputs to avoid leakage. Ensure the BOOT0 pin is properly set to boot from Flash (tied to GND).
Compliance Information
RoHS compliant per STMicroelectronics product page. Not AEC-Q100 qualified - this is a general-purpose MCU.