Loads when you scroll to it. Unloads after 5 minutes in the background.

Symbol & Footprint

Schematic Symbol

Open full view ↗
Loads when you scroll to it. Unloads after 5 minutes in the background.

PCB Footprint

Open full view ↗
Loads when you scroll to it. Unloads after 5 minutes in the background.
Loads when you scroll to it. Unloads after 5 minutes in the background.
Download PDF
Contents

README

markdown

STM32G041F8P6

STMicroelectronics · Microcontrollers (MCU/MPU/SOC) · TSSOP-20

STM32G041F8P6 from STMicroelectronics, in a TSSOP-20. Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model, then checked against ST open pin data); symbol, footprint, and 3D from KiCad-official CAD.

Pinout

Pin Name Type Function
1 PB7/PB8 bidirectional 5 V-tolerant Fm+-capable I/O bonded as PB7 (FT_fa; USART1_RX, I2C1_SDA, PVD_IN, ADC_IN11) or PB8 (FT_f; SPI2_SCK, TIM16_CH1, I2C1_SCL) depending on the variant.
2 PB9/PC14-OSC32_IN bidirectional Pin 2 is bonded as PB9 (5 V-tolerant Fm+-capable I/O; IR_OUT, TIM17_CH1, SPI2_NSS, I2C1_SDA) or as PC14 (5 V-tolerant GPIO supplied through the RTC power switch, limited to 3 mA sink, and usable as OSC32_IN), and PC14 output use is limited to 2 MHz at 30 pF and must not source LED current.
3 PC15-OSC32_OUT bidirectional 5 V-tolerant GPIO supplied through the RTC power switch (3 mA limit) that serves as the LSE OSC32_OUT output; in output mode it must not exceed 2 MHz at 30 pF and must not be used as a current source.
4 VDD/VDDA power_in Main supply pin for VDD (1.7 V to 3.6 V) that also supplies VDDIO1 and the analog domain, with VDDA at 1.62 V minimum for the ADC and 2.4 V minimum for VREFBUF.
5 VSS/VSSA power_in Ground pin; all device voltages are referenced to VSS and it must be connected to the external ground.
6 PF2-NRST bidirectional Active-low reset pin with embedded weak pull-up (25 to 55 kΩ) whose input low level is up to 0.3 × VDDIO1 and whose input pulses shorter than 70 ns are filtered.
7 PA0 bidirectional 5 V-tolerant analog-capable I/O (FT_a) with ADC_IN0, TAMP_IN2 and WKUP1 functions, alternates SPI2_SCK, USART2_CTS, TIM2_CH1_ETR and LPTIM1_OUT.
8 PA1 bidirectional 5 V-tolerant analog-capable I/O (FT_ea) with ADC_IN1 and a switchable diode to VDD, alternates SPI1_SCK/I2S1_CK, USART2_RTS_DE_CK, TIM2_CH2, I2C1_SMBA and EVENTOUT.
9 PA2 bidirectional 5 V-tolerant analog-capable I/O (FT_a) with ADC_IN2, WKUP4 and LSCO functions, alternates SPI1_MOSI/I2S1_SD, USART2_TX, TIM2_CH3 and LPUART1_TX.
10 PA3 bidirectional 5 V-tolerant analog-capable I/O (FT_ea) with ADC_IN3, alternates SPI2_MISO, USART2_RX, TIM2_CH4, LPUART1_RX and EVENTOUT.
11 PA4 bidirectional 5 V-tolerant analog-capable I/O (FT_a) with ADC_IN4, TAMP_IN1, RTC_TS, RTC_OUT1 and WKUP2 functions, alternates SPI1_NSS/I2S1_WS, SPI2_MOSI, TIM14_CH1 and LPTIM2_OUT.
12 PA5 bidirectional 5 V-tolerant analog-capable I/O (FT_ea) with ADC_IN5, alternates SPI1_SCK/I2S1_CK, TIM2_CH1_ETR, LPTIM2_ETR and EVENTOUT.
13 PA6 bidirectional 5 V-tolerant analog-capable I/O (FT_ea) with ADC_IN6, alternates SPI1_MISO/I2S1_MCK, TIM3_CH1, TIM1_BKIN, TIM16_CH1 and LPUART1_CTS.
14 PA7 bidirectional 5 V-tolerant analog-capable I/O (FT_a) with ADC_IN7, alternates SPI1_MOSI/I2S1_SD, TIM3_CH2, TIM1_CH1N, TIM14_CH1 and TIM17_CH1.
15 PB0/PB1/PB2/PA8 bidirectional Pin 15 is bonded as PB0 (FT_ea, ADC_IN8), PB1 (FT_ea, ADC_IN9), PB2 (FT_ea, ADC_IN10) or PA8 (5 V-tolerant GPIO with MCO, SPI2_NSS, TIM1_CH1, LPTIM2_OUT alternates) depending on the variant.
16 PA11 [PA9] bidirectional 5 V-tolerant Fm+-capable analog I/O (FT_fa, ADC_IN15) that is PA11 by default (SPI1_MISO/I2S1_MCK, USART1_CTS, TIM1_CH4, I2C2_SCL) and can be remapped to PA9 through SYSCFG_CFGR1.
17 PA12 [PA10] bidirectional 5 V-tolerant Fm+-capable analog I/O (FT_fa, ADC_IN16) that is PA12 by default (SPI1_MOSI/I2S1_SD, USART1_RTS_DE_CK, TIM1_ETR, I2C2_SDA) and can be remapped to PA10 through SYSCFG_CFGR1.
18 PA13 bidirectional 5 V-tolerant analog-capable I/O (FT_ea, ADC_IN17) that is configured as SWDIO after reset with the internal pull-up activated, with alternates IR_OUT and EVENTOUT.
19 PA15/PA14-BOOT0 bidirectional Pin 19 is bonded as PA14-BOOT0 (FT_a, ADC_IN18; SWCLK after reset with internal pull-down, and BOOT0 boot-mode pin) or as PA15 (5 V-tolerant GPIO; SPI1_NSS/I2S1_WS, USART2_RX, TIM2_CH1_ETR) depending on the variant.
20 PB3/PB4/PB5/PB6 bidirectional 5 V-tolerant I/O bonded as PB3 (SPI1_SCK/I2S1_CK, TIM1_CH2, TIM2_CH2), PB4 (SPI1_MISO/I2S1_MCK, TIM3_CH1, USART1_CTS), PB5 (WKUP6, SPI1_MOSI/I2S1_SD, TIM3_CH2, I2C1_SMBA) or PB6 (FT_f Fm+-capable; USART1_TX, TIM1_CH3, I2C1_SCL) depending on the variant.

