Beruflich Dokumente
Kultur Dokumente
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
Operating conditions:
Voltage range: 2.0 V to 3.6 V
ARM 32-bit Cortex-M0 CPU (48 MHz max) LQFP64 10x10 LQFP48 7x7 UFQFPN32 5x5
Memories Up to 11 timers
16 to 64 Kbytes of Flash memory One 16-bit 7-channel advanced-control
8 Kbytes of SRAM with HW parity checking timer for 6 channels PWM output, with
deadtime generation and emergency stop
CRC calculation unit
One 32-bit and one 16-bit timer, with up to
Clock management 4 IC/OC, usable for IR control decoding
4 to 32 MHz crystal oscillator One 16-bit timer, with 2 IC/OC, 1 OCN,
32 kHz oscillator for RTC with calibration deadtime generation and emergency stop
Internal 8 MHz RC with x6 PLL option Two 16-bit timers, each with IC/OC and
Internal 40 kHz RC oscillator OCN, deadtime generation, emergency
Calendar RTC with alarm and periodic wakeup stop and modulator gate for IR control
from Stop/Standby One 16-bit timer with 1 IC/OC
Reset and supply management Independent and system watchdog timers
Power-on/Power down reset (POR/PDR) SysTick timer: 24-bit downcounter
Programmable voltage detector (PVD) One 16-bit basic timer to drive the DAC
Communication interfaces
Low power Sleep, Stop, and Standby modes
Up to two I2C interfaces; one supporting
VBAT supply for RTC and backup registers Fast Mode Plus (1 Mbit/s) with 20 mA
5-channel DMA controller current sink, SMBus/PMBus, and wakeup
1 12-bit, 1.0 s ADC (up to 16 channels) from STOP
Conversion range: 0 to 3.6V Up to two USARTs supporting master
synchronous SPI and modem control; one
Separate analog supply from 2.4 up to 3.6 with ISO7816 interface, LIN, IrDA
Two fast low-power analog comparators with capability, auto baud rate detection and
programmable input and output wakeup feature
One 12-bit D/A converter Up to two SPIs (18 Mbit/s) with 4 to 16
programmable bit frame, 1 with I2S
Up to 55 fast I/Os
interface multiplexed
All mappable on external interrupt vectors
HDMI CEC interface, wakeup on header
Up to 36 I/Os with 5 V tolerant capability reception
Up to 18 capacitive sensing channels
supporting touchkey, linear and rotary touch Table 1. Device summary
sensors Reference Part number
96-bit unique ID
STM32F051x4 STM32F051K4, STM32F051C4, STM32F051R4
Serial wire debug (SWD) STM32F051x6 STM32F051K6, STM32F051C6, STM32F051R6
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Device overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.1 ARM CortexTM-M0 core with embedded Flash and SRAM . . . . . . . . . 13
4.2 Memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.3 Cyclic redundancy check calculation unit (CRC) . . . . . . . . . . . . . . . . . . . 13
4.4 Direct memory access controller (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.5 Nested vectored interrupt controller (NVIC) . . . . . . . . . . . . . . . . . . . . . . . 14
4.6 Extended interrupt/event controller (EXTI) . . . . . . . . . . . . . . . . . . . . . . . . 14
4.7 Clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.8 Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.9 Power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.9.1 Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.9.2 Power supply supervisors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.9.3 Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.10 Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.11 Real-time clock (RTC) and backup registers . . . . . . . . . . . . . . . . . . . . . . 17
4.12 Timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.12.1 Advanced-control timer (TIM1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.12.2 General-purpose timers (TIM2..3, TIM14..17) . . . . . . . . . . . . . . . . . . . . 19
4.12.3 Basic timer TIM6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.12.4 Independent watchdog (IWDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.12.5 System window watchdog (WWDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.12.6 SysTick timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.13 Inter-integrated circuit interfaces (I2C) . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.14 Universal synchronous/asynchronous receiver transmitters (USART) . . . 21
4.15 Serial peripheral interface (SPI)/Inter-integrated sound interfaces (I2S) . 22
4.16 High-definition multimedia interface (HDMI) - consumer electronics control
(CEC) 23
6 Memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
7 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
7.1 Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
7.1.1 Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
7.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
7.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
7.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
7.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
7.1.6 Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
7.1.7 Current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
7.2 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
7.3 Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
7.3.1 General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
7.3.2 Operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . . 42
7.3.3 Embedded reset and power control block characteristics . . . . . . . . . . . 43
7.3.4 Embedded reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.3.5 Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.3.6 External clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
7.3.7 Internal clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
7.3.8 PLL characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
7.3.9 Memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
7.3.10 EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
7.3.11 Electrical sensitivity characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
8 Package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
8.1 Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
8.2 Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
8.2.1 Reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
8.2.2 Selecting the product temperature range . . . . . . . . . . . . . . . . . . . . . . . . 95
10 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
List of tables
List of figures
1 Introduction
This datasheet provides the ordering information and mechanical device characteristics of
the STM32F051xx microcontrollers.
This STM32F051x6 and STM32F051x8 datasheet should be read in conjunction with the
STM32F051xx reference manual. 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
Flash (Kbytes) 16 32 64 16 32 64 16 32 64
SRAM (Kbytes) 4 8 4 8 4 8
Advanced
1 (16-bit)
control
3 Device overview
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
&,)4&#,+
TO &LASH PROGRAMMING INTERFACE
(3)
TO )#
393#,+
TO )3
,3%
-(Z (3) TO #%#
(3) 2#
(#,+ TO !("