STM32G030x6/x8: Arm Cortex - M0+ 32-Bit MCU, Up To 64 KB Flash, 8 KB RAM, 2x USART, Timers, ADC, Comm. I/Fs, 2.0-3.6 V
STM32G030x6/x8: Arm Cortex - M0+ 32-Bit MCU, Up To 64 KB Flash, 8 KB RAM, 2x USART, Timers, ADC, Comm. I/Fs, 2.0-3.6 V
Features
• Includes ST state-of-the-art patented
technology
• Core: Arm® 32-bit Cortex®-M0+ CPU, SO8N TSSOP20 LQFP32
frequency up to 64 MHz (4.9 × 6 mm) (6.4 × 4.4 mm) (7 × 7 mm)
• -40°C to 85°C operating temperature LQFP48
(7 × 7 mm)
• Memories
– Up to 64 Kbytes of flash memory with
protection • Communication interfaces
– 8 Kbytes of SRAM with HW parity check – Two I2C-bus interfaces supporting Fast-
• CRC calculation unit mode Plus (1 Mbit/s) with extra current
• Reset and power management sink, one supporting SMBus/PMBus and
– Voltage range: 2.0 V to 3.6 V wakeup from Stop mode
– Two USARTs with master/slave
– Power-on/Power-down reset (POR/PDR) synchronous SPI; one supporting ISO7816
– Low-power modes: interface, LIN, IrDA capability, auto baud
Sleep, Stop, Standby rate detection and wakeup feature
– VBAT supply for RTC and backup registers – Two SPIs (32 Mbit/s) with 4- to 16-bit
• Clock management programmable bitframe, one multiplexed
– 4 to 48 MHz crystal oscillator with I2S interface; two extra SPIs through
– 32 kHz crystal oscillator with calibration USARTs
– Internal 16 MHz RC with PLL option • Development support: serial wire debug (SWD)
– Internal 32 kHz RC oscillator (±5 %) • All packages ECOPACK 2 compliant
• Up to 44 fast I/Os
– All mappable on external interrupt vectors Table 1. Device summary
– Multiple 5 V-tolerant I/Os
• 5-channel DMA controller with flexible mapping Reference Part number
• 12-bit, 0.4 µs ADC (up to 16 ext. channels) STM32G030C6, STM32G030F6,
– Up to 16-bit with hardware oversampling STM32G030x6
STM32G030J6, STM32G030K6
– Conversion range: 0 to 3.6V
STM32G030x8 STM32G030C8, STM32G030K8
• 8 timers: 16-bit for advanced motor control,
four 16-bit general-purpose, two watchdogs,
SysTick timer
• Calendar RTC with alarm and periodic wakeup
from Stop/Standby
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.1 Arm® Cortex®-M0+ core with MPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2 Memory protection unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.3 Embedded flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.4 Embedded SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.5 Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.6 Cyclic redundancy check calculation unit (CRC) . . . . . . . . . . . . . . . . . . . 14
3.7 Power supply management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.7.1 Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.7.2 Power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.7.3 Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.7.4 Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.7.5 Reset mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.7.6 VBAT operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.8 Interconnect of peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.9 Clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.10 General-purpose inputs/outputs (GPIOs) . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.11 Direct memory access controller (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.12 DMA request multiplexer (DMAMUX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.13 Interrupts and events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.13.1 Nested vectored interrupt controller (NVIC) . . . . . . . . . . . . . . . . . . . . . . 21
3.13.2 Extended interrupt/event controller (EXTI) . . . . . . . . . . . . . . . . . . . . . . 21
3.14 Analog-to-digital converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.14.1 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.14.2 Internal voltage reference (VREFINT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.14.3 VBAT battery voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.15 Timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.15.1 Advanced-control timer (TIM1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.15.2 General-purpose timers (TIM3, 14, 16, 17) . . . . . . . . . . . . . . . . . . . . . . 24
5 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.1 Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.1.1 Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.1.6 Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.1.7 Current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.2 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.3 Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.3.1 General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.3.2 Operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . . 42
5.3.3 Embedded reset and power control block characteristics . . . . . . . . . . . 42
5.3.4 Embedded voltage reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.3.5 Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5.3.6 Wakeup time from low-power modes and voltage scaling
transition times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
5.3.7 External clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
5.3.8 Internal clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
5.3.9 PLL characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
5.3.10 Flash memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
5.3.11 EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
5.3.12 Electrical sensitivity characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
5.3.13 I/O current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
6 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
6.1 Device marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
6.2 SO8N package information (O7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
6.3 TSSOP20 package information (YA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
6.4 LQFP32 package information (5V) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
6.5 LQFP48 package information (5B) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
6.6 Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
6.6.1 Reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
7 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
9 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
List of tables
List of figures
1 Introduction
a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
2 Description
General-purpose 4 (16-bit)
SysTick 1
Watchdog 2
SPI [I2S](1) 0[0](2) 2 [1](2)
interfaces
Comm.
I2C 2
USART 2
RTC Yes
Tamper pins 0 2
RNG / AES No / No
GPIOs 5 17 29 43
Wakeup pins 1 4
12-bit ADC channels
5+2 14 + 2 16 + 2 16 + 3
(external + internal)
VREFBUF No
Max. CPU frequency 64 MHz
Operating voltage 2.0 to 3.6 V
Ambient: -40 to 85 °C
Operating temperature(3)
Junction: -40 to 105 °C
Number of pins 8 20 32 48
1. The numbers in brackets denote the count of SPI interfaces configurable as I2S interface.
2. Plus two extra SPIs through USARTs.
3. Depends on order code. Refer to Section 7: Ordering information for details.
POWER
SWCLK DMAMUX
SWD Voltage
SWDIO VCORE regulator
DMA
VDDIO1
CPU VDDA VDD/VDDA
CORTEX-M0+ Flash memory VSS/VSSA
Bus matrix
I/F VDD
fmax = 64 MHz up to 64 KB SUPPLY
SUPERVISION
POR
SRAM Reset POR
NVIC IOPORT 8 KB Parity NRST
Int
T sensor
HSI16
RC 16 MHz
PLLPCLK
PLLRCLK PLL
GPIOs
PAx Port A LSI XTAL OSC
RC 32 kHz OSC_IN
4-48 MHz OSC_OUT
PBx Port B
HSE
decoder
IWDG
PCx Port C CRC
I/F VDD
RCC LSE VBAT
PDx Port D Reset & clock control Low-voltage
detector
PFx Port F LSE
AHB
4 channels
TIM1
BK, BK2, ETR
VREF+ 4 channels
TIM3
ETR
APB
3 Functional overview
Table 3. Access status versus readout protection level and execution modes
• Write protection (WRP): the protected area is protected against erasing and
programming. Two areas per bank can be selected, with 2-Kbyte granularity.
The whole non-volatile memory embeds the error correction code (ECC) feature supporting:
• single error detection and correction
• double error detection
• readout of the ECC fail address from the ECC register
• VBAT = 1.55 V to 3.6 V. VBAT is the power supply (through a power switch) for RTC,
TAMP, low-speed external 32.768 kHz oscillator and backup registers when VDD is not
present. VBAT is provided externally through VBAT pin. When this pin is not available
on the package, VBAT bonding pad is internally bonded to the VDD/VDDA pin.
• VREF+ is the analog peripheral input reference voltage. When VDDA < 2 V, VREF+ must
be equal to VDDA. When VDDA ≥ 2 V, VREF+ must be between 2 V and VDDA. It can be
grounded when the analog peripherals using VREF+ are not active.
VREF+ is delivered through VREF+ pin. On packages without VREF+ pin, VREF+ is
internally connected with VDD.
• VCORE is an internal supply for digital peripherals, SRAM and flash memory. It is
produced by an embedded linear voltage regulator. On top of VCORE, the flash memory
is also powered from VDD.
VDDA domain
VREF+
VREF+
VDDA A/D converter
VSSA
VDDIO1 domain
VDDIO1
I/O ring
VDD domain
Reset block
Temp. sensor VCORE domain
PLL, HSI
Core
VSS Standby circuitry
VSS/VSSA (Wakeup, IWDG) SRAM
VDD VCORE Digital
VDD/VDDA Voltage
regulator peripherals
RTC domain
BKP registers
VBAT
LSE crystal 32.768 kHz osc
RCC BDCR register
RTC and TAMP
MSv47920V1
The MR is used in Run and Sleep modes. The LPR is used in Low-power run, Low-power
sleep and Stop modes.
In Standby mode, both regulators are powered down and their outputs set in high-
impedance state, such as to bring their current consumption close to zero.
Sleep mode
In Sleep mode, only the CPU is stopped. All peripherals continue to operate and can wake
up the CPU when an interrupt/event occurs.
Standby mode
The Standby mode is used to achieve the lowest power consumption, with POR/PDR
always active in this mode. The main regulator is switched off to power down VCORE
domain. The low-power regulator is switched off. The PLL, as well as the HSI16 RC
oscillator and the HSE crystal oscillator are also powered down. The RTC can remain active
(Standby mode with RTC, Standby mode without RTC).
For each I/O, the software can determine whether a pull-up, a pull-down or no resistor shall
be applied to that I/O during Standby mode.
Upon entering Standby mode, register contents are lost except for registers in the RTC
domain and standby circuitry.
The device exits Standby mode upon external reset event (NRST pin), IWDG reset event,
wakeup event (WKUP pin, configurable rising or falling edge), RTC event (alarm, periodic
wakeup, timestamp), TAMP event, or when a failure is detected on LSE (CSS on LSE).
Sleep
Interconnect
Stop
Run
Low-power sleep
Low-power run
Sleep
Interconnect
Stop
Run
Interconnect source Interconnect action
destination
All clock sources (internal and Clock source used as input channel for
TIM14,16,17 Y Y -
external) RC measurement and trimming
CSS
RAM (parity error) TIM1,16,17 Timer break Y Y -
Flash memory (ECC error)
CPU (hard fault) TIM1,16,17 Timer break Y - -
TIMx External trigger Y Y -
GPIO
ADC Conversion external trigger Y Y -
• Auxiliary clock source: two ultra-low-power clock sources for the real-time clock
(RTC):
– 32.768 kHz low-speed oscillator with external crystal (LSE), supporting four drive
capability modes. The LSE can also be configured in bypass mode for using an
external clock.
– 32 kHz low-speed internal RC oscillator (LSI) with ±5% accuracy, also used to
clock an independent watchdog.
• Peripheral clock sources: several peripherals ( I2S, USARTs, I2Cs, ADC) have their
own clock independent of the system clock.
• Clock security system (CSS): in the event of HSE clock failure, the system clock is
automatically switched to HSI16 and, if enabled, a software interrupt is generated. LSE
clock failure can also be detected and generate an interrupt. The CCS feature can be
enabled by software.
• Clock output:
– MCO (microcontroller clock output) provides one of the internal clocks for
external use by the application
– LSCO (low speed clock output) provides LSI or LSE in all low-power modes
(except in VBAT operation).
Several prescalers allow the application to configure AHB and APB domain clock
frequencies, 64 MHz at maximum.
The ADC frequency is independent from the CPU frequency, allowing maximum sampling
rate of ~2.5 MSps even with a low CPU speed. An auto-shutdown function guarantees that
the ADC is powered off except during the active conversion phase.
The ADC can be served by the DMA controller. It can operate in the whole VDD supply
range.
The ADC features a hardware oversampler up to 256 samples, improving the resolution to
16 bits (refer to AN2668).
An analog watchdog feature allows very precise monitoring of the converted voltage of one,
some or all scanned channels. An interrupt is generated when the converted voltage is
outside the programmed thresholds.
The events generated by the general-purpose timers (TIMx) can be internally connected to
the ADC start triggers, to allow the application to synchronize A/D conversions with timers.
mode. It can be configured to transfer 16 and 24 or 32 bits with 16-bit or 32-bit data
resolution and synchronized by a specific signal. Audio sampling frequency from 8 kHz up to
192 kHz can be set by an 8-bit programmable linear prescaler. When operating in master
mode, it can output a clock for an external audio component at 256 times the sampling
frequency.
PB7/PB8/PB9/PC14-OSC32_IN 1 8 PB5/PB6/PA14-BOOT0/PA15
VDD/VDDA 2 7 PA13
VSS/VSSA 3 6 PA12[PA10]
NRST 4 5 PA8/PA11[PA9]/PB0/PB1
MSv47964V2
Top view
PB7/PB8 1 20 PB3/PB4/PB5/PB6
PB9/PC14-OSC32_IN 2 19 PA15/PA14-BOOT0
PC15-OSC32_OUT 3 18 PA13
VDD/VDDA 4 17 PA12[PA10]
VSS/VSSA 5 16 PA11[PA9]
NRST 6 15 PB0/PB1/PB2/PA8
PA0 7 14 PA7
PA1 8 13 PA6
PA2 9 12 PA5
PA3 10 11 PA4
MSv47963V1
Top view
PB8
PB7
PB6
PB5
PB3
PB4
32
31
30
29
28
27
26
25
PB9 1 24 PA13
PC14-OSC32_IN 2 23 PA12 [PA10]
PC15-OSC32_OUT 3 22 PA11 [PA9]
VDD/VDDA 4 21 PA10
VSS/VSSA 5
LQFP32 20 PC6
NRST 6 19 PA9
PA0 7 18 PA8
PA1 8 17 PB2
10
12
13
14
15
16
11
9
PB0
PB1
PA2
PA3
PA4
PA5
PA6
PA7
Top view
PA15
PD3
PD2
PD1
PD0
PB9
PB8
PB7
PB6
PB5
PB4
PB3
48
47
46
45
44
43
42
41
40
39
38
37
PC13 1 36 PA14-BOOT0
PC14-OSC32_IN 2 35 PA13
PC15-OSC32_OUT 3 34 PA12 [PA10]
VBAT 4 33 PA11 [PA9]
VREF+ 5 32 PA10
VDD/VDDA 6 31 PC7
VSS/VSSA 7
LQFP48 30 PC6
PF0-OSC_IN 8 29 PA9
PF1-OSC_OUT 9 28 PA8
NRST 10 27 PB15
PA0 11 26 PB14
PA1 12 25 PB13
13
14
15
16
17
18
19
20
21
22
23
24
PB0
PB1
PB2
PB10
PB12
PA2
PA3
PA4
PA5
PA6
PA7
PB11
Table 11. Terms and symbols used in Pin assignment and description table
Column Symbol Definition
Terminal name corresponds to its by-default function at reset, unless otherwise specified in
Pin name
parenthesis under the pin name.
S Supply pin
Pin type I Input only pin
I/O Input / output pin
FT 5 V tolerant I/O
RST Reset pin with embedded weak pull-up resistor
Options for FT I/Os
Note Upon reset, all I/Os are set as analog inputs, unless otherwise specified.
Alternate
Functions selected through GPIOx_AFR registers
Pin functions
functions Additional
Functions directly selected/enabled through peripheral registers
functions
Pin
I/O structure
Pin name
Pin type
Alternate Additional
Note
TSSOP20
LQFP32
LQFP48
upon reset)
(3) ADC_IN0,
- 7 7 11 PA0 I/O FT_a SPI2_SCK, USART2_CTS,
TAMP_IN2,WKUP1
SPI1_SCK/I2S1_CK,
(3)
- 8 8 12 PA1 I/O FT_ea USART2_RTS_DE_CK, ADC_IN1
I2C1_SMBA, EVENTOUT
Pin
I/O structure
Pin name
Pin type
Alternate Additional
Note
TSSOP20
LQFP32
LQFP48
upon reset)
SPI1_NSS/I2S1_WS, ADC_IN4,
- 11 11 - PA4 I/O FT_a - SPI2_MOSI, TIM14_CH1, TAMP_IN1, RTC_TS,
EVENTOUT RTC_OUT1, WKUP2
SPI1_SCK/I2S1_CK,
- 12 12 16 PA5 I/O FT_ea - ADC_IN5
EVENTOUT
SPI1_MISO/I2S1_MCK,
- 13 13 17 PA6 I/O FT_ea - TIM3_CH1, TIM1_BK, ADC_IN6
TIM16_CH1
SPI1_MOSI/I2S1_SD,
- 14 14 18 PA7 I/O FT_a - TIM3_CH2, TIM1_CH1N, ADC_IN7
TIM14_CH1, TIM17_CH1
SPI1_NSS/I2S1_WS,
5 15 15 19 PB0 I/O FT_ea - ADC_IN8
TIM3_CH3, TIM1_CH2N
TIM14_CH1, TIM3_CH4,
5 15 16 20 PB1 I/O FT_ea - ADC_IN9
TIM1_CH3N, EVENTOUT
- 15 17 21 PB2 I/O FT_ea - SPI2_MISO, EVENTOUT ADC_IN10
- - - 22 PB10 I/O FT_fa - SPI2_SCK, I2C2_SCL ADC_IN11
- - - 23 PB11 I/O FT_fa - SPI2_MOSI, I2C2_SDA ADC_IN15
SPI2_NSS, TIM1_BK,
- - - 24 PB12 I/O FT_a - ADC_IN16
EVENTOUT
SPI2_SCK, TIM1_CH1N,
- - - 25 PB13 I/O FT_f - -
I2C2_SCL, EVENTOUT
SPI2_MISO, TIM1_CH2N,
- - - 26 PB14 I/O FT_f - -
I2C2_SDA, EVENTOUT
SPI2_MOSI, TIM1_CH3N,
- - - 27 PB15 I/O FT - RTC_REFIN
EVENTOUT
MCO, SPI2_NSS, TIM1_CH1,
5 15 18 28 PA8 I/O FT - -
EVENTOUT
MCO, USART1_TX,
- - 19 29 PA9 I/O FT_f - TIM1_CH2, SPI2_MISO, -
I2C1_SCL, EVENTOUT
- - 20 30 PC6 I/O FT - TIM3_CH1 -
- - - 31 PC7 I/O FT - TIM3_CH2 -
Pin
I/O structure
Pin name
Pin type
Alternate Additional
Note
TSSOP20
LQFP32
LQFP48
upon reset)
SPI2_MOSI, USART1_RX,
- - 21 32 PA10 I/O FT_f - TIM1_CH3, TIM17_BK, -
I2C1_SDA, EVENTOUT
SPI1_MISO/I2S1_MCK,
(4)
- - - 33 PA11 [PA9] I/O FT_f USART1_CTS, TIM1_CH4, -
TIM1_BK2, I2C2_SCL
SPI1_MISO/I2S1_MCK,
5 16 22 - PA11 [PA9] I/O FT_fa (4) USART1_CTS, TIM1_CH4, ADC_IN15
TIM1_BK2, I2C2_SCL
SPI1_MOSI/I2S1_SD,
(4) USART1_RTS_DE_CK,
- - - 34 PA12 [PA10] I/O FT_f -
TIM1_ETR, I2S_CKIN,
I2C2_SDA
SPI1_MOSI/I2S1_SD,
(4) USART1_RTS_DE_CK,
6 17 23 - PA12 [PA10] I/O FT_fa ADC_IN16
TIM1_ETR, I2S_CKIN,
I2C2_SDA
(5)
7 18 24 35 PA13 I/O FT_ea SWDIO, IR_OUT, EVENTOUT ADC_IN17
Pin
I/O structure
Pin name
Pin type
Alternate Additional
Note
TSSOP20
LQFP32
LQFP48
upon reset)
SPI1_MOSI/I2S1_SD,
8 20 29 44 PB5 I/O FT - TIM3_CH2, TIM16_BK, WKUP6
I2C1_SMBA
USART1_TX, TIM1_CH3,
8 20 30 45 PB6 I/O FT_f - TIM16_CH1N, SPI2_MISO, -
I2C1_SCL, EVENTOUT
USART1_RX, SPI2_MOSI,
- - - 46 PB7 I/O FT_f - TIM17_CH1N, I2C1_SDA, -
EVENTOUT
USART1_RX, SPI2_MOSI,
1 1 31 - PB7 I/O FT_fa - TIM17_CH1N, I2C1_SDA, ADC_IN11
EVENTOUT
SPI2_SCK, TIM16_CH1,
1 1 32 47 PB8 I/O FT_f - -
I2C1_SCL, EVENTOUT
IR_OUT, TIM17_CH1,
1 2 1 48 PB9 I/O FT_f - SPI2_NSS, I2C1_SDA, -
EVENTOUT
1. 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:
- The speed should not exceed 2 MHz with a maximum load of 30 pF
- These GPIOs must not be used as current sources (for example to drive a LED).
2. 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.
3. As in SO8N device, the PA0, PA1, and PA2 GPIOs are bonded with NRST on the pin 4, low level applied to any of
these GPIOs provokes the device reset. To prevent the risk of spurious resets, keep these GPIOs configured at all
times as analog or digital inputs (as opposed to output or alternate function).
4. Pins PA9 and PA10 can be remapped in place of pins PA11 and PA12 (default mapping), using SYSCFG_CFGR1
register.
5. Upon reset, these pins are configured as SW debug alternate functions, and the internal pull-up on PA13 pin and the
internal pull-down on PA14 pin are activated.
STM32G030x6/x8
Port AF0 AF1 AF2 AF3 AF4 AF5 AF6 AF7
SPI1_MOSI/
PA7 TIM3_CH2 TIM1_CH1N TIM14_CH1 TIM17_CH1 - -
I2S1_SD -
PA8 MCO SPI2_NSS TIM1_CH1 - - - - EVENTOUT
PA9 MCO USART1_TX TIM1_CH2 - SPI2_MISO - I2C1_SCL EVENTOUT
PA10 SPI2_MOSI USART1_RX TIM1_CH3 - - TIM17_BKIN I2C1_SDA EVENTOUT
SPI1_MISO/
PA11 USART1_CTS TIM1_CH4 - - TIM1_BKIN2 I2C2_SCL -
I2S1_MCK
SPI1_MOSI/ USART1_RTS
PA12 TIM1_ETR - - I2S_CKIN I2C2_SDA -
I2S1_SD _DE_CK
PA13 SWDIO IR_OUT - - - - - EVENTOUT
PA14 SWCLK USART2_TX - - - - - EVENTOUT
SPI1_NSS/
PA15 USART2_RX - - - - - EVENTOUT
I2S1_WS
35/100
Table 14. Port B alternate function mapping
36/100 Port AF0 AF1 AF2 AF3 AF4 AF5 AF6 AF7
SPI1_NSS/
PB0 TIM3_CH3 TIM1_CH2N - - - - -
I2S1_WS
PB1 TIM14_CH1 TIM3_CH4 TIM1_CH3N - - - - EVENTOUT
PB2 - SPI2_MISO - - - - - EVENTOUT
SPI1_SCK/ USART1_RTS
PB3 TIM1_CH2 - - - - EVENTOUT
I2S1_CK _DE_CK
SPI1_MISO/
PB4 TIM3_CH1 - - USART1_CTS TIM17_BKIN - EVENTOUT
I2S1_MCK
SPI1_MOSI/
PB5 TIM3_CH2 TIM16_BKIN - - - I2C1_SMBA -
I2S1_SD
PB6 USART1_TX TIM1_CH3 TIM16_CH1N - SPI2_MISO - I2C1_SCL EVENTOUT
PB7 USART1_RX SPI2_MOSI TIM17_CH1N - - - I2C1_SDA EVENTOUT
DS12991 Rev 6
STM32G030x6/x8
Table 15. Port C alternate function mapping
STM32G030x6/x8
Port AF0 AF1 AF2 AF3 AF4 AF5 AF6 AF7
PC6 - TIM3_CH1 - - - - - -
PC7 - TIM3_CH2 - - - - - -
PC13 - - TIM1_BKIN - - - - -
PC14 - - TIM1_BKIN2 - - - - -
PC15 OSC32_EN OSC_EN - - - - - -
PF0 - - TIM14_CH1 - - - - -
PF1 OSC_EN - - - - - - -
37/100
Electrical characteristics STM32G030x6/x8
5 Electrical characteristics
C = 50 pF VIN
VBAT
Backup circuitry
1.55 V to 3.6 V (LSE, RTC and
Power backup registers)
switch
VDD VCORE
VDD/VDDA VDD
Regulator
VDDIO1
OUT
Level shifter
Kernel logic
1 x 100 nF IO (CPU, digital and
GPIOs
+ 1 x 4.7 μF IN
logic memories)
VSS
VDDA
VREF VREF+
VREF+
ADC
100 nF VREF-
VSSA
VSS/VSSA
MSv47984V2
Caution: Power supply pin pair (VDD/VDDA and VSS/VSSA) must be decoupled with filtering
ceramic capacitors as shown above. These capacitors must be placed as close as possible
to, or below, the appropriate pins on the underside of the PCB to ensure the good
functionality of the device.
IDDVBAT
VBAT
VBAT
IDD
VDD VDD/VDDA
(VDDA)
MSv47901V1
Total output current sunk by sum of all I/Os and control pins 80
∑IIO(PIN) mA
Total output current sourced by sum of all I/Os and control pins 80
VDD rising - ∞
tVDD VDD slew rate µs/V
VDD falling 10 ∞
tRSTTEMPO (2) POR temporization when VDD crosses VPOR VDD rising - 250 400 μs
VPOR(2) Power-on reset threshold - 2.06 2.10 2.14 V
VPDR(2) Power-down reset threshold - 1.96 2.00 2.04 V
Hysteresis in
continuous - 20 -
Vhyst_POR_PDR Hysteresis of VPOR and VPDR mode mV
Hysteresis in
- 30 -
other mode
1. Continuous mode means Run/Sleep modes, or temperature sensor enable in Low-power run/Low-power sleep modes.
2. Specified by design. Not tested in production.
VREFINT Internal reference voltage -40°C < TJ < 105°C 1.182 1.212 1.232 V
ADC sampling time when reading
tS_vrefint (1) - 4(2) - - µs
the internal reference voltage
Start time of reference voltage
tstart_vrefint - - 8 12(2) µs
buffer when ADC is enable
VREFINT buffer consumption from
IDD(VREFINTBUF) - - 12.5 20(2) µA
VDD when converted by ADC
Internal reference voltage spread
∆VREFINT VDD = 3 V - 5 7.5(2) mV
over the temperature range
V
1.235
1.23
1.225
1.22
1.215
1.21
1.205
1.2
1.195
1.19
1.185
-40 -20 0 20 40 60 80 100 120 °C
Mean Min Max
MSv40169V2
I SW = V DDIO1 × f SW × C
where
ISW is the current sunk by a switching I/O to charge/discharge the capacitive load
VDDIO1 is the I/O supply voltage
fSW is the I/O switching frequency
C is the total capacitance seen by the I/O pin: C = CINT+ CEXT + CS
CS is the PCB board capacitance including the pad pin.
The test pin is configured in push-pull output mode and is toggled by software at a fixed
frequency.
Voltage scaling
- 8 48
Range 1
fHSE_ext User external clock source frequency MHz
Voltage scaling
- 8 26
Range 2
VHSEH OSC_IN input pin high level voltage - 0.7 VDDIO1 - VDDIO1 V
VHSEL OSC_IN input pin low level voltage - VSS - 0.3 VDDIO1 V
Voltage scaling
7 - -
tw(HSEH) Range 1
OSC_IN high or low time ns
tw(HSEL) Voltage scaling
18 - -
Range 2
1. Specified by design. Not tested in production.
tw(HSEH)
VHSEH
90%
10%
VHSEL
tr(HSE) t
tf(HSE) tw(HSEL)
THSE
MS19214V2
VLSEL OSC32_IN input pin low level voltage - VSS - 0.3 VDDIO1 V
tw(LSEH)
OSC32_IN high or low time - 250 - - ns
tw(LSEL)
1. Specified by design. Not tested in production.
tw(LSEH)
VLSEH
90%
10%
VLSEL
tr(LSE) t
tf(LSE) tw(LSEL)
TLSE
MS19215V2
For CL1 and CL2, it is recommended to use high-quality external ceramic capacitors in the
5 pF to 20 pF range (typ.), designed for high-frequency applications, and selected to match
the requirements of the crystal or resonator (see Figure 14). CL1 and CL2 are usually the
same size. The crystal manufacturer typically specifies a load capacitance which is the
series combination of CL1 and CL2. PCB and MCU pin capacitance must be included (10 pF
can be used as a rough estimate of the combined pin and board capacitance) when sizing
CL1 and CL2.
Note: For information on selecting the crystal, refer to the application note AN2867 “Oscillator
design guide for ST microcontrollers” available from the ST website www.st.com.
OSC_IN fHSE
Bias
8 MHz controlled
resonator RF gain
MS19876V1
LSEDRV[1:0] = 00
- 250 -
Low drive capability
LSEDRV[1:0] = 01
- 315 -
Medium low drive capability
IDD(LSE) LSE current consumption nA
LSEDRV[1:0] = 10
- 500 -
Medium high drive capability
LSEDRV[1:0] = 11
- 630 -
High drive capability
LSEDRV[1:0] = 00
- - 0.5
Low drive capability
LSEDRV[1:0] = 01
- - 0.75
Maximum critical crystal Medium low drive capability
Gmcritmax µA/V
gm LSEDRV[1:0] = 10
- - 1.7
Medium high drive capability
LSEDRV[1:0] = 11
- - 2.7
High drive capability
tSU(LSE)(3) Startup time VDD is stabilized - 2 - s
1. Specified by design. Not tested in production.
2. Refer to the note and caution paragraphs below the table, and to the application note AN2867 “Oscillator design guide for
ST microcontrollers”.
3. tSU(LSE) is the startup time measured from the moment it is enabled (by software) to a stabilized 32.768 kHz oscillation is
reached. This value is measured for a standard crystal and it can vary significantly with the crystal manufacturer
Note: For information on selecting the crystal, refer to the application note AN2867 “Oscillator
design guide for ST microcontrollers” available from the ST website www.st.com.
OSC32_IN fLSE
OSC32_OUT
CL2
MS30253V2
Note: An external resistor is not required between OSC32_IN and OSC32_OUT and it is forbidden
to add one.
Prequalification trials
Most of the common failures (unexpected reset and program counter corruption) can be
reproduced by manually forcing a low state on the NRST pin or the Oscillator pins for 1
second.
To complete these trials, ESD stress can be applied directly on the device, over the range of
specification values. When unexpected behavior is detected, the software can be hardened
to prevent unrecoverable errors occurring (see application note AN1015).
Static latch-up
Two complementary static tests are required on six parts to assess the latch-up
performance:
• A supply overvoltage is applied to each power supply pin.
• A current is injected to each input, output and configurable I/O pin.
These tests are compliant with EIA/JESD 78A IC latch-up standard.
0.3 x VDDIO1
(2) V
I/O input low level
VIL(1) All VDD(min) < VDDIO1 < 3.6 V - -
voltage 0.39 x VDDIO1
- 0.06 (3)
0.7 x VDDIO1(2) - -
(1) I/O input high level
VIH All VDD(min) < VDDIO1 < 3.6 V 0.49 x VDDIO1 V
voltage - -
+ 0.26(3)
I/O input FT_xx,
Vhys(3) VDD(min) < VDDIO1 < 3.6 V - 200 - mV
hysteresis NRST
0 < VIN ≤ VDDIO1 - - ±70
All
except VDDIO1 ≤ VIN ≤ VDDIO1+1 V - - 600(4) nA
Input leakage FT_e
Ilkg VDDIO1 +1 V < VIN ≤ 5.5 V(3) - - 150(4)
current(3)
FT_e
(5) 0 < VIN ≤ VDDIO1 - - 5 µA
Weak pull-up
RPU equivalent resistor VIN = VSS 25 40 55 kΩ
(6)
Weak pull-down
RPD equivalent VIN = VDDIO1 25 40 55 kΩ
resistor(6)
I/O pin
CIO - - 5 - pF
capacitance
1. Refer to Figure 16: I/O input characteristics.
2. Tested in production.
3. Guaranteed by design.
4. This value represents the pad leakage of the I/O itself. The total product pad leakage is provided by this formula:
ITotal_Ileak_max = 10 µA + [number of I/Os where VIN is applied on the pad] ₓ Ilkg(Max).
5. FT_e with diode enabled. Input leakage current of FT_e I/Os with the diode disabled is the same as standard I/Os.
6. Pull-up and pull-down resistors are designed with a true resistance in series with a switchable PMOS/NMOS. This
PMOS/NMOS contribution to the series resistance is minimal (~10% order).
All I/Os are CMOS- and TTL-compliant (no software configuration required). Their
characteristics cover more than the strict CMOS-technology or TTL parameters, as shown
in Figure 16.
Minimum required
2.5
logic level 1 zone
nt)
ireme
ard requ TTL standard requirement
2 S stand
(CMO
V DDIO
VIN (V) = 0.7
V IHmin
1.5
+ 0.26
0.49 VDDIO
VIHmin = Undefined input range
1
VDDIO - 0.06
VILmax = 0.39 dard require
ment)
TTL standard requirement
(CMOS stan
VDDIO
0.5
VILmax = 0.3
Minimum required
logic level 0 zone
0
2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6
Figure 17. Current injection into FT_e input with diode active
5
IINJ (mA)
VOL Output low level voltage for an I/O pin CMOS port(3) - 0.4 V
|IIO| 6 mA
VOH Output high level voltage for an I/O pin VDDIO1 ≥ 2.7 V VDDIO1 - 0.4 - V
VOL(4) Output low level voltage for an I/O pin TTL port(3) - 0.4 V
|IIO| = 6 mA
VOH(4) Output high level voltage for an I/O pin VDDIO1 ≥ 2.7 V 2.4 - V
VOL(4) Output low level voltage for an I/O pin All I/Os - 1.3 V
|IIO| = 15 mA
VOH(4) Output high level voltage for an I/O pin VDDIO1 ≥ 2.7 V VDDIO1 - 1.3 - V
VOL(4) Output low level voltage for an I/O pin |IIO| = 3 mA - 0.4 V
VOH(4) Output high level voltage for an I/O pin VDDIO1 ≥ VDD(min) VDDIO1 - 0.45 - V
|IIO| = 20 mA
- 0.4
VOLFM+ Output low level voltage for an FT I/O VDDIO1 ≥ 2.7 V
(4) V
pin in FM+ mode (FT I/O with _f option) |I | = 9 mA
IO - 0.4
VDDIO1 ≥ VDD(min)
1. The IIO current sourced or sunk by the device must always respect the absolute maximum rating specified in Table 18:
Voltage characteristics, and the sum of the currents sourced or sunk by all the I/Os (I/O ports and control pins) must always
respect the absolute maximum ratings ΣIIO.
2. As PC13, PC14 and PC15 are supplied through the power switch, the sum of currents sourced by those I/Os must not
exceed 3 mA.
3. TTL and CMOS outputs are compatible with JEDEC standards JESD36 and JESD52.
4. Specified by design. Not tested in production.
90% 10%
50% 50%
10% 90%
t r(IO)out t f(IO)out
Maximum frequency is achieved with a duty cycle at (45 - 55%) when loaded by the
specified capacitance.
MS32132V4
External
reset circuit(1) VDD
RPU
NRST(2) Internal reset
Filter
0.1 μF(3)
MS19878V4
1.5 43 50
3.5 100 680
7.5 214 2200
12.5 357 4700
12 bits
19.5 557 8200
39.5 1129 15000
79.5 2271 33000
160.5 4586 50000
1.5 43 68
3.5 100 820
7.5 214 3300
12.5 357 5600
10 bits
19.5 557 10000
39.5 1129 22000
79.5 2271 39000
160.5 4586 50000
1.5 43 82
3.5 100 1500
7.5 214 3900
12.5 357 6800
8 bits
19.5 557 12000
39.5 1129 27000
79.5 2271 50000
160.5 4586 50000
1.5 43 390
3.5 100 2200
7.5 214 5600
12.5 357 10000
6 bits
19.5 557 15000
39.5 1129 33000
79.5 2271 50000
160.5 4586 50000
1. Specified by design. Not tested in production.
2. I/O analog switch voltage booster must be enabled (BOOSTEN = 1 in the SYSCFG_CFGR1) when VDDA < 2.4 V and
disabled when VDDA ≥ 2.4 V.
VREF+ VDDA
[1LSB = (or )]
Output code 2n 2n
EG
(1) Example of an actual transfer curve
2n-1 (2) Ideal transfer curve
2n-2 (3) End-point correlation line
2n-3 (2)
n = ADC resolution
ET = total unadjusted error: maximum deviation
(3) between the actual and ideal transfer curves
ET
7 (1) EO = offset error: maximum deviation between the first
actual transition and the first ideal one
6
EL EG = gain error: deviation between the last ideal
5 EO
transition and the last actual one
4 ED = differential linearity error: maximum deviation
ED between actual steps and the ideal one
3
2 EL = integral linearity error: maximum deviation between
1 any actual transition and the end point correlation line
1 LSB ideal
0 VREF+ (VDDA)
(1/2n)*VREF+
(2/2n)*VREF+
(3/2n)*VREF+
(4/2n)*VREF+
(5/2n)*VREF+
(6/2n)*VREF+
(7/2n)*VREF+
(2n-3/2n)*VREF+
(2n-2/2n)*VREF+
(2n-1/2n)*VREF+
(2n/2n)*VREF+
VSSA
MSv19880V6
VDDA(4) VREF+(4)
MSv67871V3
1. Refer to Table 56: ADC characteristics for the values of RAIN and CADC.
2. Cparasitic represents the capacitance of the PCB (dependent on soldering and PCB layout quality) plus the
pad capacitance (refer to Table 48: I/O static characteristics for the value of the pad capacitance). A high
Cparasitic value downgrades conversion accuracy. To remedy this, fADC should be reduced.
3. Refer to Table 48: I/O static characteristics for the values of Ilkg.
4. Refer to Figure 9: Power supply scheme.
Battery VBRS = 0 - 5 -
RBC charging kΩ
resistor VBRS = 1 - 1.5 -
- 1 - tTIMxCLK
tres(TIM) Timer resolution time
fTIMxCLK = 64 MHz 15.625 - ns
/4 0 0.125 512
/8 1 0.250 1024
/16 2 0.500 2048
/32 3 1.0 4096 ms
/64 4 2.0 8192
/128 5 4.0 16384
/256 6 or 7 8.0 32768
1. The exact timings further depend on the phase of the APB interface clock versus the LSI clock, which causes an
uncertainty of one RC period.
Standard-mode 2
Analog filter enabled
9
DNF = 0
Fast-mode
Minimum I2CCLK Analog filter disabled
frequency for correct 9
fI2CCLK(min) DNF = 1 MHz
operation of I2C
peripheral Analog filter enabled
18
DNF = 0
Fast-mode Plus
Analog filter disabled
16
DNF = 1
The SDA and SCL I/O requirements are met with the following restrictions: the SDA and
SCL I/O pins are not “true” open-drain. When configured as open-drain, the PMOS
connected between the I/O pin and VDDIO1 is disabled, but is still present. Only FT_f I/O pins
support Fm+ low-level output current maximum requirement. Refer to Section 5.3.14: I/O
port characteristics for the I2C I/Os characteristics.
All I2C SDA and SCL I/Os embed an analog filter. Refer to the following table for its
characteristics:
SPI/I2S characteristics
Unless otherwise specified, the parameters given in Table 66 for SPI are derived from tests
performed under the ambient temperature, fPCLKx frequency and supply voltage conditions
summarized in Table 21: General operating conditions. The additional general conditions
are:
• OSPEEDRy[1:0] set to 11 (output speed)
• capacitive load C = 30 pF
• measurement points at CMOS levels: 0.5 x VDD
Refer to Section 5.3.14: I/O port characteristics for more details on the input/output alternate
function characteristics (NSS, SCK, MOSI, MISO for SPI).
Master mode
VDD(min) < VDD < 3.6 V 32
Range 1
Master transmitter
VDD(min) < VDD < 3.6 V 32
Range 1
Slave receiver
VDD(min) < VDD < 3.6 V 32
fSCK Range 1
SPI clock frequency - - MHz
1/tc(SCK)
Slave transmitter/full duplex
2.7 < VDD < 3.6 V 32
Range 1
Slave transmitter/full duplex
VDD(min) < VDD < 3.6 V 25
Range 1
VDD(min) < VDD < 3.6 V
8
Range 2
tsu(NSS) NSS setup time Slave mode, SPI prescaler = 2 4 ₓ TPCLK - - ns
th(NSS) NSS hold time Slave mode, SPI prescaler = 2 2 ₓ TPCLK - - ns
TPCLK TPCLK
tw(SCKH) SCK high time Master mode TPCLK ns
- 1.5 +1
TPCLK TPCLK
tw(SCKL) SCK low time Master mode TPCLK ns
- 1.5 +1
Master data input setup
tsu(MI) - 1 - - ns
time
Slave data input setup
tsu(SI) - 3 - - ns
time
Master data input hold
th(MI) - 5 - - ns
time
Slave data input hold
th(SI) - 2 - - ns
time
ta(SO) Data output access time Slave mode 9 - 34 ns
tdis(SO) Data output disable time Slave mode 9 - 16 ns
2.7 < VDD < 3.6 V
- 9 12
Range 1
Slave data output valid VDD(min) < VDD < 3.6 V
tv(SO) - 9 19.5 ns
time Range 1
VDD(min) < VDD < 3.6 V
- 11 24
Voltage Range 2
Master data output valid
tv(MO) - - 3 5 ns
time
NSS input
tc(SCK) th(NSS)
tsu(NSS) tw(SCKH)
CPHA=0
SCK input
CPOL=0
CPHA=0
CPOL=1
ta(SO) tw(SCKL) tv(SO) th(SO) tdis(SO)
MISO output First bit OUT Next bits OUT Last bit OUT
tsu(SI) th(SI)
MSv41658V2
NSS input
tc(SCK) th(NSS)
tsu(NSS) tw(SCKH)
CPHA=1
SCK input
CPOL=0
CPHA=1
CPOL=1
ta(SO) tw(SCKL) tv(SO) th(SO) tdis(SO)
MISO output First bit OUT Next bits OUT Last bit OUT
tsu(SI) th(SI)
MSv41659V2
High
NSS input
tc(SCK)
tw(SCKH)
CPHA=0
SCK output
CPOL=0
CPHA=0
CPOL=1
tw(SCKL)
CPHA=1
SCK output
CPOL=0
CPHA=1
CPOL=1
tsu(MI) th(MI)
MOSI output First bit OUT Next bits OUT Last bit OUT
tv(MO) th(MO)
MSv72626V1
tc(CK)
CPOL = 0
CK Input
CPOL = 1
WS input
tsu(SD_SR) th(SD_SR)
MSv39721V1
1. Measurement points are done at CMOS levels: 0.3 VDDIO1 and 0.7 VDDIO1.
2. LSB transmit/receive of the previously transmitted byte. No LSB transmit/receive is sent before the first
byte.
90%
10%
tf(CK) tr(CK)
tc(CK)
CK output
CPOL = 0
tw(CKH)
CPOL = 1
tv(WS) tw(CKL) th(WS)
WS output
tv(SD_MT) th(SD_MT)
tsu(SD_MR) th(SD_MR)
MSv39720V1
Master mode - - 8
fCK USART clock frequency MHz
Slave mode - - 21
tsu(NSS) NSS setup time Slave mode Tker(1) + 2 - - ns
th(NSS) NSS hold time Slave mode 2 - - ns
CPOL=0
CPHA=0
CPOL=1
tw(CKL)
CPHA=1
CK output
CPOL=0
CPHA=1
CPOL=1
tsu(RX) th(RX)
1/fCK th(NSS)
tsu(NSS) tw(CKH)
CPHA=0
CPOL=0
CK input
CPHA=0
CPOL=1
tw(CKL) tv(TX) th(TX)
TX output First bit OUT Next bits OUT Last bit OUT
tsu(RX) th(RX)
MSv65387V6
6 Package information
K[Û
A2 A B
c
B
b ccc
e
0.25 mm
D SEATING GAUGE PLANE
PLANE
C k
8
E1 E
1 L
A1
L1
O7_SO8_ME_V3
A - - 1.750 - - 0.0689
A1 0.100 - 0.250 0.0039 - 0.0098
A2 1.250 - - 0.0492 - -
b 0.280 - 0.480 0.0110 - 0.0189
c 0.100 - 0.230 0.0039 - 0.0091
(2)
D 4.800 4.900 5.000 0.1890 0.1929 0.1969
E 5.800 6.000 6.200 0.2283 0.2362 0.2441
E1(3) 3.800 3.900 4.000 0.1496 0.1535 0.1575
e - 1.270 - - 0.0500 -
h 0.250 - 0.500 0.0098 - 0.0197
k 0° - 8° 0° - 8°
L 0.400 - 1.270 0.0157 - 0.0500
L1 - 1.040 - - 0.0409 -
ccc - - 0.100 - - 0.0039
1. Values in inches are converted from mm and rounded to four decimal digits.
2. Dimension “D” does not include mold flash, protrusions or gate burrs.
Mold flash, protrusions or gate burrs shall not exceed 0.15mm per side
3. Dimension “E1” does not include interlead flash or protrusions.
Interlead flash or protrusions shall not exceed 0.25 mm per side.
Note: The package top may be smaller than the package bottom. Dimensions D and E1 are
determinated at the outermost extremes of the plastic body exclusive of mold flash, tie bar
burrs, gate burrs and interleads flash, but including any mismatch between the top and
bottom of plastic body. Measurement side for mold flash, protusions or gate burrs is bottom
side.
0.6 (x8)
3.9
6.7
1.27
O7_FP_V1
20 11
c
E1 E
SEATING 0.25 mm
PLANE GAUGE PLANE
C
1 10
PIN 1
IDENTIFICATION
k
aaa C A1 L
A A2
L1
b e
YA_ME_V3
A - - 1.200 - - 0.0472
A1 0.050 - 0.150 0.0020 - 0.0059
A2 0.800 1.000 1.050 0.0315 0.0394 0.0413
b 0.190 - 0.300 0.0075 - 0.0118
c 0.090 - 0.200 0.0035 - 0.0079
D(2) 6.400 6.500 6.600 0.2520 0.2559 0.2598
E 6.200 6.400 6.600 0.2441 0.2520 0.2598
E1(3) 4.300 4.400 4.500 0.1693 0.1732 0.1772
e - 0.650 - - 0.0256 -
L 0.450 0.600 0.750 0.0177 0.0236 0.0295
L1 - 1.000 - - 0.0394 -
k 0° - 8° 0° - 8°
aaa - - 0.100 - - 0.0039
1. Values in inches are converted from mm and rounded to four decimal digits.
2. Dimension “D” does not include mold flash, protrusions or gate burrs. Mold flash, protrusions or gate burrs
shall not exceed 0.15 mm per side.
3. Dimension “E1” does not include interlead flash or protrusions. Interlead flash or protrusions shall not
exceed 0.25 mm per side.
1.35
0.25
7.10 4.40
1.35
1 10
BOTTOM VIEW
2 1
(2)
(6) R1
D 1/4 H
R2
B
B-
N
O
TI
E 1/4
C
SE
B GAUGE PLANE
4x N/4 TIPS
0.25
aaa C A-B D bbb H A-B D 4x S
N B
L
3
(L1)
(1) (11)
SECTION A-A
(N – 4)x e (13)
C
A
A2 A1 b ddd C A-B D
0.05 (12) ccc C
D (4)
(9) (11)
(2) (5)
b WITH PLATING
D1
D (3)
(10)
(11) c
1
c1(11)
2 E 1/4
(3) A B
3
D 1/4
E1 E b1 BASE METAL
(6) (2) (4) (11)
(3) (5)
A A SECTION B-B
(Section A-A)
θ 0° 3.5° 7° 0° 3.5° 7°
θ1 0° - - 0° - -
Notes:
1. Dimensioning and tolerancing schemes conform to ASME Y14.5M-1994.
2. The top package body size may be smaller than the bottom package size by as much
as 0.15 mm.
3. Datums A-B and D to be determined at datum plane H.
4. To be determined at the seating datum plane C.
5. Dimensions D1 and E1 do not include mold flash or protrusions. Allowable mold flash
or protrusions is “0.25 mm” per side. D1 and E1 are maximum plastic body size
dimensions including mold mismatch.
6. Details of pin 1 identifier are optional but must be located within the zone indicated.
7. All dimensions are in millimeters.
8. No intrusion is allowed inwards the leads.
9. Dimension b does not include a dambar protrusion. Allowable dambar protrusion shall
not cause the lead width to exceed the maximum “b” dimension by more than 0.08 mm.
Dambar cannot be located on the lower radius or the foot. The minimum space
between the protrusion and an adjacent lead is 0.07 mm for 0.4 mm and 0.5 mm pitch
packages.
10. The exact shape of each corner is optional.
11. These dimensions apply to the flat section of the lead between 0.10 mm and 0.25 mm
from the lead tip.
12. A1 is defined as the distance from the seating plane to the lowest point on the package
body.
13. N is the number of terminal positions for the specified body size.
14. Values in inches are converted from mm and rounded to four decimal digits.
15. Recommended values and tolerances.
32 25
1.2 REF
1 24
7.4
9.8
8 17
9 16
7.4
9.8
Soldering area
4x N/4 TIPS
aaa C A-B D
2 1
(2)
R1
H
R2
B
B-
D 1/4
N
O
(6)
TI
C
SE
B GAUGE PLANE
E 1/4
0.25
S
B
bbb H A-B D 4x
L
3
(13) (L1)
0.05 (N – 4)x e (1) (11)
A A2 C SECTION A-A
(12) ccc C
A1 ddd C A-B D
b
D (4)
(2) (5)
D1
(10) D (3) (9) (11)
N b WITH PLATING
1
2 E 1/4
(3) A 3
(6) B (3)
D 1/4 c c1
E1 E (11) (11)
(2) (4)
(5)
A A b1 BASE METAL
(Section A-A) (11)
SECTION B-B
TOP VIEW
5B_LQFP48_ME_V1
A - - 1.60 - - 0.0630
(12)
A1 0.05 - 0.15 0.0020 - 0.0059
A2 1.35 1.40 1.45 0.0531 0.0551 0.0571
(9)(11)
b 0.17 0.22 0.27 0.0067 0.0087 0.0106
(11)
b1 0.17 0.20 0.23 0.0067 0.0079 0.0090
(11)
c 0.09 - 0.20 0.0035 - 0.0079
c1(11) 0.09 - 0.16 0.0035 - 0.0063
(4)
D 9.00 BSC 0.3543 BSC
(2)(5)
D1 7.00 BSC 0.2756 BSC
E(4) 9.00 BSC 0.3543 BSC
E1(2)(5) 7.00 BSC 0.2756 BSC
e 0.50 BSC 0.1970 BSC
L 0.45 0.60 0.75 0.0177 0.0236 0.0295
L1 1.00 REF 0.0394 REF
N(13) 48
θ 0° 3.5° 7° 0° 3.5° 7°
θ1 0° - - 0° - -
Notes:
1. Dimensioning and tolerancing schemes conform to ASME Y14.5M-1994.
2. The Top package body size may be smaller than the bottom package size by as much
as 0.15 mm.
3. Datums A-B and D to be determined at datum plane H.
4. To be determined at seating datum plane C.
5. Dimensions D1 and E1 do not include mold flash or protrusions. Allowable mold flash
or protrusions is “0.25 mm” per side. D1 and E1 are Maximum plastic body size
dimensions including mold mismatch.
6. Details of pin 1 identifier are optional but must be located within the zone indicated.
7. All Dimensions are in millimeters.
8. No intrusion allowed inwards the leads.
9. Dimension “b” does not include dambar protrusion. Allowable dambar protrusion shall
not cause the lead width to exceed the maximum “b” dimension by more than 0.08 mm.
Dambar cannot be located on the lower radius or the foot. Minimum space between
protrusion and an adjacent lead is 0.07 mm for 0.4 mm and 0.5 mm pitch packages.
10. Exact shape of each corner is optional.
11. These dimensions apply to the flat section of the lead between 0.10 mm and 0.25 mm
from the lead tip.
12. A1 is defined as the distance from the seating plane to the lowest point on the package
body.
13. “N” is the number of terminal positions for the specified body size.
14. Values in inches are converted from mm and rounded to 4 decimal digits.
15. Drawing is not to scale.
36 25
37 24 0.30
0.20
9.70 7.30
48 13
1 12
5.80
9.70
5B_LQFP48_FP_V1
LQFP48 7 × 7 mm 84
SO8N 4.9 × 6 mm 86
LQFP48 7 × 7 mm 76
SO8N 4.9 × 6 mm 30
LQFP48 7 × 7 mm 42
7 Ordering information
Device family
STM32 = Arm® based 32-bit microcontroller
Product type
G = general-purpose
Device subfamily
030 = STM32G030
Pin count
J=8
F = 20
K = 32
C = 48
Package type
T = LQFP
P = TSSOP
M = SO˽N
Temperature range
6 = -40 to 85°C (105°C junction)
Options
˽TR = tape and reel packing
˽˽˽ = tray packing
other = 3-character ID incl. custom Flash code and packing information
For a list of available options (memory, package, and so on) or for further information on any
aspect of this device, contact your nearest ST sales office.
The STMicroelectronics group of companies (ST) places a high value on product security,
which is why the ST product(s) identified in this documentation may be certified by various
security certification bodies and/or may implement our own security measures as set forth
herein. However, no level of security certification and/or built-in security measures can
guarantee that ST products are resistant to all forms of attacks. As such, it is the
responsibility of each of ST's customers to determine if the level of security provided in an
ST product meets the customer needs both in relation to the ST product alone, as well as
when combined with other components and/or software for the customer end product or
application. In particular, take note that:
• ST products may have been certified by one or more security certification bodies, such
as Platform Security Architecture (www.psacertified.org) and/or Security Evaluation
standard for IoT Platforms (www.trustcb.com). For details concerning whether the ST
product(s) referenced herein have received security certification along with the level
and current status of such certification, either visit the relevant certification standards
website or go to the relevant product page on www.st.com for the most up to date
information. As the status and/or level of security certification for an ST product can
change from time to time, customers should re-check security certification status/level
as needed. If an ST product is not shown to be certified under a particular security
standard, customers should not assume it is certified.
• Certification bodies have the right to evaluate, grant and revoke security certification in
relation to ST products. These certification bodies are therefore independently
responsible for granting or revoking security certification for an ST product, and ST
does not take any responsibility for mistakes, evaluations, assessments, testing, or
other activity carried out by the certification body with respect to any ST product.
• Industry-based cryptographic algorithms (such as AES, DES, or MD5) and other open
standard technologies which may be used in conjunction with an ST product are based
on standards which were not developed by ST. ST does not take responsibility for any
flaws in such cryptographic algorithms or open technologies or for any methods which
have been or may be developed to bypass, decrypt or crack such algorithms or
technologies.
• While robust security testing may be done, no level of certification can absolutely
guarantee protections against all attacks, including, for example, against advanced
attacks which have not been tested for, against new or unidentified forms of attack, or
against any form of attack when using an ST product outside of its specification or
intended use, or in conjunction with other components or software which are used by
customer to create their end product or application. ST is not responsible for resistance
against such attacks. As such, regardless of the incorporated security features and/or
any information or support that may be provided by ST, each customer is solely
responsible for determining if the level of attacks tested for meets their needs, both in
relation to the ST product alone and when incorporated into a customer end product or
application.
• All security features of ST products (inclusive of any hardware, software,
documentation, and the like), including but not limited to any enhanced security
features added by ST, are provided on an "AS IS" BASIS. AS SUCH, TO THE EXTENT
PERMITTED BY APPLICABLE LAW, ST DISCLAIMS ALL WARRANTIES, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, unless the
applicable written and signed contract terms specifically provide otherwise.
9 Revision history
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and
improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on
ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order
acknowledgment.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or
the design of purchasers’ products.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. For additional information about ST trademarks, refer to www.st.com/trademarks. All other product
or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.