Key specifications

Parameter Value
Manufacturer STMicroelectronics
Package TSSOP-20
Category Embedded Processors & Controllers
Pins 20

Electrical characteristics

Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).

Parameter Symbol Min Typ Max Unit Conditions Page
External supply voltage VDD -0.3 4 V 46
External supply voltage on VBAT pin VBAT -0.3 4 V 46
External voltage on VREF+ pin VREF+ -0.3 V Max printed as Min(VDD + 0.4, 4.0) 46
Input voltage on FT_xx VIN -0.3 V Max printed as VDD + 4.0; see note 2 (pull-up/pull-down must be disabled above 4 V) 46
Input voltage on any other pin VIN -0.3 4 V 46
Current into VDD/VDDA power pin (source) IVDD/VDDA 100 mA 46
Output current sunk by any I/O and control pin except FT_f IIO(PIN) 15 mA 46
Output current sunk by any FT_f pin IIO(PIN) 20 mA 46
Output current sourced by any I/O and control pin IIO(PIN) 15 mA 46
Total output current sunk by sum of all I/Os and control pins ∑IIO(PIN) 80 mA 46
Total output current sourced by sum of all I/Os and control pins ∑IIO(PIN) 80 mA 46
Injected current on a FT_xx pin IINJ(PIN) -5 mA Max printed as NA 46
Total injected current (sum of all I/Os and control pins) ∑/IINJ(PIN)/ 25 mA 46
Storage temperature range TSTG -65 150 °C 47
Maximum junction temperature TJ 150 °C 47
Internal AHB clock frequency fHCLK 0 64 MHz 47
Internal APB clock frequency fPCLK 0 64 MHz 47
Standard operating voltage VDD 1.7 3.6 V Standard operating voltage 47
Analog supply voltage VDDA 1.62 3.6 V For ADC operation 47
Analog supply voltage VDDA 2.4 3.6 V For VREFBUF operation 47
Backup operating voltage VBAT 1.55 3.6 V 47
I/O input voltage VIN -0.3 V Max printed as Min(VDD + 3.6, 5.5) 47
Ambient temperature TA -40 85 °C Suffix 6 47
Junction temperature TJ -40 105 °C Suffix 6 47
VDD slew rate tVDD 10 µs/V VDD falling; ULPEN = 0; max printed as ∞ 48
VDD slew rate tVDD 100 ms/V VDD falling; ULPEN = 1; max printed as ∞ 48
POR temporization when VDD crosses VPOR tRSTTEMPO 250 400 µs VDD rising 48
Power-on reset threshold VPOR 1.62 1.66 1.7 V 48
Power-down reset threshold VPDR 1.6 1.64 1.69 V 48
Brownout reset threshold 1 VBOR1 2.05 2.1 2.18 V VDD rising 48
Brownout reset threshold 1 VBOR1 1.95 2 2.08 V VDD falling 48
Brownout reset threshold 2 VBOR2 2.2 2.31 2.38 V VDD rising 48
Brownout reset threshold 2 VBOR2 2.1 2.21 2.28 V VDD falling 48
Brownout reset threshold 3 VBOR3 2.5 2.62 2.68 V VDD rising 48
Brownout reset threshold 3 VBOR3 2.4 2.52 2.58 V VDD falling 48
Brownout reset threshold 4 VBOR4 2.8 2.91 3 V VDD rising 49
Brownout reset threshold 4 VBOR4 2.7 2.81 2.9 V VDD falling 49
Internal reference voltage VREFINT 1.182 1.212 1.232 V -40°C < TJ < 130°C 49
Start time of reference voltage buffer when ADC is enabled tstart_vrefint 8 12 µs 49
VREFINT buffer consumption from VDD when converted by ADC IDD(VREFINTBUF) 12.5 20 µA 49
Internal reference voltage spread over the temperature range ∆VREFINT 5 7.5 mV VDD = 3 V 49
Temperature coefficient TCoeff_vrefint 30 50 ppm/°C 49
Long term stability ACoeff 300 1000 ppm 1000 hours, T = 25 °C 49
Voltage coefficient VDDCoeff 250 1200 ppm/V 3.0 V < VDD < 3.6 V 49
Supply current in Run mode IDD(Run) 5.2 6.7 mA Range 1; PLL enabled; fHCLK = fPLLRCLK; 64 MHz; Flash memory; 25 °C 51
Supply current in Sleep mode IDD(Sleep) 1.3 1.8 mA Range 1; Flash enabled; fHCLK = fPLLRCLK 64 MHz; all peripherals disabled; 25 °C 53
Supply current in Stop 0 mode IDD(Stop 0) 270 345 µA HSI kernel enabled; VDD 3 V; 25 °C 53
Supply current in Stop 0 mode IDD(Stop 0) 97 125 µA HSI kernel disabled; VDD 3 V; 25 °C 53
Supply current in Standby mode IDD(Standby) 0.2 0.9 µA RTC disabled; VDD 3.0 V; 25 °C 54
Supply current in Shutdown mode IDD(Shutdown) 25 800 nA RTC disabled; VDD 3.0 V; 25 °C 55
Wakeup time from Standby mode tWUSTBY 14.5 30 µs Transiting to Run mode; HCLK = HSI16 = 16 MHz; Regulator in Range 1 59
Wakeup time from Shutdown mode tWUSHDN 258 340 µs Transiting to Run mode; HCLK = HSI16 = 16 MHz; Regulator in Range 1 59
User external clock source frequency fHSE_ext 8 48 MHz Voltage scaling Range 1 60
Oscillator frequency fOSC_IN 4 8 48 MHz 61
HSE current consumption during startup IDD(HSE) 5.5 mA During startup 62
HSI16 Frequency fHSI16 15.88 16.08 MHz VDD=3.0 V, TA=30 °C 64
LSI frequency fLSI 29.5 34 kHz VDD = 1.62 V to 3.6 V, TA = -40 to 125 °C 65
PLL input clock frequency fPLL_IN 2.66 16 MHz 66
PLL lock time tLOCK 15 40 µs 66
64-bit programming time tprog 85 125 µs 66

CAD (KiCad official)

  • Symbol: STM32G041F8P6
  • Footprint: Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm
  • 3D model: TSSOP-20 (KiCad packages3D, STEP)
  • 3D model files: stm32g041f8p6-etched.step / stm32g041f8p6-etched.glb carry the MPN laser-etched on the die in a toggleable Adom.LaserEtch group (Fusion-ready); stm32g041f8p6.step / stm32g041f8p6.glb are the bare package body.

Provenance

Data extracted from the manufacturer datasheet, not a distributor listing:

  • Datasheet: STMicroelectronics datasheet (118 pp, sha256 586607fd294bd34f, retrieved 2026-11-10, tier: lcsc)
  • Extractor: parts-factory 2.0.0 / extract_pins 0.3, primary claude-haiku-5-5 (text), consensus claude-sonnet-5-5 (agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish.
  • CAD: KiCad official libraries (CC-BY-SA 4.0).

Datasheet PDF