STM32G051x6/x8 Arm Cortex -M0+ 32-bit MCU, up to 64 KB Flash, 18 KB RAM, 2x USART, timers, ADC, DAC, comm. I/Fs, 1.7-3.6V Datasheet - production data Features Core: Arm 32-bit Cortex -M0+ CPU, frequency up to 64 MHz TSSOP20 LQFP32 UFQFPN28 WLCSP20 6.4 4.4 mm -40C to 85C/105C/125C operating 7 7 mm 4 4 mm 1.94 2.40 mm LQFP48 UFQFPN32 temperature 5 5 mm 7 7 mm Memories UFQFPN48 7 7 mm Up to 64 Kbytes of Flash memory with protection and securable area Communication interfaces 18 Kbytes of SRAM (16 Kbytes with HW 2 Two I C-bus interfaces supporting Fast- parity check) mode Plus (1 Mbit/s) with extra current CRC calculation unit sink, one supporting SMBus/PMBus and wakeup from Stop mode Reset and power management Two USARTs with master/slave Voltage range: 1.7 V to 3.6 V synchronous SPI one supporting ISO7816 Power-on/Power-down reset (POR/PDR) interface, LIN, IrDA capability, auto baud Programmable Brownout reset (BOR) rate detection and wakeup feature Programmable voltage detector (PVD) One low-power UART Low-power modes: Two SPIs (32 Mbit/s) with 4- to 16-bit Sleep, Stop, Standby, Shutdown programmable bitframe, one multiplexed V supply for RTC and backup registers 2 BAT with I S interface Clock management Development support: serial wire debug (SWD) 4 to 48 MHz crystal oscillator 96-bit unique ID 32 kHz crystal oscillator with calibration Internal 16 MHz RC with PLL option All packages ECOPACK 2 compliant Internal 32 kHz RC oscillator (5 %) Table 1. Device summary Up to 44 fast I/Os All mappable on external interrupt vectors Reference Part number Multiple 5 V-tolerant I/Os STM32G051C6, STM32G051F6, 7-channel DMA controller with flexible mapping STM32G051x6 STM32G051G6, STM32G051K6 12-bit, 0.4 s ADC (up to 16 ext. channels) STM32G051C8, STM32G051F8, Up to 16-bit with hardware oversampling STM32G051x8 STM32G051G8, STM32G051K8 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 November 2021 DS13303 Rev 3 1/126 This is information on a product in full production. www.st.comContents STM32G051x6/x8 Contents 1 Introduction 9 2 Description 10 3 Functional overview 13 3.1 Arm Cortex -M0+ core with MPU . 13 3.2 Memory protection unit . 13 3.3 Embedded Flash memory 13 3.3.1 Securable area . 14 3.4 Embedded SRAM . 15 3.5 Boot modes . 15 3.6 Cyclic redundancy check calculation unit (CRC) . 15 3.7 Power supply management . 15 3.7.1 Power supply schemes . 15 3.7.2 Power supply supervisor 17 3.7.3 Voltage regulator 17 3.7.4 Low-power modes . 18 3.7.5 Reset mode 19 3.7.6 VBAT operation . 19 3.8 Interconnect of peripherals 19 3.9 Clocks and startup 21 3.10 General-purpose inputs/outputs (GPIOs) . 21 3.11 Direct memory access controller (DMA) 22 3.12 DMA request multiplexer (DMAMUX) 22 3.13 Interrupts and events 22 3.13.1 Nested vectored interrupt controller (NVIC) 23 3.13.2 Extended interrupt/event controller (EXTI) 23 3.14 Analog-to-digital converter (ADC) 24 3.14.1 Temperature sensor 24 3.14.2 Internal voltage reference (V ) . 25 REFINT 3.14.3 V battery voltage monitoring . 25 BAT 3.15 Digital-to-analog converter (DAC) 25 3.16 Voltage reference buffer (VREFBUF) 26 2/126 DS13303 Rev 3