STM32L051K8T6
STM32L051K8T6
STM32L051K8T6
Features
Ultra-low-power platform )%*$
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1 Device overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
2.2 Ultra-low-power device continuum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3 Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.1 Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2 Interconnect matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3 ARM® Cortex®-M0+ core with MPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.4 Reset and supply management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4.1 Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4.2 Power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4.3 Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.5 Clock management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.6 Low-power real-time clock and backup registers . . . . . . . . . . . . . . . . . . . 24
3.7 General-purpose inputs/outputs (GPIOs) . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.8 Memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.9 Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.10 Direct memory access (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.11 Analog-to-digital converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.12 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.12.1 Internal voltage reference (VREFINT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.13 Ultra-low-power comparators and reference voltage . . . . . . . . . . . . . . . . 27
3.14 System configuration controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.15 Timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.15.1 General-purpose timers (TIM2, TIM21 and TIM22) . . . . . . . . . . . . . . . . 28
3.15.2 Low-power Timer (LPTIM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.15.3 Basic timer (TIM6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.15.4 SysTick timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.15.5 Independent watchdog (IWDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.15.6 Window watchdog (WWDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4 Pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5 Memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.1 Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.1.1 Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.1.6 Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.1.7 Current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.2 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.3 Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.3.1 General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.3.2 Embedded reset and power control block characteristics . . . . . . . . . . . 53
6.3.3 Embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.3.4 Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
6.3.5 Wakeup time from low-power mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
6.3.6 External clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
6.3.7 Internal clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
6.3.8 PLL characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
6.3.9 Memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
6.3.10 EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
6.3.11 Electrical sensitivity characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
6.3.12 I/O current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
6.3.13 I/O port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
6.3.14 NRST pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
List of tables
List of figures
1 Introduction
The ultra-low-power STM32L051x6/8 are offered in 6 different package types: from 32 pins
to 64 pins. Depending on the device chosen, different sets of peripherals are included, the
description below gives an overview of the complete range of peripherals proposed in this
family.
These features make the ultra-low-power STM32L051x6/8 microcontrollers suitable for a
wide range of applications:
Gas/water meters and industrial sensors
Healthcare and fitness equipment
Remote control and user interface
PC peripherals, gaming, GPS equipment
Alarm system, wired and wireless sensors, video intercom
This STM32L051x6/8 datasheet should be read in conjunction with the STM32L0x1xx
reference manual (RM0377).
For information on the ARM® Cortex®-M0+ core please refer to the Cortex®-M0+ Technical
Reference Manual, available from the www.arm.com website.
Figure 1 shows the general block diagram of the device family.
2 Description
Flash (Kbytes) 32 64
RAM (Kbytes) 8 8
General-
3 3
purpose
Timers
Basic 1 1
LPTIMER 1 1
RTC/SYSTICK/IWDG/
1/1/1/1 1/1/1/1
WWDG
Communi- I2C 1 2 2 2 1 2 2 2
cation
interfaces USART 2 2
LPUART 0 1 1 1 0 1 1 1
Clocks:
0/1/1/1/1 0/1/1/1/1 1/1/1/1/1 1/1/1/1/1 0/1/1/1/1 0/1/1/1/1 1/1/1/1/1 1/1/1/1/1
HSE/LSE/HSI/MSI/LSI
Comparators 2 2
7HPS
6:' 6:' VHQVRU
)/$6+
((3520
%227 $'& $,1[
0,62026,
),5(:$// 63,
&257(;0&38 6&.166
)PD[0+] 5$0
86$57 5;7;576
038 '%* $ &76&.
3
'0$ 7,0 FK
19,& %
(;7,
7,0 FK
%5,'*(
&203 ,13,10287
&203 ,13,10287
&5&
%5,'*(
,1,1
3$>@ *3,23257$ /37,0 (75287
$+%)PD[0+]
6&/6'$
::'* ,&
60%$
3&>@ *3,23257&
6&/6'$
,&
$ 60%$
3'>@ *3,23257' 3
% 5;7;576
86$57
&76&.
06, 57&
%&.35(*
:.83[ 5(6(7 &/.
26&B,1 /6(
26&B287
39'B,1
95()B287
308
1567
9''$
9'' 5(*8/$725
069
3 Functional overview
ADC only,
Range 2 or Degraded speed
VDD = 1.65 to 1.71 V conversion time up
range 3 performance
to 570 ksps
ADC only,
Range 1, range 2 or Degraded speed
VDD = 1.71 to 1.8 V(1) conversion time up
range 3 performance
to 1.14 Msps
Conversion time up Range1, range 2 or Degraded speed
VDD = 1.8 to 2.0 V(1)
to 1.14 Msps range 3 performance
CPU Y -- Y -- -- --
Flash memory O O O O -- --
RAM Y Y Y Y Y --
Backup registers Y Y Y Y Y Y
EEPROM O O O O -- --
Brown-out reset
O O O O O O O O
(BOR)
DMA O O O O -- --
Programmable
Voltage Detector O O O O O O -
(PVD)
Power-on/down
Y Y Y Y Y Y Y Y
reset (POR/PDR)
High Speed (2)
O O -- -- --
Internal (HSI)
High Speed
O O O O -- --
External (HSE)
Low Speed Internal
O O O O O O
(LSI)
Low Speed
O O O O O O
External (LSE)
Multi-Speed
O O Y Y -- --
Internal (MSI)
Inter-Connect
Y Y Y Y Y --
Controller
RTC O O O O O O O
RTC Tamper O O O O O O O O
Auto WakeUp
O O O O O O O O
(AWU)
USART O O O O O(3) O --
(3)
LPUART O O O O O O --
SPI O O O O -- --
I2C O O O O O(4) O --
ADC O O -- -- -- --
Temperature
O O O O O --
sensor
Comparators O O O O O O --
16-bit timers O O O O -- --
LPTIMER O O O O O O
IWDG O O O O O O O O
WWDG O O O O -- --
SysTick Timer O O O O --
GPIOs O O O O O O 2 pins
Wakeup time to
0 µs 0.36 µs 3 µs 32 µs 3.5 µs 50 µs
Run mode
internal reference voltage (VREFINT) in Stop mode. The device remains in reset mode when
VDD is below a specified threshold, VPOR/PDR or VBOR, without the need for any external
reset circuit.
Note: The start-up time at power-on is typically 3.3 ms when BOR is active at power-up, the start-
up time at power-on can be decreased down to 1 ms typically for devices with BOR inactive
at power-up.
The devices feature an embedded programmable voltage detector (PVD) that monitors the
VDD/VDDA power supply and compares it to the VPVD threshold. This PVD offers 7 different
levels between 1.85 V and 3.05 V, chosen by software, with a step around 200 mV. An
interrupt can be generated when VDD/VDDA drops below the VPVD threshold and/or when
VDD/VDDA is higher than the VPVD threshold. The interrupt service routine can then generate
a warning message and/or put the MCU into a safe state. The PVD is enabled by software.
#9 (QDEOH:DWFKGRJ
:DWFKGRJ/6 /HJHQG
/6,5& /6,WHPSR +6( +LJKVSHHGH[WHUQDOFORFNVLJQDO
57&6(/ +6, +LJKVSHHGLQWHUQDOFORFNVLJQDO
/6, /RZVSHHGLQWHUQDOFORFNVLJQDO
57&HQDEOH /6( /RZVSHHGH[WHUQDOFORFNVLJQDO
06, 0XOWLVSHHGLQWHUQDOFORFNVLJQDO
57&
/6(26& /6(WHPSR
#9
0+]
3HULSKHUDOV
/6, HQDEOH
/37,0&/.
/6( 3HULSKHUDOV
HQDEOH
+6,
6<6&/.
3&/. 3HULSKHUDOV /38$57
HQDEOH 8$57&/.
,&&/.
06Y9
3.8 Memories
The STM32L051x6/8 devices have the following features:
8 Kbytes of embedded SRAM accessed (read/write) at CPU clock speed with 0 wait
states. With the enhanced bus matrix, operating the RAM does not lead to any
performance penalty during accesses to the system bus (AHB and APB buses).
The non-volatile memory is divided into three arrays:
– 32 or 64 Kbytes of embedded Flash program memory
– 2 Kbytes of data EEPROM
– Information block containing 32 user and factory options bytes plus 4 Kbytes of
system memory
The user options bytes are used to write-protect or read-out protect the memory (with
4 Kbyte granularity) and/or readout-protect the whole memory with the following options:
Level 0: no protection
Level 1: memory readout protected.
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 protected, debug features (Cortex-M0+ serial wire) and boot in
RAM selection disabled (debugline fuse)
The firewall protects parts of code/data from access by the rest of the code that is executed
outside of the protected area. The granularity of the protected code segment or the non-
volatile data segment is 256 bytes (Flash memory or EEPROM) against 64 bytes for the
volatile data segment (RAM).
The whole non-volatile memory embeds the error correction code (ECC) feature.
TIM2
TIM2 is based on 16-bit auto-reload up/down counter. It includes a 16-bit prescaler. It
features four independent channels each for input capture/output compare, PWM or one-
pulse mode output.
The TIM2 general-purpose timers can work together or with the TIM21 and TIM22 general-
purpose timers via the Timer Link feature for synchronization or event chaining. Their
counter can be frozen in debug mode. Any of the general-purpose timers can be used to
generate PWM outputs.
TIM2 has independent DMA request generation.
This timer is capable of handling quadrature (incremental) encoder signals and the digital
outputs from 1 to 3 hall-effect sensors.
one-pulse mode output. They can work together and be synchronized with the TIM2, full-
featured general-purpose timers.
They can also be used as simple time bases and be clocked by the LSE clock source
(32.768 kHz) to provide time bases independent from the main CPU clock.
In addition, I2C1 provides hardware support for SMBus 2.0 and PMBus 1.1: ARP capability,
Host notify protocol, hardware CRC (PEC) generation/verification, timeouts verifications and
ALERT protocol management. I2C1 also has a clock domain independent from the CPU
clock, allowing the I2C1 to wake up the MCU from Stop mode on address match.
Each I2C interface can be served by the DMA controller.
Refer to Table 11 for an overview of I2C interface features.
Only a 32.768 kHz clock (LSE) is needed to allow LPUART communication up to 9600
baud. Therefore, even in Stop mode, the LPUART can wait for an incoming frame while
having an extremely low energy consumption. Higher speed clock can be used to reach
higher baudrates.
LPUART interface can be served by the DMA controller.
4 Pin descriptions
%227
966
3&
3&
3&
3$
3$
3'
3%
3%
3%
3%
3%
3%
3%
9''
9'' 9'',2
3& 966
3&26&B,1 3$
3&26&B287 3$
3+26&B,1 3$
3+26&B287 3$
1567 3$
3& 3$
3& /4)3 3&
3& 3&
3& 3&
966$ 3&
9''$ 3%
3$ 3%
3$ 3%
3$ 3%
3$
3$
3$
3$
3$
3%
3%
3%
3&
3&
3%
3%
9''
966
9''
966
069
3&
$ 26& 3& 3% 3% 3% 3$ 3$ 3$
B,1
3& %227
% 26& 9'' 3%
3' 3& 3& 3$
B287
3+
' 26&B 9'' 3% 966 966 966 3$ 3&
287
9''
( 1567 3& 3& 9''
,2
9'' 3& 3&
06Y9
%227
966
3$
3$
3%
3%
3%
3%
3%
3%
3%
9''
9'' 9'',2
3& 966
3&26&B,1 3$
3&26&B287 3$
3+26&B,1 3$
3+26&B287 /4)3 3$
1567 3$
966$ 3$
9''$ 3%
3$ 3%
3$ 3%
3$ 3%
3%
3%
3$
3$
3$
3$
3$
3%
3%
3%
9''
966
069
$ 3&
3$ 3$ 3% 3% 9'' 26&
B,1
06Y9
%227
3$
966
3%
3%
3%
3%
3%
9'' 3$
3&26&B,1 3$
3&26&B287 3$
1567 /4)3 3$
9''$ 3$
3$ 3$
3$ 3$
3$ 9''
3%
3%
966
3$
3$
3$
3$
3$
06Y9
Wϭϱ
Wϴ
Wϳ
Wϲ
Wϱ
Wϰ
Wϯ
ϯϮ ϯϭ ϯϬ Ϯϵ Ϯϴ Ϯϳ Ϯϲ Ϯϱ
s ϭ Ϯϰ Wϭϰ
WϭϰͲK^ͺ/E Ϯ Ϯϯ Wϭϯ
WϭϱͲK^ϯϮͺKhd ϯ ϮϮ WϭϮ
EZ^d ϰ s^^ Ϯϭ Wϭϭ
s ϱ ϮϬ WϭϬ
WϬ ϲ ϭϵ Wϵ
Wϭ ϳ ϭϴ Wϴ
WϮ ϴ ϵ ϭϬ ϭϭ ϭϮ ϭϯ ϭϰ ϭϱ ϭϳ s
WϬ
Wϭ
WϮ
Wϯ
Wϰ
Wϱ
Wϲ
Wϳ
06Y9
Unless otherwise specified in brackets below the pin name, the pin function during
Pin name
and after reset is the same as the actual pin name
S Supply pin
Pin type I Input only pin
I/O Input / output pin
FT 5 V tolerant I/O
FTf 5 V tolerant I/O, FM+ capable
I/O structure TC Standard 3.3V I/O
B Dedicated BOOT0 pin
RST Bidirectional reset pin with embedded weak pull-up resistor
Unless otherwise specified by a note, all I/Os are set as floating inputs during and
Notes
after reset.
Alternate
Functions selected through GPIOx_AFR registers
functions
Pin functions
Additional
Functions directly selected/enabled through peripheral registers
functions
Pin name
WLCSP36(1)
UFQFPN32
Notes
Additional
TFBGA64
LQFP64
LQFP48
LQFP32
1 B2 1 - - - VDD S - - - -
RTC_TAMP1/
RTC_TS/
2 A2 2 - - - PC13 I/O FT - -
RTC_OUT/
WKUP2
PC14-
3 A1 3 A6 2 2 OSC32_IN I/O FT - - OSC32_IN
(PC14)
I/O structure
Pin type
WLCSP36(1) Pin name
UFQFPN32
Notes
Additional
TFBGA64
LQFP64
LQFP48
LQFP32
(function Alternate functions
functions
after reset)
PC15-
4 B1 4 B6 3 3 OSC32_OUT I/O TC - - OSC32_OUT
(PC15)
PH0-OSC_IN
5 C1 5 - - - I/O TC - - OSC_IN
(PH0)
PH1-
6 D1 6 - - - OSC_OUT I/O TC - - OSC_OUT
(PH1)
LPTIM1_IN1,
8 E3 - - - - PC0 I/O FT - ADC_IN10
EVENTOUT
LPTIM1_OUT,
9 E2 - - - - PC1 I/O FT - ADC_IN11
EVENTOUT
LPTIM1_IN2,
10 F2 - - - - PC2 I/O FT - SPI2_MISO/I2S2_M ADC_IN12
CK
LPTIM1_ETR,
11 - - - - - PC3 I/O FT - ADC_IN13
SPI2_MOSI/I2S2_SD
12 F1 8 - - - VSSA S - - -
- G1 - E6 - - VREF+ S - - -
13 H1 9 D5 5 5 VDDA S - - -
TIM2_CH1, COMP1_INM6,
USART2_CTS, ADC_IN0,
14 G2 10 D4 6 6 PA0 I/O TC -
TIM2_ETR, RTC_TAMP2/WKU
COMP1_OUT P1
EVENTOUT,
TIM2_CH2, COMP1_INP,
15 H2 11 F6 7 7 PA1 I/O FT -
USART2_RTS_DE, ADC_IN1
TIM21_ETR
TIM21_CH1,
TIM2_CH3, COMP2_INM6,
16 F3 12 E5 8 8 PA2 I/O FT -
USART2_TX, ADC_IN2
COMP2_OUT
I/O structure
Pin type
WLCSP36(1) Pin name
UFQFPN32
Notes
Additional
TFBGA64
LQFP64
LQFP48
LQFP32
(function Alternate functions
functions
after reset)
TIM21_CH2,
COMP2_INP,
17 G3 13 F5 9 9 PA3 I/O FT - TIM2_CH4,
ADC_IN3
USART2_RX
18 C2 - - - - VSS S - - -
19 D2 - - - - VDD S - - -
SPI1_NSS, COMP1_INM4,
(2)
20 H3 14 E4 10 10 PA4 I/O TC USART2_CK, COMP2_INM4,
TIM22_ETR ADC_IN4
SPI1_SCK, COMP1_INM5,
21 F4 15 F4 11 11 PA5 I/O TC - TIM2_ETR, COMP2_INM5,
TIM2_CH1 ADC_IN5
SPI1_MISO,
LPUART1_CTS,
22 G4 16 E3 12 12 PA6 I/O FT - TIM22_CH1, ADC_IN6
EVENTOUT,
COMP1_OUT
SPI1_MOSI,
TIM22_CH2,
23 H4 17 F3 13 13 PA7 I/O FT - ADC_IN7
EVENTOUT,
COMP2_OUT
EVENTOUT,
24 H5 - - - - PC4 I/O FT - ADC_IN14
LPUART1_TX
ADC_IN8,
26 F5 18 D3 14 14 PB0 I/O FT - EVENTOUT
VREF_OUT
ADC_IN9,
27 G5 19 C3 15 15 PB1 I/O FT - LPUART1_RTS_DE
VREF_OUT
TIM2_CH3,
LPUART1_TX,
29 G7 21 E2 - - PB10 I/O FT - -
SPI2_SCK,
I2C2_SCL
I/O structure
Pin type
WLCSP36(1) Pin name
UFQFPN32
Notes
Additional
TFBGA64
LQFP64
LQFP48
LQFP32
(function Alternate functions
functions
after reset)
EVENTOUT,
TIM2_CH4,
30 H7 22 D2 - - PB11 I/O FT - -
LPUART1_RX,
I2C2_SDA
31 D6 23 - 16 - VSS S - - - -
32 E6 24 F1 17 17 VDD S - - - -
SPI2_NSS/I2S2_WS,
33 H8 25 - - - PB12 I/O FT - LPUART1_RTS_DE, -
EVENTOUT
SPI2_SCK/I2S2_CK,
LPUART1_CTS,
34 G8 26 - - - PB13 I/O FTf - -
I2C2_SCL,
TIM21_CH1
SPI2_MISO/I
2S2_MCK,
RTC_OUT,
35 F8 27 - - - PB14 I/O FTf - -
LPUART1_RTS_DE,
I2C2_SDA,
TIM21_CH2
SPI2_MOSI/I2S2_SD
36 F7 28 - - - PB15 I/O FT - -
, RTC_REFIN
MCO, EVENTOUT,
41 D7 29 E1 18 18 PA8 I/O FT - -
USART1_CK
SPI1_MISO,
EVENTOUT,
44 C8 32 C2 21 21 PA11 I/O FT - -
USART1_CTS,
COMP1_OUT
I/O structure
Pin type
WLCSP36(1) Pin name
UFQFPN32
Notes
Additional
TFBGA64
LQFP64
LQFP48
LQFP32
(function Alternate functions
functions
after reset)
SPI1_MOSI,
EVENTOUT,
45 B8 33 B1 22 22 PA12 I/O FT - -
USART1_RTS_DE,
COMP2_OUT
47 D5 35 - - - VSS S - - -
48 E5 36 - - - VDDIO2 S - - -
SWCLK,
49 A7 37 B2 24 24 PA14 I/O FT -
USART2_TX
SPI1_NSS,
TIM2_ETR,
50 A6 38 A2 25 25 PA15 I/O FT - EVENTOUT, -
USART2_RX,
TIM2_CH1
53 C5 - - - - PC12 I/O FT - - -
SPI1_SCK,
55 A5 39 B3 26 26 PB3 I/O FT - TIM2_CH2, COMP2_INN
EVENTOUT
SPI1_MISO,
56 A4 40 A3 27 27 PB4 I/O FT - EVENTOUT, COMP2_INP
TIM22_CH1
SPI1_MOSI,
LPTIM1_IN1,
57 C4 41 C4 28 28 PB5 I/O FT - COMP2_INP
I2C1_SMBA,
TIM22_CH2
USART1_TX,
58 D3 42 B4 29 29 PB6 I/O FTf - I2C1_SCL, COMP2_INP
LPTIM1_ETR
USART1_RX,
COMP2_INP,
59 C3 43 A4 30 30 PB7 I/O FTf - I2C1_SDA,
PVD_IN
LPTIM1_IN2
I/O structure
Pin type
WLCSP36(1) Pin name
UFQFPN32
Notes
Additional
TFBGA64
LQFP64
LQFP48
LQFP32
(function Alternate functions
functions
after reset)
60 B4 44 C5 31 31 BOOT0 B - - -
EVENTOUT,
62 A3 46 - - - PB9 I/O FTf - I2C1_SDA, -
SPI2_NSS/I2S2_WS
63 D4 47 D6 32 - VSS S - - - -
64 E4 48 A5 1 1 VDD S - - - -
1. PB9/12/13/14/15, PH0/1 and PC13 GPIOs should be configured as output and driven Low, even if they are not available on
this package.
2. PA4 offers a reduced touch sensing sensitivity. It is thus recommended to use it as sampling capacitor I/O.
Pin descriptions
43/127
Table 17. Alternate function port B
Pin descriptions
44/127 AF0 AF1 AF2 AF3 AF4 AF5 AF6
PB0 EVENTOUT - - - - - -
LPUART1_RTS_
PB1 - - - - - -
DE
PB2 - - LPTIM1_OUT - - - -
PB3 SPI1_SCK - TIM2_CH2 - EVENTOUT - -
PB4 SPI1_MISO - EVENTOUT - TIM22_CH1 - -
PB5 SPI1_MOSI - LPTIM1_IN1 I2C1_SMBA TIM22_CH2 - -
DocID025938 Rev 6
STM32L051x6 STM32L051x8
PB13 SPI2_SCK/I2S2_CK - - - LPUART1_CTS I2C2_SCL TIM21_CH1
LPUART1_RTS_
PB14 SPI2_MISO/I2S2_MCK - RTC_OUT - I2C2_SDA TIM21_CH2
DE
PB15 SPI2_MOSI/I2S2_SD - RTC_REFIN - - -
Table 18. Alternate function port C
STM32L051x6 STM32L051x8
AF0 AF1 AF2
Port
LPUART1/LPTIM/TIM21/12/EVENTOUT - SPI2/I2S2/LPUART1/EVENTOUT
PC8 TIM22_ETR - -
PC9 TIM21_ETR - -
PC10 LPUART1_TX - -
PC11 LPUART1_RX - -
PC12 - - -
PC13 - - -
PC14 - - -
PC15 - - -
Pin descriptions
LPUART1 -
5 Memory mapping
Figure 9. Memory map
[))))))))
[))) )/0/24
[(
&RUWH[0 [
SHULSKHUDOV
[(
RESERVED
[&
[))
!("
[
[$ RESERVED
[
[)))))))
2SWLRQE\WHV !0"
[ [
6\VWHP
PHPRU\ RESERVED
[
!0"
[
[
RESERVED
[ 3HULSKHUDOV
)ODVKV\VWHP
PHPRU\
[ 65$0 [
RESERVED
&2'(
&LASH SYSTEM
MEMORY OR
[ 32!-
DEMENDING ON
"//4
CONFIGURATION
[
5HVHUYHG
069
6 Electrical characteristics
Figure 10. Pin loading conditions Figure 11. Pin input voltage
0&8SLQ 0&8SLQ
& S)
9,1
DLF DLF
6WDQGE\SRZHUFLUFXLWU\
26&57&:DNHXS
ORJLF57&EDFNXS
UHJLVWHUV
/HYHOVKLIWHU
287
,2
*3,2V /RJLF .HUQHOORJLF
,1
&38
'LJLWDO
9'' 0HPRULHV
9''
5HJXODWRU
1îQ)
î)
966
9''$
9''$
95()
95()
Q) $QDORJ
) Q) 5&3//&203
95() $'&
) «
966$
06Y9
1[9''
1îQ)
î)
1[966
06Y9
ΣIVDD(2) Total current into sum of all VDD power lines (source)(1) 105
ΣIVSS(2) Total current out of sum of all VSS ground lines (sink) (1)
105
ΣIVDDIO2 Total current into VDDIO2 power line (source) 25
IVDD(PIN) Maximum current into each VDD power pin (source)(1) 100
(1)
IVSS(PIN) Maximum current out of each VSS ground pin (sink) 100
Output current sunk by any I/O and control pin except FTf
16
pins
IIO
Output current sunk by FTf pins 22
Output current sourced by any I/O and control pin -16
mA
Total output current sunk by sum of all IOs and control pins
90
except PA11 and PA12(2)
ΣIIO(PIN) Total output current sunk by PA11 and PA12 25
Total output current sourced by sum of all IOs and control
-90
pins(2)
Injected current on FT, FFf, RST and B pins -5/+0(3)
IINJ(PIN)
Injected current on TC pin ± 5(4)
ΣIINJ(PIN) Total injected current (sum of all I/O and control pins)(5) ± 25
1. All main power (VDD, VDDA) and ground (VSS, VSSA) pins must always be connected to the external power
supply, in the permitted range.
2. This current consumption must be correctly distributed over all I/Os and control pins. The total output
current must not be sunk/sourced between two consecutive power supply pins referring to high pin count
LQFP packages.
3. Positive current injection is not possible on these I/Os. A negative injection is induced by VIN<VSS. IINJ(PIN)
must never be exceeded. Refer to Table 20 for maximum allowed input voltage values.
4. A positive injection is induced by VIN > VDD while a negative injection is induced by VIN < VSS. IINJ(PIN)
must never be exceeded. Refer to Table 20: Voltage characteristics for the maximum allowed input voltage
values.
5. When several inputs are submitted to a current injection, the maximum IINJ(PIN) is the absolute sum of the
positive and negative injected currents (instantaneous values).
Table 24. Embedded reset and power control block characteristics (continued)
Symbol Parameter Conditions Min Typ Max Unit
VREFINT out(2) Internal reference voltage – 40 °C < TJ < +125 °C 1.202 1.224 1.242 V
TVREFINT Internal reference startup time - - 2 3 ms
VDDA and VREF+ voltage during
VVREF_MEAS - 2.99 3 3.01 V
VREFINT factory measure
Including uncertainties
Accuracy of factory-measured
AVREF_MEAS due to ADC and - - ±5 mV
VREFINT value(3)
VDDA/VREF+ values
TCoeff(4) Temperature coefficient –40 °C < TJ < +125 °C - 25 100 ppm/°C
ACoeff(4) Long-term stability 1000 hours, T= 25 °C - - 1000 ppm
VDDCoeff(4) Voltage coefficient 3.0 V < VDDA < 3.6 V - - 2000 ppm/V
ADC sampling time when
TS_vrefint(4)(5) reading the internal reference - 5 10 - µs
voltage
Startup time of reference
TADC_BUF(4) - - - 10 µs
voltage buffer for ADC
Consumption of reference
IBUF_ADC(4) - - 13.5 25 µA
voltage buffer for ADC
IVREF_OUT(4) VREF_OUT output current(6) - - - 1 µA
(4)
CVREF_OUT VREF_OUT output load - - - 50 pF
Consumption of reference
ILPBUF(4) voltage buffer for VREF_OUT - - 730 1200 nA
and COMP
VREFINT_DIV1(4) 1/4 reference voltage - 24 25 26
%
VREFINT_DIV2(4) 1/2 reference voltage - 49 50 51
VREFINT
VREFINT_DIV3(4) 3/4 reference voltage - 74 75 76
1. Refer to Table 38: Peripheral current consumption in Stop and Standby mode for the value of the internal reference current
consumption (IREFINT).
2. Guaranteed by test in production.
3. The internal VREF value is individually measured in production and stored in dedicated EEPROM bytes.
4. Guaranteed by design.
5. Shortest sampling time can be determined in the application by multiple iterations.
6. To guarantee less than 1% VREF_OUT deviation.
Table 27. Current consumption in Run mode, code with data processing running from Flash
Symbol Parameter Conditions fHCLK Typ Max(1) Unit
Dhrystone 555
CoreMark 585
Range 3,
Fibonacci 440
VCORE=1.2 V, 4 MHz µA
VOS[1:0]=11 while(1) 355
Supply
IDD current in fHSE = fHCLK up to while(1), prefetch
353
(Run Run mode, 16 MHz included, off
from code fHSE = fHCLK/2 above Dhrystone 6.3
Flash) executed 16 MHz (PLL on)(1)
from Flash CoreMark 6.3
Range 1,
Fibonacci 6.55
VCORE=1.8 V, 32 MHz mA
VOS[1:0]=01 while(1) 5.4
while(1), prefetch
5.2
off
1. Oscillator bypassed (HSEBYP = 1 in RCC_CR register).
Figure 14. IDD vs VDD, at TA= 25/55/85/105 °C, Run mode, code running from
Flash memory, Range 2, HSE, 1WS
/;ŵͿ
ϯ͘ϬϬ
Ϯ͘ϱϬ
Ϯ͘ϬϬ
ϭ͘ϱϬ
ϭ͘ϬϬ
Ϭ͘ϱϬ
Ϭ s;sͿ
ϭ͘ϴϬнϬϬ Ϯ͘ϬϬнϬϬ Ϯ͘ϮϬнϬϬ Ϯ͘ϰϬнϬϬ Ϯ͘ϲϬнϬϬ Ϯ͘ϴϬнϬϬ ϯ͘ϬϬнϬϬ ϯ͘ϮϬнϬϬ ϯ͘ϰϬнϬϬ ϯ͘ϲϬнϬϬ
ŚƌLJƐƚŽŶĞϮ͘ϭͲϭt^ͲϱϱΣ
ŚƌLJƐƚŽŶĞϮ͘ϭͲϭt^ͲϴϱΣ
ŚƌLJƐƚŽŶĞϮ͘ϭͲϭt^ʹϮϱΣ
ŚƌLJƐƚŽŶĞϮ͘ϭͲϭt^ͲϭϬϱΣ
06Y9
Figure 15. IDD vs VDD, at TA= 25/55/85/105 °C, Run mode, code running from
Flash memory, Range 2, HSI16, 1WS
,'' P$
ϯ͘ϬϬ
Ϯ͘ϱϬ
Ϯ͘ϬϬ
ϭ͘ϱϬ
ϭ͘ϬϬ
Ϭ͘ϱϬ
Ϭ 9'' 9
( ( ( ( ( ( ( ( ( (
'KU\VWRQH:6&
'KU\VWRQH:6&
'KU\VWRQH:6±&
ŚƌLJƐƚŽŶĞϮ͘ϭͲϭt^ͲϭϬϱΣ
06Y9
Table 29. Current consumption in Run mode, code with data processing running from RAM
Symbol Parameter Conditions fHCLK Typ Max(1) Unit
Dhrystone 450
Range 3, CoreMark 575
VCORE=1.2 V, 4 MHz µA
Supply current in VOS[1:0]=11 Fibonacci 370
fHSE = fHCLK up to
IDD (Run Run mode, code while(1) 340
16 MHz included,
from executed from
fHSE = fHCLK/2 above Dhrystone 5.1
RAM) RAM, Flash
16 MHz (PLL on)(2)
switched off Range 1, CoreMark 6.25
VCORE=1.8 V, 32 MHz mA
VOS[1:0]=01 Fibonacci 4.4
while(1) 4.7
1. Guaranteed by characterization results, unless otherwise specified.
2. Oscillator bypassed (HSEBYP = 1 in RCC_CR register).
1 MHz 43.5 90
Range 3,
VCORE=1.2 V, 2 MHz 72 120
VOS[1:0]=11
4 MHz 130 180
fHSE = fHCLK up to 4 MHz 160 210
Range 2,
16 MHz included,
VCORE=1.5 V, 8 MHz 305 370
fHSE = fHCLK/2 above
VOS[1:0]=10
16 MHz (PLL on)(2) 16 MHz 590 710
8 MHz 370 430
Range 1,
Supply current VCORE=1.8 V, 16 MHz 715 860
in Sleep VOS[1:0]=01
mode, Flash 32 MHz 1650 1900
off 65 kHz 18 65
Range 3,
MSI clock VCORE=1.2 V, 524 kHz 31.5 75
VOS[1:0]=11
4.2 MHz 140 210
Range 2,
VCORE=1.5 V, 16 MHz 665 830
HSI16 clock source VOS[1:0]=10
(16 MHz) Range 1,
VCORE=1.8 V, 32 MHz 1750 2100
VOS[1:0]=01
IDD (Sleep) µA
1 MHz 57.5 130
Range 3,
VCORE=1.2 V, 2 MHz 84 170
VOS[1:0]=11
4 MHz 150 280
fHSE = fHCLK up to 4 MHz 170 310
Range 2,
16 MHz included,
CORE=1.5 V, 8 MHz 315 420
fHSE = fHCLK/2 above
(2) VOS[1:0]=10
16 MHz (PLL on) 16 MHz 605 770
8 MHz 380 460
Range 1,
Supply current VCORE=1.8 V, 16 MHz 730 950
in Sleep VOS[1:0]=01
mode, Flash 32 MHz 1650 2400
on 65 kHz 29.5 110
Range 3,
MSI clock VCORE=1.2 V, 524 kHz 44.5 130
VOS[1:0]=11
4.2 MHz 150 270
Range 2,
VCORE=1.5 V, 16 MHz 680 950
HSI16 clock source VOS[1:0]=10
(16 MHz) Range 1,
VCORE=1.8 V, 32 MHz 1750 2100
VOS[1:0]=01
1. Guaranteed by characterization results at 125 °C, unless otherwise specified.
TA = − 40 to 25°C 8.5 10
Figure 16. IDD vs VDD, at TA= 25/55/ 85/105/125 °C, Low-power run mode, code running
from RAM, Range 3, MSI (Range 0) at 64 KHz, 0 WS
,'' P$
(
(
(
(
(
(
(
9'' 9
:6&
:6&
:6±&
:6&
:6& 06Y9
TA = − 40 to 25°C 0.41 1
TA = 55°C 0.63 2.1
IDD (Stop) Supply current in Stop mode TA= 85°C 1.7 4.5 µA
TA = 105°C 4 9.6
TA = 125°C 11 24(2)
1. Guaranteed by characterization results at 125 °C, unless otherwise specified.
2. Guaranteed by test in production.
Figure 17. IDD vs VDD, at TA= 25/55/ 85/105/125 °C, Stop mode with RTC enabled
and running on LSE Low drive
,'' P$
(
(
(
(
(
(
9'' 9
&
&
&
&
& 06Y9
Figure 18. IDD vs VDD, at TA= 25/55/85/105/125 °C, Stop mode with RTC disabled,
all clocks off
,'' P$
(
(
(
(
(
(
(
9'' 9
&
&
&
&
&
06Y9
HSI 1
HSI/4 0,7
IDD (Wakeup from Supply current during Wakeup from
MSI clock = 4,2 MHz 0,7
Stop) Stop mode
MSI clock = 1,05 MHz 0,4
MSI clock = 65 KHz 0,1
mA
IDD (Reset) Reset pin pulled down - 0,21
IDD (Wakeup from With Fast wakeup set MSI clock = 2,1 MHz 0,5
StandBy) With Fast wakeup disabled MSI clock = 2,1 MHz 0,12
CRS 2.5 2 2 2
µA
2. LSE Low drive consumption is the difference between an external clock on OSC32_IN and a quartz between OSC32_IN
and OSC32_OUT.-
Wakeup from Standby mode, FWU bit = 1 fHCLK = MSI = 2.1 MHz 65 130 µs
tWUSTDBY
Wakeup from Standby mode, FWU bit = 0 fHCLK = MSI = 2.1 MHz 2.2 3 ms
CSS is on or
1 8 32 MHz
User external clock source PLL is used
fHSE_ext
frequency CSS is off, PLL
0 8 32 MHz
not used
VHSEH OSC_IN input pin high level voltage 0.7VDD - VDD
V
VHSEL OSC_IN input pin low level voltage VSS - 0.3VDD
tw(HSE)
OSC_IN high or low time 12 - -
tw(HSE)
- ns
tr(HSE)
OSC_IN rise or fall time - - 20
tf(HSE)
Cin(HSE) OSC_IN input capacitance - 2.6 - pF
DuCy(HSE) Duty cycle 45 - 55 %
IL OSC_IN Input leakage current VSS VIN VDD - - ±1 µA
1. Guaranteed by design.
9+6(+
9+6(/
WU +6( W: +6( W
WI +6( W: +6(
7+6(
DLF
9/6(+
9/6(/
WU /6( W: /6( W
WI /6( W: /6(
7/6(
DLF
1. Guaranteed by design.
2. Guaranteed by characterization results. tSU(HSE) is the startup time measured from the moment it is
enabled (by software) to a stabilized 8 MHz oscillation is reached. This value is measured for a standard
crystal resonator and it can vary significantly with the crystal manufacturer.
For CL1 and CL2, it is recommended to use high-quality external ceramic capacitors in the
5 pF to 25 pF range (typ.), designed for high-frequency applications, and selected to match
the requirements of the crystal or resonator (see Figure 21). 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. Refer to the application note AN2867 “Oscillator design guide for ST
microcontrollers” available from the ST website www.st.com.
I+6(WRFRUH
5P
&2 5)
/P
&/
&P 26&B,1
JP
5HVRQDWRU
&RQVXPSWLRQ
FRQWURO
5HVRQDWRU
670
26&B287
&/
DLE
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.
5HVRQDWRUZLWKLQWHJUDWHG
FDSDFLWRUV
&/
26&B,1 I/6(
N+] 'ULYH
UHVRQDWRU SURJUDPPDEOH
DPSOLILHU
26&B287
&/
069
Note: An external resistor is not required between OSC32_IN and OSC32_OUT and it is forbidden
to add one.
9PLQ
9W\S
9PD[
9PD[
9PLQ
06Y9
Operating voltage
VDD - 1.65 - 3.6 V
Read / Write / Erase
Table 50. Flash memory and data EEPROM endurance and retention
Value
Symbol Parameter Conditions Unit
Min(1)
TA +25 °C,
Electrostatic discharge
VESD(HBM) conforming to 2 2000
voltage (human body model)
ANSI/JEDEC JS-001
V
Electrostatic discharge TA +25 °C,
VESD(CDM) voltage (charge device conforming to C4 500
model) ANSI/ESD STM5.3.1.
1. Guaranteed by characterization results.
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 injection is applied to each input, output and configurable I/O pin
These tests are compliant with EIA/JESD 78A IC latch-up standard.
VDDVIN 5 V
- - 500
FTf I/Os
VDDVIN 5 V
PA11, PA12 and - - 10 µA
BOOT0
RPU Weak pull-up equivalent resistor(5) VIN VSS 30 45 60 k
RPD (5)
Weak pull-down equivalent resistor VIN VDD 30 45 60 k
CIO I/O pin capacitance - - 5 - pF
1. Guaranteed by characterization.
2. Hysteresis voltage between Schmitt trigger switching levels. Guaranteed by characterization results.
3. With a minimum of 200 mV. Guaranteed by characterization results.
4. The max. value may be exceeded if negative current is injected on adjacent pins.
5. Pull-up and pull-down resistors are designed with a true resistance in series with a switchable PMOS/NMOS. This
MOS/NMOS contribution to the series resistance is minimum (~10% order).
9,/9,+ 9 LQV
9 '
'
DOOS
WV9 ,+PLQ
9 '' 3+
LUHPHQ 3&
UHTX 9 ,+PLQ W%227 IRU
DUG S
6V WDQG H[FH 9 '' +
&02 3
9,+PLQ 9 ,+PLQ 3&
7
%22
9 '
'
9 ,/PD[
,QSXWUDQJHQRW
JXDUDQWHHG
&026VWDQGDUGUHTXLUHPHQWV9,/PD[ 9''
9,/PD[
9'' 9
06Y9
9,/9,+ 9 SLQV
DOO
9 ' 3+
'
3&
9 ,+PLQ W%227 IRU
S
77/VWDQGDUGUHTXLUHPHQWV9,+PLQ 9 H[FH 9 '' 3+
9,+PLQ 9 ,+P 3&
LQ
7
%22
9 '
'
9 ,/PD[
,QSXWUDQJHQRW
JXDUDQWHHG
9,/PD[
77/VWDQGDUGUHTXLUHPHQWV9,/PD[ 9
9'' 9
06Y9
Input/output AC characteristics
The definition and values of input/output AC characteristics are given in Figure 26 and
Table 58, respectively.
Unless otherwise specified, the parameters given in Table 58 are derived from tests
performed under ambient temperature and VDD supply voltage conditions summarized in
Table 23.
9''
([WHUQDOUHVHWFLUFXLW
538 ,QWHUQDOUHVHW
1567
)LOWHU
)
670/[[
DLF
TS
R AIN -------------------------------------------------------------
N+2
- – R ADC
f ADC C ADC ln 2
The simplified formula above (Equation 1) is used to determine the maximum external
impedance allowed for an error below 1/4 of LSB. Here N = 12 (from 12-bit resolution).
966$
(* ([DPSOHRIDQDFWXDOWUDQVIHUFXUYH
7KHLGHDOWUDQVIHUFXUYH
(QGSRLQWFRUUHODWLRQOLQH
(7 7RWDO8QDMXVWHG(UURUPD[LPXPGHYLDWLRQ
EHWZHHQWKHDFWXDODQGLGHDOWUDQVIHUFXUYHV
(7 (2 2IIVHW(UURUPD[LPXPGHYLDWLRQ
EHWZHHQWKHILUVWDFWXDOWUDQVLWLRQDQGWKHILUVW
LGHDORQH
(* *DLQ(UURUGHYLDWLRQEHWZHHQWKHODVW
(2 (/
LGHDOWUDQVLWLRQDQGWKHODVWDFWXDORQH
(' 'LIIHUHQWLDO/LQHDULW\(UURUPD[LPXP
GHYLDWLRQEHWZHHQDFWXDOVWHSVDQGWKHLGHDORQHV
('
(/ ,QWHJUDO/LQHDULW\(UURUPD[LPXPGHYLDWLRQ
EHWZHHQDQ\DFWXDOWUDQVLWLRQDQGWKHHQGSRLQW
/6%,'($/
FRUUHODWLRQOLQH
9''$
069
9''$
97 6DPSOHDQGKROG$'&
FRQYHUWHU
5$,1 5$'&
$,1[ ELW
,/Q$ FRQYHUWHU
&SDUDVLWLF 97
9$,1
&$'&
06Y9
1. Refer to Table 60: ADC characteristics for the values of RAIN, RADC and CADC.
2. Cparasitic represents the capacitance of the PCB (dependent on soldering and PCB layout quality) plus the
pad capacitance (roughly 7 pF). A high Cparasitic value will downgrade conversion accuracy. To remedy
this, fADC should be reduced.
Figure 30. Power supply and reference decoupling (VREF+ not connected to VDDA)
670/[[
95()
)Q) 9''$
)Q)
966$ 95()±
069
Figure 31. Power supply and reference decoupling (VREF+ connected to VDDA)
670/[[
62%& 6$$!
62%&n633!
069
6.3.17 Comparators
1 - tTIMxCLK
tres(TIM) Timer resolution time
fTIMxCLK = 32 MHz 31.25 - ns
The analog spike filter is compliant with I2C timings requirements only for the following
voltage ranges:
Fast mode Plus: 2.7 V VDD 3.6 V and voltage scaling Range 1
Fast mode:
– 2 V VDD 3.6 V and voltage scaling Range 1 or Range 2.
– VDD < 2 V, voltage scaling Range 1 or Range 2, Cload < 200 pF.
In other ranges, the analog filter should be disabled. The digital filter can be used instead.
Note: In Standard mode, no spike filter is required.
Range 1 100(3)
Maximum pulse width of spikes that
tAF Range 2 50(2) - ns
are suppressed by the analog filter
Range 3 -
1. Guaranteed by characterization results.
2. Spikes with widths below tAF(min) are filtered.
3. Spikes with widths above tAF(max) are not filtered
USART/LPUART characteristics
The parameters given in the following table are guaranteed by design.
SPI characteristics
Unless otherwise specified, the parameters given in the following tables are derived from
tests performed under ambient temperature, fPCLKx frequency and VDD supply voltage
conditions summarized in Table 23.
Refer to Section 6.3.12: I/O current injection characteristics for more details on the
input/output alternate function characteristics (NSS, SCK, MOSI, MISO).
Master mode 16
Slave mode - -
16
receiver
Master mode 8
Slave mode Transmitter
fSCK 8
SPI clock frequency 1.65<VDD<3.6V - - MHz
1/tc(SCK)
Slave mode Transmitter
8(2)
2.7<VDD<3.6V
Duty cycle of SPI clock
Duty(SCK) Slave mode 30 50 70 %
frequency
tsu(NSS) NSS setup time Slave mode, SPI presc = 2 4*Tpclk - -
th(NSS) NSS hold time Slave mode, SPI presc = 2 2*Tpclk - -
tw(SCKH)
SCK high and low time Master mode Tpclk-2 Tpclk Tpclk+2
tw(SCKL)
tsu(MI) Master mode 0 - -
Data input setup time
tsu(SI) Slave mode 3 - -
th(MI) Master mode 11 - -
Data input hold time ns
th(SI) Slave mode 4.5 - -
ta(SO Data output access time Slave mode 18 - 52
tdis(SO) Data output disable time Slave mode 12 - 42
166LQSXW
W68 166 WF 6&. WK 166
&3+$
6&.,QSXW
&32/
WZ 6&.+
&3+$ WZ 6&./
&32/
W9 62 WK 62 WU 6&. WGLV 62
WD 62 WI 6&.
WK 6,
DLF
Figure 33. SPI timing diagram - slave mode and CPHA = 1(1)
166LQSXW
W68 166 WF 6&. WK 166
&3+$
6&.,QSXW
&32/
WZ 6&.+
&3+$ WZ 6&./
&32/
WY 62 WK 62 WU 6&. WGLV 62
WD 62 WI 6&.
0,62
287 3 87 06 % 2 87 %, 7 287 /6% 287
WVX 6, WK 6,
026,
0 6% ,1 % , 7 ,1 /6% ,1
, 1387
DL
+LJK
166LQSXW
WF 6&.
6&.2XWSXW
&3+$
&32/
&3+$
&32/
6&.2XWSXW
&3+$
&32/
&3+$
&32/
WZ 6&.+ WU 6&.
WVX 0, WZ 6&./ WI 6&.
0,62
,13 87 06%,1 %,7,1 /6%,1
WK 0,
026,
06%287 % , 7287 /6%287
287387
WY 02 WK 02
DLF
I2S characteristics
Note: Refer to the I2S section of the product reference manual for more details about the sampling
frequency (Fs), fMCK, fCK and DCK values. These values reflect only the digital peripheral
behavior, source clock precision might slightly change them. DCK depends mainly on the
ODD bit value, digital contribution leads to a min of (I2SDIV/(2*I2SDIV+ODD) and a max of
(I2SDIV+ODD)/(2*I2SDIV+ODD). Fs max is supported for each mode/condition.
&.,QSXW &32/
&32/
WZ &.+ WZ &./ WK :6
:6LQSXW
DLE
1. Measurement points are done at CMOS levels: 0.3 × VDD and 0.7 × VDD.
2. LSB transmit/receive of the previously transmitted byte. No LSB transmit/receive is sent before the first
byte.
TF#+ TR#+
TC#+
#+ OUTPUT
#0/,
TW#+(
#0/,
TV73 TW#+, TH73
73 OUTPUT
TV3$?-4 TH3$?-4
TSU3$?-2 TH3$?-2
AIB
7 Package information
6($7,1*3/$1(
&
$
$
PP
*$8*(3/$1(
$
F
FFF &
$
' .
' /
' /
E
(
(
3,1
,'(17,),&$7,21 H
:B0(B9
A - - 1.600 - - 0.0630
A1 0.050 - 0.150 0.0020 - 0.0059
A2 1.350 1.400 1.450 0.0531 0.0551 0.0571
b 0.170 0.220 0.270 0.0067 0.0087 0.0106
AIC
3URGXFWLGHQWLILFDWLRQ 5HYLVLRQFRGH
670/
57
'DWHFRGH
< ::
3LQ
LQGHQWLILHU
06Y9
1. Parts marked as “ES”, “E” or accompanied by an Engineering Sample notification letter, are not yet
qualified and therefore not yet ready to be used in production and any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering
samples in production. ST Quality has to be contacted prior to any decision to use these Engineering
samples to run qualification activity.
$ (
( H )
+
)
' '
E EDOOV H
HHH 0 & % $
III 0 &
% $
& 6HDWLQJSODQH
GGG &
$
$ $ $
6,'(9,(:
5B0(B9
Table 75. TFBGA64 – 64-ball, 5 x 5 mm, 0.5 mm pitch, thin profile fine pitch ball
grid array package mechanical data
millimeters inches(1)
Symbol
Min Typ Max Min Typ Max
A - - 1.200 - - 0.0472
A1 0.150 - - 0.0059 - -
A2 - 0.200 - - 0.0079 -
A4 - - 0.600 - - 0.0236
b 0.250 0.300 0.350 0.0098 0.0118 0.0138
D 4.850 5.000 5.150 0.1909 0.1969 0.2028
D1 - 3.500 - - 0.1378 -
E 4.850 5.000 5.150 0.1909 0.1969 0.2028
E1 - 3.500 - - 0.1378 -
Table 75. TFBGA64 – 64-ball, 5 x 5 mm, 0.5 mm pitch, thin profile fine pitch ball
grid array package mechanical data (continued)
millimeters inches(1)
Symbol
Min Typ Max Min Typ Max
e - 0.500 - - 0.0197 -
F - 0.750 - - 0.0295 -
ddd - - 0.080 - - 0.0031
eee - - 0.150 - - 0.0059
fff - - 0.050 - - 0.0020
1. Values in inches are converted from mm and rounded to 4 decimal digits.
Figure 41. TFBGA64 – 64-ball, 5 x 5 mm, 0.5 mm pitch, thin profile fine pitch ball
,grid array recommended footprint
'SDG
'VP 069
Table 76. TFBGA64 recommended PCB design rules (0.5 mm pitch BGA)
Dimension Recommended values
Pitch 0.5
Dpad 0.27 mm
0.35 mm typ. (depends on the soldermask
Dsm
registration tolerance)
Solder paste 0.27 mm aperture diameter.
3URGXFWLGHQWLILFDWLRQ
/5+
'DWHFRGH <HDUZHHN
< ::
5HYLVLRQ
FRGH
%DOO$ 5
06Y9
1. Parts marked as “ES”, “E” or accompanied by an Engineering Sample notification letter, are not yet
qualified and therefore not yet ready to be used in production and any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering
samples in production. ST Quality has to be contacted prior to any decision to use these Engineering
samples to run qualification activity.
3%!4).'
0,!.%
#
!
!
!
C
MM
'!5'% 0,!.%
CCC #
$ +
!
,
$ ,
$
%
%
%
0).
)$%.4)&)#!4)/.
E "?-%?6
Table 77. LQFP48 - 48-pin, 7 x 7 mm low-profile quad flat package mechanical data
millimeters inches(1)
Symbol
Min Typ Max Min Typ Max
A - - 1.600 - - 0.0630
A1 0.050 - 0.150 0.0020 - 0.0059
A2 1.350 1.400 1.450 0.0531 0.0551 0.0571
b 0.170 0.220 0.270 0.0067 0.0087 0.0106
c 0.090 - 0.200 0.0035 - 0.0079
D 8.800 9.000 9.200 0.3465 0.3543 0.3622
D1 6.800 7.000 7.200 0.2677 0.2756 0.2835
D3 - 5.500 - - 0.2165 -
E 8.800 9.000 9.200 0.3465 0.3543 0.3622
E1 6.800 7.000 7.200 0.2677 0.2756 0.2835
E3 - 5.500 - - 0.2165 -
e - 0.500 - - 0.0197 -
L 0.450 0.600 0.750 0.0177 0.0236 0.0295
L1 - 1.000 - - 0.0394 -
k 0° 3.5° 7° 0° 3.5° 7°
ccc - - 0.080 - - 0.0031
1. Values in inches are converted from mm and rounded to 4 decimal digits.
AID
3URGXFWLGHQWLILFDWLRQ
670/
&7
'DWHFRGH
< :: 5HYLVLRQFRGH
3LQ
LQGHQWLILHU
5
06Y9
1. Parts marked as “ES”, “E” or accompanied by an Engineering Sample notification letter, are not yet
qualified and therefore not yet ready to be used in production and any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering
samples in production. ST Quality has to be contacted prior to any decision to use these Engineering
samples to run qualification activity.
$ *
'HWDLO$
H
H
)
$
$
$
%XPSVLGH 6LGHYLHZ
%XPS
$
RULHQWDWLRQ HHH = $
UHIHUHQFH
DDD =
E EDOOV E
[ 6HDWLQJSODQH
FFF = ; <
GGG =
:DIHUEDFNVLGH 'HWDLO$
URWDWHG
$<B0(B9
Table 78. WLCSP36 - 2.596 x 2.868 mm, 0.4 mm pitch wafer level chip scale
mechanical data
millimeters inches(1)
Symbol
Min Typ Max Min Typ Max
Table 78. WLCSP36 - 2.596 x 2.868 mm, 0.4 mm pitch wafer level chip scale
mechanical data (continued)
millimeters inches(1)
Symbol
Min Typ Max Min Typ Max
G - 0.434 - - 0.0171 -
aaa - - 0.100 - - 0.0039
bbb - - 0.100 - - 0.0039
ccc - - 0.100 - - 0.0039
ddd - - 0.050 - - 0.0020
eee - - 0.050 - - 0.0020
1. Values in inches are converted from mm and rounded to 4 decimal digits.
2. Back side coating.
3. Dimension is measured at the maximum bump diameter parallel to primary datum Z.
Figure 47. WLCSP36 - 2.596 x 2.868 mm, 0.4 mm pitch wafer level chip scale
recommended footprint
'SDG
'VP 069
Pitch 0.4 mm
260 µm max. (circular)
Dpad
220 µm recommended
Dsm 300 µm min. (for 260 µm diameter pad)
PCB pad design Non-solder mask defined via underbump allowed
%DOO$
LGHQWLILHU
3URGXFWLGHQWLILFDWLRQ
/
5HYLVLRQ
FRGH
5
'DWHFRGH <HDUZHHN
< ::
06Y9
1. Parts marked as “ES”, “E” or accompanied by an Engineering Sample notification letter, are not yet
qualified and therefore not yet ready to be used in production and any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering
samples in production. ST Quality has to be contacted prior to any decision to use these Engineering
samples to run qualification activity.
3%!4).'
0,!.%
#
!
!
C
!
MM
'!5'% 0,!.%
CCC #
+
$
,
!
$
,
$
B
%
%
0).
)$%.4)&)#!4)/.
E 7@.&@7
Table 80. LQFP32 - 32-pin, 7 x 7 mm low-profile quad flat package mechanical data
millimeters inches(1)
Symbol
Min Typ Max Min Typ Max
A - - 1.600 - - 0.0630
A1 0.050 - 0.150 0.0020 - 0.0059
A2 1.350 1.400 1.450 0.0531 0.0551 0.0571
b 0.300 0.370 0.450 0.0118 0.0146 0.0177
c 0.090 - 0.200 0.0035 - 0.0079
D 8.800 9.000 9.200 0.3465 0.3543 0.3622
D1 6.800 7.000 7.200 0.2677 0.2756 0.2835
D3 - 5.600 - - 0.2205 -
E 8.800 9.000 9.200 0.3465 0.3543 0.3622
E1 6.800 7.000 7.200 0.2677 0.2756 0.2835
E3 - 5.600 - - 0.2205 -
e - 0.800 - - 0.0315 -
L 0.450 0.600 0.750 0.0177 0.0236 0.0295
L1 - 1.000 - - 0.0394 -
k 0° 3.5° 7° 0° 3.5° 7°
ccc - - 0.100 - - 0.0039
1. Values in inches are converted from mm and rounded to 4 decimal digits.
6?&0?6
670/
3URGXFWLGHQWLILFDWLRQ
.7
'DWHFRGH
< ::
5HYLVLRQFRGH
3LQLQGHQWLILHU
06Y9
1. Parts marked as “ES”, “E” or accompanied by an Engineering Sample notification letter, are not yet
qualified and therefore not yet ready to be used in production and any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering
samples in production. ST Quality has to be contacted prior to any decision to use these Engineering
samples to run qualification activity.
'
GGG &
H $
&
$
6($7,1*
3/$1(
'
E
( E
( (
/
' /
3,1,GHQWLILHU
!"?-%?6
Table 81. UFQFPN32 - 32-pin, 5x5 mm, 0.5 mm pitch ultra thin fine pitch quad flat
package mechanical data
millimeters inches(1)
Symbol
Min Typ Max Min Typ Max
Figure 53. UFQFPN32 - 32-pin, 5x5 mm, 0.5 mm pitch ultra thin fine pitch quad flat
recommended footprint
$%B)3B9
3URGXFWLGHQWLILFDWLRQ
/.
'DWHFRGH <HDUZHHN
< ::
5HYLVLRQFRGH
5
3LQ
06Y9
1. Parts marked as “ES”, “E” or accompanied by an Engineering Sample notification letter, are not yet
qualified and therefore not yet ready to be used in production and any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering
samples in production. ST Quality has to be contacted prior to any decision to use these Engineering
samples to run qualification activity.
ϰϬϬϬ
ϯϱϬϬ
ϯϬϬϬ
hY&EϯϮ
>Y&Wϲϰ
ϮϱϬϬ
3' P: >Y&Wϰϴ
ϮϬϬϬ >Y&WϯϮ
d&'ϲϰ
ϭϱϬϬ t>^Wϯϲ
ϭϬϬϬ
ϱϬϬ
Ϭ
ϭϮϱ ϭϬϬ ϳϱ ϱϬ Ϯϱ Ϭ
7HPSHUDWXUH &
06Y9
8 Part numbering
Table 83. STM32L051x6/8 ordering information scheme
Example: STM32 L 051 R 8 T 6 D TR
Device family
STM32 = ARM-based 32-bit microcontroller
Product type
L = Low power
Device subfamily
051 = Access line
Pin count
K = 32 pins
T = 36 pins
C = 48/49 pins
R = 64 pins
Package
T = LQFP
H = TFBGA
U = UFQFPN
Y = WLCSP pins
Temperature range
6 = Industrial temperature range, –40 to 85 °C
7 = Industrial temperature range, –40 to 105 °C
3 = Industrial temperature range, –40 to 125 °C
Options
No character = VDD range: 1.8 to 3.6 V and BOR enabled
D = VDD range: 1.65 to 3.6 V and BOR disabled
Packing
TR = tape and reel
No character = tray or tube
For a list of available options (speed, package, etc.) or for further information on any aspect
of this device, please contact your nearest ST sales office.
9 Revision history
Cover page: changed LQFP32 size, updated core speed. updated core
speed, added minimum supply voltage for ADC and comparators.
ADC now guaranteed down to 1.65 V.
Updated list of applications in Section 1: Introduction. Changed number
of I2S interfaces to one in Section 2: Description.
Updated Table 2: Ultra-low-power STM32L051x6/x8 device features
and peripheral counts.
Updated Table 3: Functionalities depending on the operating power
supply range.
Updated RTC/TIM21 in Table 6: STM32L0xx peripherals interconnect
matrix.
Added note related to UFQFPN32 and note related to WLCSP36 in
Table 15: STM32L051x6/8 pin definitions. Split LQFP32/UFQFPN32
pinout schematics into two distinct figures: Figure 7 and Figure 8.
Updated VDDA in Table 23: General operating conditions.
Split Table Current consumption in Run mode, code with data
processing running from Flash into Table 27 and Table 28 and content
25-Jun-2014 3 updated. Split Table Current consumption in Run mode, code with data
processing running from RAM into Table 29 and Table 30 and content
updated. Updated Table 31: Current consumption in Sleep mode,
Table 32: Current consumption in Low-power run mode, Table 33:
Current consumption in Low-power sleep mode, Table 34: Typical and
maximum current consumptions in Stop mode, Table 35: Typical and
maximum current consumptions in Standby mode, and added Table 36:
Average current consumption during Wakeup.
Updated Table 37: Peripheral current consumption in Run or Sleep
mode and added Table 38: Peripheral current consumption in Stop and
Standby mode.
Updated tLOCK in Table 47: PLL characteristics.
Removed note 1 below Figure 21: HSE oscillator circuit diagram.
Updated Table 49: Flash memory and data EEPROM characteristics
and Table 50: Flash memory and data EEPROM endurance and
retention.
Updated Table 58: I/O AC characteristics.
Updated Table 60: ADC characteristics.
Updated Figure 55: Thermal resistance and added note 1.
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
acknowledgement.
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. 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.