This is information on a product in full production.
September 2021 DS12231 Rev 4 1/136
STM32G081xB
Arm
®
Cortex
®
-M0+ 32-bit MCU, 128 KB Flash, 36 KB RAM,
4x USART, timers, ADC, DAC, comm. I/Fs, AES, RNG, 1.7-3.6V
Datasheet - production data
Features
Core: Arm
®
32-bit Cortex
®
-M0+ CPU,
frequency up to 64 MHz
-40°C to 85°C/105°C/125°C operating
temperature
Memories
128 Kbytes of Flash memory with
protection and securable area
36 Kbytes of SRAM (32 Kbytes with HW
parity check)
CRC calculation unit
Reset and power management
Voltage range: 1.7 V to 3.6 V
Power-on/Power-down reset (POR/PDR)
Programmable Brownout reset (BOR)
Programmable voltage detector (PVD)
Low-power modes:
Sleep, Stop, Standby, Shutdown
–V
BAT
supply for RTC and backup registers
Clock management
4 to 48 MHz crystal oscillator
32 kHz crystal oscillator with calibration
Internal 16 MHz RC with PLL option (±1 %)
Internal 32 kHz RC oscillator (±5 %)
Up to 60 fast I/Os
All mappable on external interrupt vectors
Multiple 5 V-tolerant I/Os
7-channel DMA controller with flexible mapping
12-bit, 0.4 µs ADC (up to 16 ext. channels)
Up to 16-bit with hardware oversampling
Conversion range: 0 to 3.6V
Two 12-bit DACs, low-power sample-and-hold
Two fast low-power analog comparators, with
programmable input and output, rail-to-rail
14 timers (two 128 MHz capable): 16-bit for
advanced motor control, one 32-bit and five 16-
bit general-purpose, two basic 16-bit, two low-
power 16-bit, two watchdogs, SysTick timer
Calendar RTC with alarm and periodic wakeup
from Stop/Standby/Shutdown
Communication interfaces
–Two I
2
C-bus interfaces supporting Fast-
mode Plus (1 Mbit/s) with extra current
sink, one supporting SMBus/PMBus and
wakeup from Stop mode
Four USARTs with master/slave
synchronous SPI; two supporting ISO7816
interface, LIN, IrDA capability, auto baud
rate detection and wakeup feature
One low-power UART
Two SPIs (32 Mbit/s) with 4- to 16-bit
programmable bitframe, one multiplexed
with I
2
S interface
HDMI CEC interface, wakeup on header
USB Type-C™ Power Delivery controller
True random number generator (RNG)
AES encryption with 128/256-bit key
Development support: serial wire debug (SWD)
96-bit unique ID
All packages ECOPACK
2 compliant
Table 1. Device summary
Reference Part number
STM32G081xB
STM32G081CB, STM32G081EB,
STM32G081GB, STM32G081KB,
STM32G081RB
LQFP64
UFQFPN48
UFQFPN32
UFQFPN28
LQFP48
LQFP32
WLCSP25
2.3 × 2.5 mm
UFBGA64
5
×
5mm
10
×
10 mm
7
×
7mm
7
×
7mm
7 × 7 mm
5×5mm
4×4mm
www.st.com
Contents STM32G081xB
2/136 DS12231 Rev 4
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3 Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.1 Arm
®
Cortex
®
-M0+ core with MPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2 Memory protection unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.3 Embedded Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.3.1 Securable area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.4 Embedded SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.5 Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.6 Cyclic redundancy check calculation unit (CRC) . . . . . . . . . . . . . . . . . . . 16
3.7 Power supply management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.7.1 Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.7.2 Power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.7.3 Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.7.4 Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.7.5 Reset mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.7.6 VBAT operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.8 Interconnect of peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.9 Clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.10 General-purpose inputs/outputs (GPIOs) . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.11 Direct memory access controller (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.12 DMA request multiplexer (DMAMUX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.13 Interrupts and events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.13.1 Nested vectored interrupt controller (NVIC) . . . . . . . . . . . . . . . . . . . . . . 24
3.13.2 Extended interrupt/event controller (EXTI) . . . . . . . . . . . . . . . . . . . . . . 24
3.14 Analog-to-digital converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.14.1 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.14.2 Internal voltage reference (V
REFINT
) . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.14.3 V
BAT
battery voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.15 Digital-to-analog converter (DAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.16 Voltage reference buffer (VREFBUF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27