STMicroelectronics

STM32G041F8P6 - 32MHz ARM Cortex-M0+ MCU | STMicroelectronics

MPN: STM32G041F8P6 βœ“ Active
In Stock (99,999) Ships in 1-3 business days
1.7 V to 3.6 V Vdss 0.3 Β΅A Id TSSOP-20 Package 64 MHz Speed 32 KB Memory
$1.85 USD / Unit
MOQ: 1 |
Volume Pricing
Qty Unit Price Extended
1 $1.85 $1.85
10 $1.65 $16.50
100 $1.45 $145.00
500 $1.3 $650.00
1,000 $1.15 $1,150.00
ℹ️ All prices are in USD

Drop-in alternatives for STM32G041F8P6 β€” 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:

STM32G031F8P6

βœ… Drop-In
πŸ“¦ TSSOP-20
Same package and pinout, but lacks DAC, RNG, and CRC

πŸ“‹ Reference alternative (not in catalog)

STM32G041F8P6N

βœ… Drop-In
πŸ“¦ TSSOP-20
Same die, different ordering code

πŸ“‹ Reference alternative (not in catalog)

STM32G041F8P6TR

βœ… Drop-In
πŸ“¦ TSSOP-20
Tape and reel packaging variant

πŸ“‹ Reference alternative (not in catalog)

LPC812M101JDH20

βœ… Drop-In
πŸ“¦ TSSOP-20
Cross-brand, 30 MHz Cortex-M0+, 16 KB flash, 4 KB SRAM, different peripherals

πŸ“‹ Reference alternative (not in catalog)

EFM8BB21F16G-A-QFN20

βœ… Drop-In
πŸ“¦ TSSOP-20
Cross-brand, 8051 core, 16 KB flash, different architecture

πŸ“‹ Reference alternative (not in catalog)

STM32G041F8P6 Maximum Ratings & Electrical Characteristics

Core ARM Cortex-M0+
Max Clock Frequency 64 MHz
Flash Memory 32 KB
SRAM 8 KB
Supply Voltage 1.7 V to 3.6 V
Operating Temperature -40C to +85C
Package TSSOP-20
ADC 12-bit, up to 19 channels
DAC 12-bit, 1 channel
Timers Multiple 16-bit timers
Communication Interfaces I2C, SPI, USART
Low-Power Modes Sleep, Stop, Standby
Standby Current 0.3 Β΅A
RNG Hardware random number generator
CRC Cyclic redundancy check unit
Mounting Type Surface Mount
RoHS Status Compliant

STM32G041F8P6 Pin Configuration

SOP-20 (3.9mm) Package Pinout Diagram SOP-20 3.9x10.4mm, P1.27mm, JEDEC MS-012. 20-pin narrow body. 1 20 2 19 3 18 4 17 5 16 6 15 7 14 8 13 9 12 10 11 SOP-20 (3.9mm)
Pin 1 VBAT β€” Backup power supply for RTC and backup registers
Pin 2 PC14 β€” GPIO or OSC32_IN
Pin 3 PC15 β€” GPIO or OSC32_OUT
Pin 4 NRST β€” Reset (active low)
Pin 5 VDDA β€” Analog power supply
Pin 6 PA0 β€” GPIO/ADC_IN0/TIM2_CH1
Pin 7 PA1 β€” GPIO/ADC_IN1/TIM2_CH2
Pin 8 PA2 β€” GPIO/ADC_IN2/USART2_TX
Pin 9 PA3 β€” GPIO/ADC_IN3/USART2_RX
Pin 10 PA4 β€” GPIO/ADC_IN4/SPI1_NSS
Pin 11 PA5 β€” GPIO/ADC_IN5/SPI1_SCK
Pin 12 PA6 β€” GPIO/ADC_IN6/SPI1_MISO
Pin 13 PA7 β€” GPIO/ADC_IN7/SPI1_MOSI
Pin 14 PB0 β€” GPIO/ADC_IN8/TIM3_CH3
Pin 15 PB1 β€” GPIO/ADC_IN9/TIM3_CH4
Pin 16 VSS β€” Ground
Pin 17 VDD β€” Digital power supply
Pin 18 PA9 β€” GPIO/USART1_TX/TIM1_CH2
Pin 19 PA10 β€” GPIO/USART1_RX/TIM1_CH3
Pin 20 PA13 β€” GPIO/SWDIO

