Datasheet-Stm32f051c8t6 C9863
Datasheet-Stm32f051c8t6 C9863
STM32F051x8
Low- and medium-density advanced ARM™-based 32-bit MCU with
16 to 64 Kbytes Flash, timers, ADC, DAC and comm. interfaces
Datasheet − production data
Features
■ Core: ARM 32-bit Cortex™-M0 CPU,
frequency up to 48 MHz
■ Memories LQFP64 10x10 mm UFQFPN32 5x5 mm
LQFP48 7x7 mm
– 16 to 64 Kbytes of Flash memory LQFP32 7x7 mm
– 8 Kbytes of SRAM with HW parity checking – One 16-bit timer, with 2 IC/OC, 1 OCN,
■ CRC calculation unit deadtime generation and emergency stop
– Two 16-bit timers, each with IC/OC and
■ Reset and power management
OCN, deadtime generation, emergency
– Voltage range: 2.0 V to 3.6 V stop and modulator gate for IR control
– Power-on/Power down reset (POR/PDR) – One 16-bit timer with 1 IC/OC
– Programmable voltage detector (PVD) – Independent and system watchdog timers
– Low power modes: Sleep, Stop, Standby – SysTick timer: 24-bit downcounter
– VBAT supply for RTC and backup registers – One 16-bit basic timer to drive the DAC
■ Clock management ■ Calendar RTC with alarm and periodic wakeup
– 4 to 32 MHz crystal oscillator from Stop/Standby
– 32 kHz oscillator for RTC with calibration ■ Communication interfaces
– Internal 8 MHz RC with x6 PLL option – Up to two I2C interfaces; one supporting
– Internal 40 kHz RC oscillator Fast Mode Plus (1 Mbit/s) with 20 mA
■ Up to 55 fast I/Os current sink, SMBus/PMBus, and wakeup
– All mappable on external interrupt vectors from STOP
– Up to 36 I/Os with 5 V tolerant capability – Up to two USARTs supporting master
synchronous SPI and modem control; one
■ 5-channel DMA controller with ISO7816 interface, LIN, IrDA
■ 1 × 12-bit, 1.0 µs ADC (up to 16 channels) capability, auto baud rate detection and
– Conversion range: 0 to 3.6V wakeup feature
– Separate analog supply from 2.4 up to 3.6 – Up to two SPIs (18 Mbit/s) with 4 to 16
programmable bit frame, 1 with I2S
■ One 12-bit D/A converter interface multiplexed
■ Two fast low-power analog comparators with – HDMI CEC interface, wakeup on header
programmable input and output reception
■ Up to 18 capacitive sensing channels ■ Serial wire debug (SWD)
supporting touchkey, linear and rotary touch
■ 96-bit unique ID
sensors
■ Up to 11 timers Table 1. Device summary
– One 16-bit 7-channel advanced-control
Reference Part number
timer for 6 channels PWM output, with
deadtime generation and emergency stop STM32F051x4 STM32F051K4, STM32F051C4, STM32F051R4
– One 32-bit and one 16-bit timer, with up to STM32F051x6 STM32F051K6, STM32F051C6, STM32F051R6
4 IC/OC, usable for IR control decoding STM32F051x8 STM32F051C8, STM32F051R8, STM32F051K8
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.1 ARM® CortexTM-M0 core with embedded Flash and SRAM . . . . . . . . . 12
3.2 Memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.3 Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.4 Cyclic redundancy check calculation unit (CRC) . . . . . . . . . . . . . . . . . . . 13
3.5 Power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.5.1 Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.5.2 Power supply supervisors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.5.3 Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.5.4 Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.6 Clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.7 General-purpose inputs/outputs (GPIOs) . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.8 Direct memory access controller (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.9 Interrupts and events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.9.1 Nested vectored interrupt controller (NVIC) . . . . . . . . . . . . . . . . . . . . . . 16
3.9.2 Extended interrupt/event controller (EXTI) . . . . . . . . . . . . . . . . . . . . . . . 16
3.10 Analog to digital converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.10.1 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.10.2 Internal voltage reference (VREFINT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.10.3 VBAT battery voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.11 Digital-to-analog converter (DAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.12 Comparators (COMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.13 Touch sensing controller (TSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.14 Timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.14.1 Advanced-control timer (TIM1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.14.2 General-purpose timers (TIM2..3, TIM14..17) . . . . . . . . . . . . . . . . . . . . 21
3.14.3 Basic timer TIM6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.14.4 Independent watchdog (IWDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.14.5 System window watchdog (WWDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5 Memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
6 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.1 Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.1.1 Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.1.6 Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
6.1.7 Current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
6.2 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
6.3 Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.3.1 General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.3.2 Operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . . 43
6.3.3 Embedded reset and power control block characteristics . . . . . . . . . . . 43
6.3.4 Embedded reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.3.5 Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.3.6 External clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
6.3.7 Internal clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
6.3.8 PLL characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
6.3.9 Memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
6.3.10 EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
6.3.11 Electrical sensitivity characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
6.3.12 I/O current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
6.3.13 I/O port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
7 Package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
7.1 Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
7.2 Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
7.2.1 Reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
7.2.2 Selecting the product temperature range . . . . . . . . . . . . . . . . . . . . . . . 100
List of tables
List of figures
1 Introduction
This datasheet provides the ordering information and mechanical device characteristics of
the STM32F051x microcontrollers.
This STM32F051x4, STM32F051x6, and STM32F051x8 datasheet should be read in
conjunction with the STM32F0xxxx reference manual (RM0091). The reference manual is
available from the STMicroelectronics website www.st.com.
For information on the ARM Cortex™-M0 core, please refer to the Cortex™-M0 Technical
Reference Manual, available from the www.arm.com website at the following address:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0432c/index.html.
2 Description
The STM32F051x family incorporates the high-performance ARM Cortex™-M0 32-bit RISC
core operating at a 48 MHz frequency, high-speed embedded memories (Flash memory up
to 64 Kbytes and SRAM up to 8 Kbytes), and an extensive range of enhanced peripherals
and I/Os. All devices offer standard communication interfaces (up to two I2Cs, two SPIs, one
I2S, one HDMI CEC, and up to two USARTs), one 12-bit ADC, one 12-bit DAC, up to five
general-purpose 16-bit timers, a 32-bit timer and an advanced-control PWM timer.
The STM32F051x family operates in the -40 to +85 °C and -40 to +105 °C temperature
ranges, from a 2.0 to 3.6 V power supply. A comprehensive set of power-saving modes
allows the design of low-power applications.
The STM32F051x family includes devices in four different packages ranging from 32 pins to
64 pins. Depending on the device chosen, different sets of peripherals are included. The
description below provides an overview of the complete range of peripherals proposed in
this family.
These features make the STM32F051x microcontroller family suitable for a wide range of
applications such as application control and user interfaces, handheld equipment, A/V
receivers and digital TV, PC peripherals, gaming and GPS platforms, industrial applications,
PLCs, inverters, printers, scanners, alarm systems, video intercoms, and HVACs.
Flash (Kbytes) 16 32 64 16 32 64 16 32 64
SRAM (Kbytes) 4 8 4 8 4 8
Advanced
1 (16-bit)
control
FLASH OBL
&,!3( 633
)NTERFACE
+" 6$$
#/24%8
- #05 BITS
F(#,+ -(Z 0/2 3500,9
350%26)3)/. .234
2ESET
CONTROLLER
32!- 6$$!
.6)# 6$$! )NT 0/2 0$2
32!-
+" 6
"US-ATRIX
$$
.6)#
2# (3 -(Z 06$
2# (3 -(Z 6$$!
'0 $-! 6$$
2# ,3
CHANNELS /3#?). 0&
84!, /3#
0,,
-(Z /3#?/54 0&
)77$'
!("0#,+ 0OWER
!0"0#,+ #ONTROLLER 6"!4 6 TO 6
2%3%4 !$##,+
#,/#+ #%##,+ 637
#/.42/, 53!24#,+ /3#?). 0#
(#,+ 84!, K(Z
0!;= '0)/ PORT ! /3#?/54 0#
&#,+
"ACKUP
!(" DECODER
4)-%2 CHANNEL
COMPL "2+ AS !&
%84)4
!& CHANNEL
7+50 77$' 4)-%2
COMPL "2+ AS !&
-/3)3$ )2?/54 AS !&
-)3/-#+
30))3
3#+#+
.3373 AS !& $"'-#5 2848 #43 243
53!24 #+ AS !&
-/3) -)3/
3#+ .33 30) 53!24 2848 #43 243
AS !& #+ AS !&
)&
BIT $!#
4)-%2 )& $!#?/54 AS !&
6$$!
633! 6$$! 6$$!
-36
3 Functional overview
3.2 Memories
The device has the following features:
● Up to 8 Kbytes of embedded SRAM accessed (read/write) at CPU clock speed with 0
wait states and featuring embedded parity checking with exception generation for fail-
critical applications.
● The non-volatile memory is divided into two arrays:
– 16 to 64 Kbytes of embedded Flash memory for programs and data
– Option bytes
The option bytes are used to write-protect the memory (with 4 KB granularity) and/or
readout-protect the whole memory with the following options:
– Level 0: no readout protection
– Level 1: memory readout protection, the Flash memory cannot be read from or
written to if either debug features are connected or boot in RAM is selected
– Level 2: chip readout protection, debug features (Cortex-M0 serial wire) and boot
in RAM selection disabled
Several prescalers allow the application to configure the frequency of the AHB and the APB
domains. The maximum frequency of the AHB and the APB domains is 48 MHz.
&,)4&#,+
TO &LASH PROGRAMMING INTERFACE
(3)
TO )#
393#,+
TO )3
,3%
-(Z (3) TO #%#
(3) 2#
(#,+ TO !("