STM32G031C6T6
Arm Cortex-M0+ 32-bit MCUThe STM32G031C6T6 is a arm cortex-m0+ 32-bit mcu from STMicroelectronics. View the full STM32G031C6T6 datasheet below including key specifications, absolute maximum ratings.
Official STM32G031C6T6 datasheet (PDF) — the source this page was extracted from.
Manufacturer
STMicroelectronicsCategory
Arm Cortex-M0+ 32-bit MCU
Package
48-LQFP
Lifecycle
Production (Last Updated: 1 month ago)
STM32G031C6T6 Key Specifications
| Parameter | Value |
|---|---|
| ADC Channels (Resolution) | 16-Ch 12-Bit |
| Case/Package | LFQFP |
| China RoHS | Compliant |
| Connectivity | I2C, IrDA, LINbus, SPI, SmartCard, UART/USART |
| Core Architecture | ARM Cortex-M0+ |
| Core Processor | ARM® Cortex®-M0+ |
| Core Size | 32-Bit |
| Data Converters | A/D 19x12b SAR |
| DigiKey Programmable | Not Verified |
| EEPROM Memory Size | 0 B |
| Flash Memory Size | 32 kB |
| Frequency | 64 MHz |
| Height - Seated (Max) | 1.6 mm |
| Introduction Date | 2019-07-10 |
| Length | 7 mm |
| Lifecycle Status | Production (Last Updated: 1 month ago) |
| Max Frequency | 64 MHz |
| Max Operating Temperature | 85 °C |
| Max Supply Current | 6.9 mA |
| Max Supply Voltage | 3.6 V |
| Memory Type | FLASH |
| Min Operating Temperature | -40 °C |
| Min Supply Voltage | 1.7 V |
| Mounting Type | Surface Mount |
| Nominal Supply Voltage (DC) | 1.8 V |
| Number of A/D Converters | 1 |
| Number of Channels | 16 |
| Number of I/O | 44 |
| Number of I/Os | 3 |
| Number of I2C Channels | 2 |
| Number of SPI Channels | 2 |
| Number of Terminals | 48 |
| Number of Timers/Counters | 9 |
| Number of USART Channels | 2 |
| Operating Temperature | -40°C ~ 85°C (TA) |
| Oscillator Type | External, Internal |
| Package / Case | 48-LQFP |
| Packaging | Tray |
| Peripherals | Brown-out Detect/Reset, DMA, I2S, POR, PWM, WDT |
| Peripherals | POR, RTC |
| Flash Memory Size | 32KB (32K x 8) |
| Program Memory Type | FLASH |
| RAM Size | 8 kB |
| RAM Size | 8K x 8 B |
| REACH SVHC | Unaffected |
| RoHS | Compliant |
| Clock Speed | 64MHz |
| Standard Pack Qty | 1500 |
| Supplier Device Package | 48-LQFP (7x7) |
| Terminal Pitch | 500 µm |
| Supply Voltage | 1.7V ~ 3.6V |
| Width | 7 mm |
STM32G031C6T6 Overview
Part: STM32G031C6T6 (STM32G031x4/x6/x8 family) — STMicroelectronics
Type: Arm Cortex-M0+ 32-bit MCU
Description: 32-bit Arm Cortex-M0+ MCU at up to 64 MHz with up to 64 KB Flash and 8 KB SRAM, 1.7–3.6 V supply, 12-bit ADC and 2x USART.
Operating Conditions:
- Supply voltage (VDD): 1.7–3.6 V
- Operating temperature: -40 to 85 °C (suffix 6; suffix 7 is -40 to 105 °C and suffix 3 is -40 to 125 °C)
- Max AHB/APB clock: 64 MHz
- Analog supply (VDDA): 1.62–3.6 V for ADC; 2.4–3.6 V for VREFBUF
Absolute Maximum Ratings:
- Max supply voltage (VDD): 4.0 V
- Max current into VDD/VDDA pin: 100 mA
- Max output current sunk by any I/O pin (except FT_f): 15 mA
- Max junction temperature: 150 °C
- Storage temperature: -65 to +150 °C
Key Specs:
- Standard operating voltage VDD: 1.7–3.6 V
- VBAT backup operating voltage: 1.55–3.6 V
- AHB/APB clock frequency: 0–64 MHz
- Junction temperature (suffix 6): -40 to 105 °C
- I/O input voltage (all except RST): -0.3 V to Min(VDD + 3.6, 5.5) V
- Total I/O output current, sunk or sourced: 80 mA
- 12-bit, 0.4 μs ADC with up to 16 external channels, conversion range 0 to 3.6 V
Features:
- Arm Cortex-M0+ CPU up to 64 MHz
- Up to 64 KB Flash with protection and securable area; 8 KB SRAM with HW parity check
- CRC calculation unit
- POR/PDR, programmable BOR, PVD
- Low-power modes: Sleep, Stop, Standby, Shutdown; VBAT supply for RTC and backup registers
- 4–48 MHz crystal oscillator, 32 kHz crystal oscillator, internal 16 MHz RC with PLL (±1 %), internal 32 kHz RC (±5 %)
- Up to 44 fast I/Os, multiple 5 V-tolerant
- 5-channel DMA controller
- 11 timers, including an advanced motor-control timer, 32-bit and 16-bit general-purpose timers, low-power timers and watchdogs
- Calendar RTC with alarm and periodic wakeup
- Two I2C interfaces (Fast-mode Plus, 1 Mbit/s), two USARTs, two SPIs (32 Mbit/s, one multiplexed with I2S), one low-power UART
- Serial wire debug (SWD); 96-bit unique ID
- ECOPACK 2 compliant
Applications:
Package:
- LQFP48 and UFQFPN48 (STM32G031Cx)
- LQFP32 and UFQFPN32 (STM32G031Kx)
- UFQFPN28 (STM32G031Gx)
- TSSOP20 (STM32G031Fx)
- SO8N (STM32G031Jx)
- WLCSP18 (STM32G031Yx)
STM32G031C6T6 Features
- Includes ST state-of-the-art patented technology
- Core: Arm ® 32-bit Cortex ® -M0+ CPU, frequency up to 64 MHz
- -40°C to 85°C/105°C/125°C operating temperature
- Memories
- -8 Kbytes of SRAM with HW parity check
- -Up to 64 Kbytes of flash memory with protection and securable area
- CRC calculation unit
- Reset and power management
- -Power-on/Power-down reset (POR/PDR)
- -Voltage range: 1.7 V to 3.6 V
- -Programmable Brownout reset (BOR)
- -Low-power modes:
- -Programmable voltage detector (PVD)
Sleep, Stop, Standby, Shutdown
- -VBAT supply for RTC and backup registers
- Clock management
- -32 kHz crystal oscillator with calibration
- -4 to 48 MHz crystal oscillator
- -Internal 16 MHz RC with PLL option (±1 %)
- -Internal 32 kHz RC oscillator (±5 %)
- Up to 44 fast I/Os
- -Multiple 5 V-tolerant I/Os
- -All mappable on external interrupt vectors
- 5-channel DMA controller with flexible mapping
- -Up to 16-bit with hardware oversampling
- 12-bit, 0.4 μs ADC (up to 16 ext. channels)
- -Conversion range: 0 to 3.6V
- 11 timers (one 128 MHz capable): 16-bit for advanced motor control, one 32-bit and four 16-bit general-purpose, two low-power 16-bit, two watchdogs, SysTick timer
- Calendar RTC with alarm and periodic wakeup from Stop/Standby/Shutdown
STM32G031C6T6 Pin Configuration
Figure 3. STM32G031Jx SO8N pinout
Figure 4. STM32G031Yx WLCSP18 ballout
Figure 5. STM32G031Fx TSSOP20 pinout
Figure 6. STM32G031GxU UFQFPN28 pinout
Figure 7. STM32G031KxT LQFP32 pinout
39
Figure 8. STM32G031KxU UFQFPN32 pinout
Figure 9. STM32G031CxT LQFP48 pinout
Figure 10. STM32G031CxU UFQFPN48 pinout
Table 11. Terms and symbols used in Pin assignment and description table
| Column | Symbol Definition Terminal name corresponds parenthesis under the pin | Pin name to its by-default function at reset, unless otherwise name. |
|---|---|---|
| Supply pin | Supply pin | |
| I | I Input | |
| FT RST Reset pin with embedded weak pull-up resistor Options for FT I/Os | 5 V tolerant I/O | |
| _f I/O structure I/O, Fm+ capable | _f | |
| _e I/O, with switchable diode to V DDIO1 Note | Upon reset, all I/Os are set as analog inputs, unless otherwise specified. | |
| Pin functions | Alternate functions | |
| Functions selected through GPIOx_AFR registers | Additional functions | Additional functions |
| Functions directly selected/enabled through peripheral registers | ||
| Functions directly selected/enabled through peripheral registers |
Table 11. Terms and symbols used in Pin assignment and description table
39
Table 12. Pin assignment and description
| Pin - SO8N | Pin - WLCSP18 | Pin - TSSOP20 | Pin - UFQFPN28 | Pin - LQFP32 / UFQFPN32 | Pin - LQFP48 / UFQFPN48 | Pin name (function upon reset) | Pin type | I/O structure | Note | Alternate functions | Additional functions |
|---|---|---|---|---|---|---|---|---|---|---|---|
| - | - | - | - | - | 1 | PC13 | I/O | FT | (1)(2) | TIM1_BK | TAMP_IN1, RTC_TS, RTC_OUT1, WKUP2 |
| - | - | - | - | - | 2 | PC14- OSC32_IN (PC14) | I/O | FT | (1)(2) | TIM1_BK2 | OSC32_IN |
| 1 | B6 | 2 | 1 | 2 | - | PC14- OSC32_IN (PC14) | I/O | FT | (1)(2) | TIM1_BK2 | OSC32_IN, OSC_IN |
| - | A7 | 3 | 2 | 3 | 3 | PC15- OSC32_OUT (PC15) | I/O | FT | (1)(2) | OSC32_EN, OSC_EN | OSC32_OUT |
| - | - | - | - | - | 4 | VBAT | S | - | - | - | VBAT |
| - | - | - | - | - | 5 | VREF+ | S | - | - | - | VREF_OUT |
| 2 | C7 | 4 | 3 | 4 | 6 | VDD/VDDA | S | - | - | - | - |
| 3 | D6 | 5 | 4 | 5 | 7 | VSS/VSSA | S | - | - | - | - |
| - | - | - | - | - | 8 | PF0-OSC_IN (PF0) | I/O | FT | - | TIM14_CH1 | OSC_IN |
| - | - | - | - | - | 9 | PF1- OSC_OUT (PF1) | I/O | FT | - | OSC_EN | OSC_OUT |
| 4 | E7 | 6 | 5 | 6 | 10 | PF2-NRST | I/O | RST, FT | (3) | MCO | NRST |
| 4 | E7 | 7 | 6 | 7 | 11 | PA0 | I/O | FT_a | (3) | SPI2_SCK, USART2_CTS, TIM2_CH1_ETR, LPTIM1_OUT | ADC_IN0, TAMP_IN2,WKUP1 |
| 4 | C5 | 8 | 7 | 8 | 12 | PA1 | I/O | FT_ea | (3) | SPI1_SCK/I2S1_CK, USART2_RTS_DE_CK, TIM2_CH2, I2C1_SMBA, EVENTOUT | ADC_IN1 |
| 4 | E5 | 9 | 8 | 9 | 13 | PA2 | I/O | FT_a | (3) | SPI1_MOSI/I2S1_SD, USART2_TX, TIM2_CH3, LPUART1_TX | ADC_IN2, WKUP4,LSCO |
| - | D4 | 10 | 9 | 10 | 14 | PA3 | I/O | FT_ea | - | SPI2_MISO, USART2_RX, TIM2_CH4, LPUART1_RX, EVENTOUT | ADC_IN3 |
| - | - | - | - | - | 15 | PA4 | I/O | FT_a | - | SPI1_NSS/I2S1_WS, SPI2_MOSI, TIM14_CH1, LPTIM2_OUT, EVENTOUT | ADC_IN4, RTC_OUT2 |
Table 12. Pin assignment and description
Table 12. Pin assignment and description (continued)
| Pin - SO8N | Pin - WLCSP18 | Pin - TSSOP20 | Pin - UFQFPN28 | Pin - LQFP32 / UFQFPN32 | Pin - LQFP48 / UFQFPN48 | Pin name (function upon reset) | Pin type | I/O structure | Note | Alternate functions | Additional functions |
|---|---|---|---|---|---|---|---|---|---|---|---|
| - | D4 | 11 | 10 | 11 | - | PA4 | I/O | FT_a | - | SPI1_NSS/I2S1_WS, SPI2_MOSI, TIM14_CH1, LPTIM2_OUT, EVENTOUT | ADC_IN4, TAMP_IN1, RTC_TS, RTC_OUT1, WKUP2 |
| - | C3 | 12 | 11 | 12 | 16 | PA5 | I/O | FT_ea | - | SPI1_SCK/I2S1_CK, TIM2_CH1_ETR, LPTIM2_ETR, EVENTOUT | ADC_IN5 |
| - | E3 | 13 | 12 | 13 | 17 | PA6 | I/O | FT_ea | - | SPI1_MISO/I2S1_MCK, TIM3_CH1, TIM1_BK, TIM16_CH1, LPUART1_CTS | ADC_IN6 |
| - | D2 | 14 | 13 | 14 | 18 | PA7 | I/O | FT_a | - | SPI1_MOSI/I2S1_SD, TIM3_CH2, TIM1_CH1N, TIM14_CH1, TIM17_CH1 | ADC_IN7 |
| 5 | E1 | 15 | 14 | 15 | 19 | PB0 | I/O | FT_ea | - | SPI1_NSS/I2S1_WS, TIM3_CH3, TIM1_CH2N, LPTIM1_OUT | ADC_IN8 |
| 5 | E1 | 15 | 15 | 16 | 20 | PB1 | I/O | FT_ea | - | TIM14_CH1, TIM3_CH4, TIM1_CH3N, LPTIM2_IN1, LPUART1_RTS_DE, EVENTOUT | ADC_IN9 |
| - | E1 | 15 | - | 17 | 21 | PB2 | I/O | FT_ea | - | SPI2_MISO, LPTIM1_OUT, EVENTOUT | ADC_IN10 |
| - | - | - | - | - | 22 | PB10 | I/O | FT_fa | - | LPUART1_RX, TIM2_CH3, SPI2_SCK, I2C2_SCL | ADC_IN11 |
| - | - | - | - | - | 23 | PB11 | I/O | FT_fa | - | SPI2_MOSI, LPUART1_TX, TIM2_CH4, I2C2_SDA | ADC_IN15 |
| - | - | - | - | - | 24 | PB12 | I/O | FT_a | - | SPI2_NSS, LPUART1_RTS_DE,TIM1_BK, EVENTOUT | ADC_IN16 |
| - | - | - | - | - | 25 | PB13 | I/O | FT_f | - | SPI2_SCK, LPUART1_CTS, TIM1_CH1N, I2C2_SCL, EVENTOUT | - |
| - | - | - | - | - | 26 | PB14 | I/O | FT_f | - | SPI2_MISO, TIM1_CH2N, I2C2_SDA, EVENTOUT | - |
| - | - | - | - | - | 27 | PB15 | I/O | FT | - | SPI2_MOSI, TIM1_CH3N, EVENTOUT | RTC_REFIN |
| 5 | E1 | 15 | 16 | 18 | 28 | PA8 | I/O | FT | - | MCO, SPI2_NSS, TIM1_CH1, LPTIM2_OUT, EVENTOUT | - |
Table 12. Pin assignment and description (continued)
39
Table 12. Pin assignment and description (continued)
| Pin - SO8N | Pin - WLCSP18 | Pin - TSSOP20 | Pin - UFQFPN28 | Pin - LQFP32 / UFQFPN32 | Pin - LQFP48 / UFQFPN48 | Pin name (function upon reset) | Pin type | I/O structure | Note | Alternate functions | Additional functions |
|---|---|---|---|---|---|---|---|---|---|---|---|
| - | - | - | - | 19 | 29 | PA9 | I/O | FT_f | - | MCO, USART1_TX, TIM1_CH2, SPI2_MISO, I2C1_SCL, EVENTOUT | - |
| - | - | - | 17 | 20 | 30 | PC6 | I/O | FT | - | TIM3_CH1, TIM2_CH3 | - |
| - | - | - | - | - | 31 | PC7 | I/O | FT | - | TIM3_CH2, TIM2_CH4 | - |
| - | - | - | - | 21 | 32 | PA10 | I/O | FT_f | - | SPI2_MOSI, USART1_RX, TIM1_CH3, TIM17_BK, I2C1_SDA, EVENTOUT | - |
| - | - | - | - | - | 33 | PA11 [PA9] | I/O | FT_f | (4) | SPI1_MISO/I2S1_MCK, USART1_CTS, TIM1_CH4, TIM1_BK2, I2C2_SCL | - |
| 5 | C1 | 16 | 18 | 22 | - | PA11 [PA9] | I/O | FT_fa | (4) | SPI1_MISO/I2S1_MCK, USART1_CTS, TIM1_CH4, TIM1_BK2, I2C2_SCL | ADC_IN15 |
| - | - | - | - | - | 34 | PA12 [PA10] | I/O | FT_f | (4) | SPI1_MOSI/I2S1_SD, USART1_RTS_DE_CK, TIM1_ETR, I2S_CKIN, I2C2_SDA | - |
| 6 | B2 | 17 | 19 | 23 | - | PA12 [PA10] | I/O | FT_fa | (4) | SPI1_MOSI/I2S1_SD, USART1_RTS_DE_CK, TIM1_ETR, I2S_CKIN, I2C2_SDA | ADC_IN16 |
| 7 | A1 | 18 | 20 | 24 | 35 | PA13 | I/O | FT_ea | (5) | SWDIO, IR_OUT, EVENTOUT | ADC_IN17 |
| 8 | A3 | 19 | 21 | 25 | 36 | PA14-BOOT0 | I/O | FT_a | (5) | SWCLK, USART2_TX, EVENTOUT | ADC_IN18, BOOT0 |
| 8 | A3 | 19 | 22 | 26 | 37 | PA15 | I/O | FT | - | SPI1_NSS/I2S1_WS, USART2_RX,TIM2_CH1_ETR, EVENTOUT | - |
| - | - | - | - | - | 38 | PD0 | I/O | FT | - | EVENTOUT, SPI2_NSS, TIM16_CH1 | - |
| - | - | - | - | - | 39 | PD1 | I/O | FT | - | EVENTOUT, SPI2_SCK, TIM17_CH1 | - |
| - | - | - | - | - | 40 | PD2 | I/O | FT | - | TIM3_ETR, TIM1_CH1N | - |
| - | - | - | - | - | 41 | PD3 | I/O | FT | - | USART2_CTS, SPI2_MISO, TIM1_CH2N | - |
Table 12. Pin assignment and description (continued)
Table 12. Pin assignment and description (continued)
| Pin - SO8N | Pin - WLCSP18 | Pin - TSSOP20 | Pin - UFQFPN28 | Pin - LQFP32 / UFQFPN32 | Pin - LQFP48 / UFQFPN48 | Pin name - (function upon reset) | Pin type | I/O structure | Note | Alternate functions | Additional functions |
|---|---|---|---|---|---|---|---|---|---|---|---|
| - | B4 | 20 | 23 | 27 | 42 | PB3 | I/O | FT | - | SPI1_SCK/I2S1_CK, TIM1_CH2, TIM2_CH2, USART1_RTS_DE_CK, EVENTOUT | - |
| - | B4 | 20 | 24 | 28 | 43 | PB4 | I/O | FT | - | SPI1_MISO/I2S1_MCK, TIM3_CH1, USART1_CTS, TIM17_BK, EVENTOUT | - |
| 8 | B4 | 20 | 25 | 29 | 44 | PB5 | I/O | FT | - | SPI1_MOSI/I2S1_SD, TIM3_CH2, TIM16_BK, LPTIM1_IN1, I2C1_SMBA | WKUP6 |
| 8 | B4 | 20 | 26 | 30 | 45 | PB6 | I/O | FT_f | - | USART1_TX, TIM1_CH3, TIM16_CH1N, SPI2_MISO, LPTIM1_ETR, I2C1_SCL, EVENTOUT | - |
| - | - | - | - | - | 46 | PB7 | I/O | FT_f | - | USART1_RX, SPI2_MOSI, TIM17_CH1N, LPTIM1_IN2, I2C1_SDA, EVENTOUT | PVD_IN |
| 1 | A5 | 1 | 27 | 31 | - | PB7 | I/O | FT_fa | - | USART1_RX, SPI2_MOSI, TIM17_CH1N, LPTIM1_IN2, I2C1_SDA, EVENTOUT | ADC_IN11, PVD_IN |
| 1 | A5 | 1 | 28 | 32 | 47 | PB8 | I/O | FT_f | - | SPI2_SCK, TIM16_CH1, I2C1_SCL, EVENTOUT | - |
| 1 | B6 | 2 | - | 1 | 48 | PB9 | I/O | FT_f | - | IR_OUT, TIM17_CH1, SPI2_NSS, I2C1_SDA, EVENTOUT | - |
- PC13, PC14 and PC15 are supplied through the power switch. Since the switch only sinks a limited amount of current (3 mA), the use of GPIOs PC13 to PC15 in output mode is limited:
- These GPIOs must not be used as current sources (for example to drive a LED).
- The speed should not exceed 2 MHz with a maximum load of 30 pF
- After an RTC domain power-up, PC13, PC14 and PC15 operate as GPIOs. Their function then depends on the content of the RTC registers. The RTC registers are not reset upon system reset. For details on how to manage these GPIOs, refer to the RTC domain and RTC register descriptions in the RM0444 reference manual.
- RST I/O structure when the PF2-NRST pin is configured as reset (input or input/output mode), FT I/O structure when the PF2-NRST pin is configured as GPIO. The PF2-NRST default functionality is NRST. If used in this mode on SO8 and WLCSP, take particular care about the configuration of the other I/Os connected to this pin.
- Pins PA9 and PA10 can be remapped in place of pins PA11 and PA12 (default mapping), using SYSCFG_CFGR1 register.
- Upon reset, these pins are configured as SWD alternate functions, and the internal pull-up on PA13 pin and the internal pulldown on PA14 pin are activated.
39
Table 13. Port A alternate function mapping
| Port | AF0 | AF1 | AF2 | AF3 | AF4 | AF5 | AF6 | AF7 |
|---|---|---|---|---|---|---|---|---|
| PA0 | SPI2_SCK | USART2_CTS | TIM2_CH1_ETR | - | - | LPTIM1_OUT | - | - |
| PA1 | SPI1_SCK/ I2S1_CK | USART2_RTS _DE_CK | TIM2_CH2 | - | - | - | I2C1_SMBA | EVENTOUT |
| PA2 | SPI1_MOSI/ I2S1_SD | USART2_TX | TIM2_CH3 | - | - | - | LPUART1_TX | - |
| PA3 | SPI2_MISO | USART2_RX | TIM2_CH4 | - | - | - | LPUART1_RX | EVENTOUT |
| PA4 | SPI1_NSS/ I2S1_WS | SPI2_MOSI | - | - | TIM14_CH1 | LPTIM2_OUT | - | EVENTOUT |
| PA5 | SPI1_SCK/ I2S1_CK | - | TIM2_CH1_ETR | - | - | LPTIM2_ETR | - | EVENTOUT |
| PA6 | SPI1_MISO/ I2S1_MCK | TIM3_CH1 | TIM1_BKIN | - | - | TIM16_CH1 | LPUART1_CTS | - |
| PA7 | SPI1_MOSI/ I2S1_SD | TIM3_CH2 | TIM1_CH1N | - | TIM14_CH1 | TIM17_CH1 | - | - |
| PA8 | MCO | SPI2_NSS | TIM1_CH1 | - | - | LPTIM2_OUT | - | EVENTOUT |
| PA9 | MCO | USART1_TX | TIM1_CH2 | - | SPI2_MISO | - | I2C1_SCL | EVENTOUT |
| PA10 | SPI2_MOSI | USART1_RX | TIM1_CH3 | - | - | TIM17_BKIN | I2C1_SDA | EVENTOUT |
| PA11 | SPI1_MISO/ I2S1_MCK | USART1_CTS | TIM1_CH4 | - | - | TIM1_BKIN2 | I2C2_SCL | - |
| PA12 | SPI1_MOSI/ I2S1_SD | USART1_RTS _DE_CK | TIM1_ETR | - | - | I2S_CKIN | I2C2_SDA | - |
| PA13 | SWDIO | IR_OUT | - | - | - | - | - | EVENTOUT |
| PA14 | SWCLK | USART2_TX | - | - | - | - | - | EVENTOUT |
| PA15 | SPI1_NSS/ I2S1_WS | USART2_RX | TIM2_CH1_ETR | - | - | - | - | EVENTOUT |
Table 13. Port A alternate function mapping
Table 14. Port B alternate function mapping
| Port | AF0 | AF1 | AF2 | AF3 | AF4 | AF5 | AF6 | AF7 |
|---|---|---|---|---|---|---|---|---|
| PB0 | SPI1_NSS/ I2S1_WS | TIM3_CH3 | TIM1_CH2N | - | - | LPTIM1_OUT | - | - |
| PB1 | TIM14_CH1 | TIM3_CH4 | TIM1_CH3N | - | - | LPTIM2_IN1 | LPUART1_RTS _DE | EVENTOUT |
| PB2 | - | SPI2_MISO | - | - | - | LPTIM1_OUT | - | EVENTOUT |
| PB3 | SPI1_SCK/ I2S1_CK | TIM1_CH2 | TIM2_CH2 | - | USART1_RTS _DE_CK | - | - | EVENTOUT |
| PB4 | SPI1_MISO/ I2S1_MCK | TIM3_CH1 | - | - | USART1_CTS | TIM17_BKIN | - | EVENTOUT |
| PB5 | SPI1_MOSI/ I2S1_SD | TIM3_CH2 | TIM16_BKIN | - | - | LPTIM1_IN1 | I2C1_SMBA | - |
| PB6 | USART1_TX | TIM1_CH3 | TIM16_CH1N | - | SPI2_MISO | LPTIM1_ETR | I2C1_SCL | EVENTOUT |
| PB7 | USART1_RX | SPI2_MOSI | TIM17_CH1N | - | - | LPTIM1_IN2 | I2C1_SDA | EVENTOUT |
| PB8 | - | SPI2_SCK | TIM16_CH1 | - | - | - | I2C1_SCL | EVENTOUT |
| PB9 | IR_OUT | - | TIM17_CH1 | - | - | SPI2_NSS | I2C1_SDA | EVENTOUT |
| PB10 | - | LPUART1_RX | TIM2_CH3 | - | - | SPI2_SCK | I2C2_SCL | - |
| PB11 | SPI2_MOSI | LPUART1_TX | TIM2_CH4 | - | - | - | I2C2_SDA | - |
| PB12 | SPI2_NSS | LPUART1_RTS _DE | TIM1_BKIN | - | - | - | - | EVENTOUT |
| PB13 | SPI2_SCK | LPUART1_CTS | TIM1_CH1N | - | - | - | I2C2_SCL | EVENTOUT |
| PB14 | SPI2_MISO | - | TIM1_CH2N | - | - | - | I2C2_SDA | EVENTOUT |
| PB15 | SPI2_MOSI | - | TIM1_CH3N | - | - | - | - | EVENTOUT |
Table 14. Port B alternate function mapping
STM32G031C6T6 Absolute Maximum Ratings
Stresses above the absolute maximum ratings listed in Table 18 , Table 19 and Table 20 may cause permanent damage to the device. These are stress ratings only and functional operation of the device at these conditions is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. The device mission profile (application conditions) is compliant with the JEDEC JESD47 qualification standard.
All voltages are defined with respect to V SS .
Table 18. Voltage characteristics
| Symbol | Ratings | Min | Max | Unit |
|---|---|---|---|---|
| V DD | External supply voltage | -0.3 | 4.0 | V |
| V BAT | External supply voltage on VBAT pin | -0.3 | 4.0 | V |
| V REF+ | External voltage on VREF+ pin | -0.3 | Min(V DD + 0.4, 4.0) | V |
| V IN (1) | Input voltage on FT_xx | -0.3 | V DD + 4.0 (2)(3) | V |
| V IN (1) | Input voltage on any other pin | -0.3 | 4.0 | V |
- To sustain a voltage higher than 4 V the internal pull-up/pull-down resistors must be disabled.
- When an FT_a pin is used by an analog peripheral such as ADC, the maximum V IN is 4 V.
Table 19. Current characteristics
| Symbol | Ratings | Max | Unit |
|---|---|---|---|
| I VDD/VDDA | Current into VDD/VDDA power pin (source) (1) | 100 | mA |
| I VSS/VSSA | Current out of VSS/VSSA ground pin (sink) (2) | 100 | mA |
| I IO(PIN) | Output current sunk by any I/O and control pin except FT_f | 15 | mA |
| I IO(PIN) | Output current sunk by any FT_f pin | 20 | mA |
| I IO(PIN) | Output current sourced by any I/O and control pin | 15 | mA |
Table 19. Current characteristics
95
Table 19. Current characteristics (continued)
| Symbol | Ratings | Max | Unit |
|---|---|---|---|
| ∑ I IO(PIN) | Total output current sunk by sum of all I/Os and control pins | 80 | mA |
| ∑ I IO(PIN) | Total output current sourced by sum of all I/Os and control pins | 80 | mA |
| I INJ(PIN) (2) | Injected current on a FT_xx pin | -5 / NA (3) | mA |
| ∑ |I INJ(PIN) | | Total injected current (sum of all I/Os and control pins) (4) | 25 | mA |
-
Positive injection is not possible on these I/Os and does not occur for input voltages lower than the specified maximum value.
-
When several inputs are submitted to a current injection, the maximum ∑ |I INJ(PIN) | is the absolute sum of the negative injected currents (instantaneous values).
Table 20. Thermal characteristics
| Symbol | Ratings | Value | Unit |
|---|---|---|---|
| T STG | Storage temperature range | -65 to +150 | °C |
| T J | Maximum junction temperature | 150 | °C |
STM32G031C6T6 Thermal Information
The operating junction temperature T J must never exceed the maximum given in Table 21: General operating conditions
The maximum junction temperature in °C that the device can reach if respecting the operating conditions, is:
$$T_J(max) = T_A(max) + P_D(max) \times \Theta_{JA}$$
STM32G031C6T6 Package Information
In order to meet environmental requirements, ST offers these devices in different grades of ECOPACK packages, depending on their level of environmental compliance. ECOPACK specifications, grade definitions and product status are available at: www.st.com . ECOPACK is an ST trademark.
Variants on the same datasheet
These parts have exact links to the same datasheet. They are candidates to compare, not verified drop-in replacements; check package, pinout and electrical limits.
| Part Number | Manufacturer | Package |
|---|---|---|
| STM32G031 | STMicroelectronics | — |
| STM32G031C4 | STMicroelectronics | — |
| STM32G031C6 | STMicroelectronics | — |
| STM32G031C8 | STMicroelectronics | — |
| STM32G031F4 | STMicroelectronics | — |
| STM32G031F6 | STMicroelectronics | — |
| STM32G031F8 | STMicroelectronics | — |
| STM32G031G4 | STMicroelectronics | — |
| STM32G031G6 | STMicroelectronics | — |
| STM32G031G8 | STMicroelectronics | — |
| STM32G031J4 | STMicroelectronics | — |
| STM32G031J6 | STMicroelectronics | — |
| STM32G031K4 | STMicroelectronics | — |
| STM32G031K6 | STMicroelectronics | — |
| STM32G031K8 | STMicroelectronics | — |
| STM32G031Y8 | STMicroelectronics | — |
More datasheets
Ask your AI agent about the STM32G031C6T6
Connect SheetsData to Claude, Cursor, Codex or any MCP client and your agent reads this datasheet for you: pinout, limits, register maps and design checks, with the numbers taken from the PDF.
claude mcp add --transport http sheetsdata https://mcp.sheetsdata.com/mcp
Then ask: "Can the STM32G031C6T6 run from my 12 V rail? Check it against the datasheet limits."
Create a free account $2 of usage every month, no card needed.