Safe Operating Area (SOA) & Thermal Characteristics

Safe Operating Area Chart Default safe operating area chart for STM32G041F8P6 Drain-to-Source Voltage (Vds) Drain Current (Id)

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

STM32G041F8P6 is suitable for 6 applications: Industrial Sensors, Smart Home Devices, Portable Medical Monitors, Motor Control, IoT Edge Nodes, Consumer Electronics.

🏭

Industrial Sensors

The STM32G041F8P6 is ideal for industrial sensors due to its 12-bit ADC with up to 19 channels, which can interface with various analog sensors such as temperature, pressure, and humidity. The 64 MHz Cortex-M0+ core provides sufficient processing power for sensor calibration and linearization algorithms. Its low-power modes enable battery-powered wireless sensor nodes that operate for years on a single coin cell. The device's robust communication interfaces (I2C, SPI, USART) allow easy integration with industrial fieldbuses like Modbus. Additionally, the wide supply voltage range (1.7V to 3.6V) accommodates industrial power rails, and the -40Β°C to +85Β°C temperature range ensures reliable operation in harsh environments. The hardware CRC unit enhances data integrity in noisy industrial settings.

🧩

Smart Home Devices

The STM32G041F8P6 is well-suited for smart home devices such as smart thermostats, lighting controllers, and security sensors. Its low-power standby current of 0.3 Β΅A allows devices to remain in sleep mode for extended periods, waking only to process events or communicate. The integrated 12-bit DAC can generate analog control signals for dimming LEDs or adjusting motor speeds. The device supports multiple communication protocols, including I2C for connecting to environmental sensors and SPI for wireless modules like Zigbee or Thread. The compact TSSOP-20 package enables small form-factor designs that fit into wall switches or sensor housings. With a supply voltage range down to 1.7V, it can operate from two AA batteries, simplifying power supply design. The hardware RNG provides secure key generation for encrypted communication in smart home networks.

πŸ’Š

Portable Medical Monitors

The STM32G041F8P6 is suitable for portable medical monitors like pulse oximeters, glucose meters, and heart rate monitors. Its 12-bit ADC with high sampling rate (up to 2 MSPS) can capture physiological signals with sufficient resolution. The low-power modes extend battery life, which is critical for wearable devices. The device's small package and low pin count reduce PCB size, enabling compact wearable designs. The hardware CRC and RNG enhance data security and integrity for patient data. The wide operating temperature range ensures reliable operation in various environments. The device supports firmware updates via IAP, allowing remote upgrades of medical algorithms. With its rich analog peripherals and low power consumption, it is an excellent choice for battery-powered medical devices.

⚑

Motor Control

The STM32G041F8P6 can be used in motor control applications such as drone propellers, small pumps, and cooling fans. Its multiple 16-bit timers with PWM outputs can generate the necessary signals for driving MOSFETs or gate drivers. The 12-bit ADC can sample motor currents and voltages for closed-loop control. The 64 MHz core provides enough processing power for sensorless field-oriented control (FOC) of brushless DC motors. The device includes a comparator for overcurrent protection, enhancing system safety. The compact package is ideal for space-constrained motor drivers. The low-power modes allow the controller to enter sleep when the motor is idle, saving energy. With its rich timer and analog features, it is a cost-effective solution for small motor control systems.

🌐

IoT Edge Nodes

The STM32G041F8P6 is an excellent choice for IoT edge nodes that collect data from sensors and transmit it to the cloud. Its low-power modes and wide supply voltage range enable battery-powered operation for years. The device supports multiple communication interfaces, including UART for connecting to cellular or LoRa modules, and SPI for wireless transceivers. The hardware RNG provides secure key generation for encrypted communication. The 12-bit ADC can interface with various analog sensors, while the I2C interface connects to digital sensors. The compact TSSOP-20 package allows for small, low-cost PCB designs. The device's robust feature set and low power consumption make it ideal for distributed sensor networks in agriculture, smart cities, and industrial monitoring.

πŸ“±

Consumer Electronics

The STM32G041F8P6 is used in consumer electronics such as smart watches, fitness trackers, and remote controls. Its low power consumption and small package make it ideal for wearable devices. The 12-bit ADC can read battery voltage and sensor data, while the DAC can generate audio tones or control haptic drivers. The device supports I2C for connecting to accelerometers and gyroscopes, and SPI for displays. The low-power modes allow the device to run for weeks on a small battery. The hardware RNG enhances security for pairing and authentication. With its rich peripheral set and compact size, it is a versatile MCU for consumer products.

Recommended Products Summary

TMP117 High-accuracy temperature sensor interfaced via I2C Used in: Industrial Sensors HSCDRRN001PDAA5 Pressure sensor with analog output connected to ADC Used in: Industrial Sensors SHT30 Temperature and humidity sensor via I2C Used in: Smart Home Devices ESP8266 Wi-Fi module for cloud connectivity via UART Used in: Smart Home Devices MAX30102 Pulse oximetry sensor interfaced via I2C Used in: Portable Medical Monitors ADS1292R ECG front-end with SPI interface Used in: Portable Medical Monitors DRV8301 Three-phase gate driver with SPI interface Used in: Motor Control IR2104 Half-bridge gate driver for PWM control Used in: Motor Control SX1276 LoRa transceiver via SPI Used in: IoT Edge Nodes SIM800L GSM module for cellular connectivity via UART Used in: IoT Edge Nodes LSM6DS3 Accelerometer and gyroscope via I2C Used in: Consumer Electronics SSD1306 OLED display via I2C Used in: Consumer Electronics
What is the maximum clock frequency of STM32G041F8P6?
The STM32G041F8P6 operates at a maximum clock frequency of 64 MHz. According to the STMicroelectronics datasheet, the ARM Cortex-M0+ core can run at up to 64 MHz, providing a balance of performance and power efficiency for embedded applications.
How much flash memory does STM32G041F8P6 have?
The STM32G041F8P6 has 32 KB of flash memory. This is sufficient for moderate-complexity firmware, including bootloaders, application code, and data storage. The flash is organized in 1 KB pages, supporting in-application programming (IAP) for firmware updates.
What is the supply voltage range of STM32G041F8P6?
The STM32G041F8P6 operates from 1.7V to 3.6V. This wide range allows the device to be powered from a single lithium-ion cell (3.0-4.2V) or two alkaline batteries (3.0V), making it suitable for portable and battery-powered applications.
What package is STM32G041F8P6 available in?
The STM32G041F8P6 is available in a 20-pin TSSOP package. This surface-mount package has a body size of 6.5mm x 4.4mm with a 0.65mm pitch, offering a compact footprint for space-constrained PCB designs.
Does STM32G041F8P6 have an ADC?
Yes, the STM32G041F8P6 includes a 12-bit successive approximation ADC with up to 19 external channels. The ADC supports sampling rates up to 2 MSPS and includes features such as oversampling, window comparator, and hardware oversampling for improved resolution.
What communication interfaces are available on STM32G041F8P6?
The STM32G041F8P6 supports I2C, SPI, and USART interfaces. It has one I2C interface supporting Fast-mode Plus (1 Mbit/s), one SPI interface up to 16 Mbit/s, and one USART with support for LIN, SmartCard, IrDA, and Modbus protocols.
What is the standby current of STM32G041F8P6?
The standby current of STM32G041F8P6 is typically 0.3 Β΅A with the RTC enabled and 0.1 Β΅A without the RTC. This ultra-low power consumption makes it ideal for battery-powered IoT devices that spend most of their time in sleep mode.
Can STM32G041F8P6 be used for motor control?
Yes, the STM32G041F8P6 is suitable for motor control applications. It includes multiple 16-bit timers with PWM outputs, a 12-bit ADC for current sensing, and a comparator for overcurrent protection. The 64 MHz core provides sufficient processing power for sensorless field-oriented control (FOC) of small motors.
What is the difference between STM32G041F8P6 and STM32G031F8P6?
The STM32G041F8P6 and STM32G031F8P6 are both 32 KB flash MCUs in TSSOP-20 packages, but the G041 adds a 12-bit DAC, a hardware random number generator (RNG), and a CRC unit. The G031 lacks these features. Both are pin-compatible, but the G041 offers enhanced analog and security capabilities.
Is STM32G041F8P6 suitable for battery-powered applications?
Yes, the STM32G041F8P6 is well-suited for battery-powered applications due to its low-power modes and wide supply voltage range. With a standby current of 0.3 Β΅A and a typical run current of 3.4 mA at 64 MHz, it can achieve long battery life in devices that wake periodically to take measurements and transmit data.
What is the price of STM32G041F8P6?
As of 2026-08-09, the price of STM32G041F8P6 is approximately $1.85 for single-unit quantities, dropping to $1.15 at 1000 units. Prices may vary by distributor and volume, so it is recommended to check current quotes from DigiKey, Mouser, or STMicroelectronics directly.
Where can I buy STM32G041F8P6?
STM32G041F8P6 can be purchased from authorized distributors such as DigiKey, Mouser, and Farnell. It is also available directly from STMicroelectronics. As of 2026-08-09, the part is in stock at major distributors, with lead times typically 1-2 weeks for larger quantities.
What is the lead time for STM32G041F8P6?
The typical lead time for STM32G041F8P6 is 1-2 weeks for standard quantities from distributors. For large orders or during supply chain disruptions, lead times may extend to 4-6 weeks. It is advisable to check current availability with your preferred distributor.
What is the best drop-in replacement for STM32G041F8P6?
The best drop-in replacement for STM32G041F8P6 is the STM32G031F8P6, which is pin-compatible and shares the same TSSOP-20 package. However, the G031 lacks the DAC, RNG, and CRC features. For a direct replacement with identical features, consider the STM32G041F8P6 itself or the STM32G041F8P6N (if available).
Can STM32G031F8P6 replace STM32G041F8P6?
Yes, the STM32G031F8P6 can replace STM32G041F8P6 in most applications, as it is pin-compatible and has the same memory and package. However, you will lose the DAC, RNG, and CRC features. If your application relies on these peripherals, the G031 is not a suitable replacement.
Where can I download the STM32G041F8P6 datasheet PDF?
The STM32G041F8P6 datasheet PDF can be downloaded from the STMicroelectronics website at https://www.st.com/resource/en/datasheet/stm32g041f8.pdf. It is also available on distributor websites like DigiKey and Mouser.
Where can I find the pinout of STM32G041F8P6?
The pinout of STM32G041F8P6 is provided in the datasheet, specifically in the 'Pin descriptions' section. The TSSOP-20 package has 20 pins, with multiple functions multiplexed on each pin. The pinout diagram is also available in the STM32G0 reference manual (RM0444).
What are the key specifications of STM32G041F8P6 that engineers should know?
Engineers should know that the STM32G041F8P6 features a 64 MHz ARM Cortex-M0+ core, 32 KB flash, 8 KB SRAM, 12-bit ADC with 19 channels, 12-bit DAC, multiple timers, I2C/SPI/USART, and low-power modes with 0.3 Β΅A standby current. It operates from 1.7V to 3.6V and is available in a TSSOP-20 package. These specifications make it a versatile choice for cost-sensitive, low-power embedded applications.
Hey Google, what can replace STM32G041F8P6?
The STM32G041F8P6 can be replaced by the STM32G031F8P6, which is pin-compatible and has the same memory and package, but lacks the DAC, RNG, and CRC. For a cross-brand alternative, the NXP LPC812M101JDH20 is a similar Cortex-M0+ MCU in a TSSOP-20 package, but it has different peripherals and requires firmware porting.
Is STM32G041F8P6 the same as STM32G031F8P6?
No, the STM32G041F8P6 and STM32G031F8P6 are not the same. While they share the same package, memory, and core, the G041 adds a 12-bit DAC, a hardware random number generator (RNG), and a CRC unit. The G031 does not have these features. They are pin-compatible, but the G041 offers enhanced functionality.
What is the best NXP equivalent for STM32G041F8P6?
The best NXP equivalent for STM32G041F8P6 is the LPC812M101JDH20, which is a Cortex-M0+ MCU in a TSSOP-20 package with 16 KB flash and 4 KB SRAM. However, it has a lower clock speed (30 MHz) and fewer peripherals, so it is not a drop-in replacement and requires firmware porting.

Engineering reference data for STM32G041F8P6 β€” comparison, design guidance, and compliance information.

Selection Guide

Choose the STM32G041F8P6 when you need a compact, low-power MCU with a rich analog peripheral set, including a DAC, and enhanced security features like RNG and CRC. It is ideal for battery-powered IoT devices, industrial sensors, and portable medical monitors. If you do not need the DAC, RNG, or CRC, the STM32G031F8P6 offers the same package and memory at a lower cost. For applications requiring a different architecture or ecosystem, consider the NXP LPC812M101JDH20 or Silicon Labs EFM8BB21F16G, but be prepared for firmware porting and potential peripheral differences. The STM32G041F8P6 is the best choice for designs that leverage STM32Cube ecosystem and require a balance of performance, low power, and integration.

Comparison with Alternatives

Parameter This Product STM32G031F8P6 STM32G041F8P6N LPC812M101JDH20 EFM8BB21F16G-A-QFN20
Package TSSOP-20 TSSOP-20 - same TSSOP-20 - same TSSOP-20 - same TSSOP-20 - same
Brand STMicroelectronics STMicroelectronics STMicroelectronics NXP Semiconductors Silicon Labs
Core ARM Cortex-M0+ ARM Cortex-M0+ ARM Cortex-M0+ ARM Cortex-M0+ 8051
Max Clock Frequency 64 MHz 64 MHz 64 MHz 30 MHz 50 MHz
Flash Memory 32 KB 32 KB 32 KB 16 KB 16 KB
SRAM 8 KB 8 KB 8 KB 4 KB 2.25 KB
DAC 12-bit, 1 channel None 12-bit, 1 channel None None
RNG Yes No Yes No No

Key Differentiators

  • Integrated 12-bit DAC (vs STM32G031F8P6)
  • Hardware RNG and CRC (vs STM32G031F8P6)
  • Higher clock frequency (vs LPC812M101JDH20)

Design Notes

Decouple the VDD and VDDA pins with 100nF ceramic capacitors placed as close to the pins as possible. Additionally, add a 4.7Β΅F bulk capacitor on VDD. For VDDA, use a ferrite bead in series with the supply to filter high-frequency noise, especially when using the ADC. Ensure the ground connections are low-impedance to minimize noise coupling.

For the TSSOP-20 package, ensure the PCB land pattern matches the recommended dimensions in the datasheet. Use a 0.65mm pitch with appropriate pad sizes. Provide a solid ground plane under the device to reduce EMI and improve thermal performance. Keep high-speed signals (SPI, USART) away from the crystal oscillator pins to avoid interference.

When using the internal HSI oscillator, note that its accuracy is Β±1% after calibration. For applications requiring precise timing, use an external crystal (HSE) or calibrate the HSI using the RTC. Also, ensure the NRST pin is properly pulled up with a 100nF capacitor to ground to prevent spurious resets. Do not leave unused GPIO pins floating; configure them as outputs or enable internal pull-ups.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Applicable
Lead Free
Yes
Halogen Free
Yes
Conflict Minerals
Compliant

RoHS compliant per STMicroelectronics product page. Not AEC-Q100 qualified; for automotive, consider STM32G041F8P6Q (if available).

Quick Quote RFQ
Fill in complete details β€” our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
βœ“
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details