ST AN3216 Application note

AN3216
Application note
Getting started with STM32L1xxx hardware development
Introduction
This application note is intended for system designers who require a hardware implementation overview of the development board features such as the power supply, the clock management, the reset control, the boot mode settings and the debug management. It shows how to use STM32L1xxx product families and describes the minimum hardware resources required to develop an STM32L1xxx application.
Detailed reference design schematics are also contained in this document with descriptions of the main components, interfaces and modes.

Table 1. Applicable products

Type Product sub-class
Microcontroller STM32L1xxx
May 2012 Doc ID 17496 Rev 6 1/31
www.st.com
Contents AN3216
Contents
1 Power supplies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1.1 Independent A/D converter supply and reference voltage . . . . . . . . . . . . 7
1.1.2 Independent LCD supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.1.3 Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.2 Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.3 Reset and power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.3.1 Power-on reset (POR)/power-down reset (PDR),
brownout reset (BOR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.3.2 Programmable voltage detector (PVD) . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.3.3 Brownout reset (BOR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.3.4 System reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2 Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.1 MSI clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.2 HSE OSC clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.2.1 External source (HSE bypass) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.2.2 External crystal/ceramic resonator (HSE crystal) . . . . . . . . . . . . . . . . . 15
2.3 LSE OSC clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.3.1 External source (LSE bypass) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.3.2 External crystal/ceramic resonator (LSE crystal) . . . . . . . . . . . . . . . . . . 16
2.4 Clock security system (CSS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3 Boot configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.1 Boot mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.2 Boot pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3 Embedded boot loader mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4 Debug management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.2 SWJ debug port (serial wire and JTAG) . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.3 Pinout and debug port pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.3.1 SWJ debug port pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2/10 Doc ID 17496 Rev 1
AN3216 Contents
4.3.2 Flexible SWJ-DP pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.3.3 Internal pull-up and pull-down resistors on JTAG pins . . . . . . . . . . . . . . 22
4.3.4 SWJ debug port connection with standard JTAG connector . . . . . . . . . 22
5 Recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.1 Printed circuit board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.2 Component position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.3 Ground and power supply (V
, VDD) . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
SS
5.4 Decoupling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.5 Other signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.6 Unused I/Os and features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6 Reference design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.1.1 Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.1.2 Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.1.3 Boot mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.1.4 SWJ interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.1.5 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.2 Component references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
7 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Doc ID 17496 Rev 1 3/10
List of tables AN3216
List of tables
Table 1. Applicable products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Table 2. Boot modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 3. Debug port pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 4. SWJ I/O pin availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 5. Mandatory components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Table 6. Optional components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Table 7. Reference connection for all packages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Table 8. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4/4 Doc ID 17496 Rev 6
AN3216 List of figures
List of figures
Figure 1. Power supply overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 2. Power supply scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 3. Power supply supervisors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 4. Power on reset/power down reset waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 5. PVD thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 6. Reset circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 7. External clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 8. Crystal/ceramic resonators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 9. External clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 10. Crystal/ceramic resonators
Figure 11. Boot mode selection implementation example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 12. Host-to-board connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 13. JTAG connector implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 14. Typical layout for V
Figure 15. STM32L152VB(T6) microcontroller reference schematic. . . . . . . . . . . . . . . . . . . . . . . . . . 27
DD/VSS
(2)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
pair . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Doc ID 17496 Rev 1 5/10
Power supplies AN3216
6
$$
6
33
AI
6$$6
$$!
6336
33!
!$# $!#TEMPSENSOR
2ESETBLOCK 0,,
FROM6UPTO6
$$!
6
2%&
MUSTBETIEDTO6
33!
6
2%&
6
,#$
&LASHMEMORY
)/SUPPLY
6
$$!
DOMAIN
6$$DOMAIN
3TANDBYCIRCUITRY WAKEUPLOGIC )7$'24# ,3%CRYSTAL +BYTEOSC 2###32
6OLTAGEREGULATOR DYNAMICVOLTAGE SCALING
,#$
6
CORE
DOMAIN
#ORE
MEMORIES
DIGITAL
PERIPHERALS

1 Power supplies

1.1 Introduction

The device requires a 2.0 V to 3.6 V operating voltage supply (VDD), to be fully functional at full speed. This maximum frequency is only achieved when the digital power voltage V is equal to 1.8 V (product voltage range 1).
CORE
Product voltage range 2 (V V
operates from 1.65 V to 3.6 V. Frequency is limited to 16 MHz and 4 MHz when the
DD
= 1.5 V) and 3 (V
CORE
= 1.2 V) can be selected when the
CORE
device is in product voltage range 2 and 3 respectively.
When the ADC and brownout reset (BOR) are not used, the device can operate at power voltages below 1.8 V down to 1.65 V.
Digital power voltage (V
) is provided with an embedded linear voltage regulator with
CORE
three different programmable ranges from 1.2 to 1.8 V (typical).

Figure 1. Power supply overview

Note: V
6/10 Doc ID 17496 Rev 6
DDA
and V
must be connected to VDD and VSS, respectively.
SSA
AN3216 Power supplies

1.1.1 Independent A/D converter supply and reference voltage

To improve conversion accuracy, the ADC and the DAC have an independent power supply that can be filtered separately, and shielded from noise on the PCB.
The ADC voltage supply input is available on a separate V
An isolated supply ground connection is provided on the V
V
DDA
(see I
and V
(ADCx), IDD(DAC), IDD(COMPx), I
DD
require a stable voltage. The consumption on V
REF
VDDA
, and I
VREF
in the product datasheets for
further information).
pin
DDA
pin
SSA
can reach several mA
DDA
When available (depending on the package), V
must be tied to V
REF¨
SSA
.
On BGA 64-pin and all 100-pin or more packages
To ensure a better accuracy on low-voltage inputs and outputs, the user can connect to V
, a separate external reference voltage which is lower than VDD. V
REF+
is the highest
REF+
voltage, represented by the full scale value, for an analog input (ADC) or output (DAC) signal.
For ADC
2.4 V  V
1.8 V  V
2.4 V  V
1.8 V  V
When product voltage range 3 is selected (V
REF+
REF+
REF+
REF+
= V
= V
 V
< V
for full speed (ADCCLK = 16 MHz, 1 Msps)
DDA
for medium speed (ADCCLK = 8 MHz, 500 Ksps)
DDA
for medium speed (ADCCLK = 8 MHz, 500 Ksps)
DDA
for low speed (ADCCLK = 4 MHz, 250 Ksps)
DDA
= 1.2 V), the ADC is low speed
CORE
(ADCCLK = 4 MHz, 250 Ksps)
For DAC
1.8 V V
REF+
< V
DDA
On packages with 64 pins or less (except BGA package)
V
and V
REF+
supply (V
DDA
pins are not available. They are internally connected to the ADC voltage
REF-
) and ground (V
SSA
).
Doc ID 17496 Rev 6 7/10
Power supplies AN3216

1.1.2 Independent LCD supply

The V
pin is provided to control the contrast of the glass LCD. This pin can be used in
LCD
two ways:
It can receive, from an external circuitry, the desired maximum voltage that is provided
on the segment and common lines to the glass LCD by the microcontroller.
It can also be used to connect an external capacitor that is used by the microcontroller
for its voltage step-up converter. This step-up converter is controlled by software to provide the desired voltage to the segment and common lines of the glass LCD.
The voltage provided to the segment and common lines defines the contrast of the glass LCD pixels. This contrast can be reduced when the dead time between frames is configured.
When an external power supply is provided to the V
to 3.6 V. It does not depend on V
When the LCD is based on the internal step-up converter, the V
connected to a capacitor (see the product datasheets for further information).

1.1.3 Voltage regulator

The internal voltage regulator is always enabled after reset. It can be configured to provide the core with three different voltage ranges. Choosing a range with low V consumption but lowers the maximum acceptable core speed. Consumption ranges in decreasing consumption order are as follows:
Range 1, available only for V
Range 2 allows CPU frequency up to 16 MHz
Range 3 allows CPU frequency up to 4 MHz
pin, it should range from 2.5 V
.
DD
above 2.0 V, allows maximum speed
DD
LCD
pin should be
LCD
reduces the
core
Voltage regulator works in three different modes depending on the application modes.
In Run mode, the regulator supplies full power to the V
domain (core, memories and
core
digital peripherals).
In Stop mode, Low power run and Low power wait modes, the regulator supplies low
power to the V
In Standby mode, the regulator is powered off. The contents of the registers and SRAM
domain, preserving the contents of the registers and SRAM.
core
are lost except for those concerned with the Standby circuitry.
8/10 Doc ID 17496 Rev 6
AN3216 Power supplies
6
,#$
34-,XXX
.§N&
6
$$
§&
N&&
N&&
NOTE
6
,#$
6
2%&
6
$$!
6
33!
6
2%&n
6
$$.
6
33.
6
2%&
6
$$
AID
&
OPTIONAL

1.2 Power supply schemes

The circuit is powered by a stabilized power supply, VDD.
The V
single Tantalum or Ceramic capacitor (minimum 4.7 µF typical 10 µF) for the package + one 100 nF Ceramic capacitor for each V
The V
Ceramic capacitor + 1 µF Tantalum or Ceramic capacitor).
The V
external reference voltage is applied on V connected on this pin. To compensate peak consumption on Vref, the 1 µF capacitor may be increased up to 10µF when the sampling speed is low. When ADC or DAC is used, VREF+ must remain between 1.8 V and VDDA. VREF+ can be grounded when ADC and DAC are not active; this enables the user to power down an external voltage reference.
Additional precautions can be taken to filter analog noise: V
V
DD
pins must be connected to VDD with external decoupling capacitors; one
DD
pin).
DD
pin must be connected to two external decoupling capacitors (100 nF
DDA
pin can be connected to the V
REF+
external power supply. If a separate,
DDA
, a 100 nF and a 1 µF capacitor must be
REF+
can be connected to
DDA
through a ferrite bead.
Figure 2.
1. Optional. If a separate, external reference voltage is connected on V 1 µF) must be connected.
2. V
REF
3. N is the number of V
Power supply scheme
+ is either connected to V
and V
DD
DDA
SS
or to V
inputs.
REF
.

1.3 Reset and power supply supervisor

The input supply to the main and low power regulators is monitored by a power-on/power­down/brownout reset circuit. Power-on/power-down reset are a null power monitoring with fixed threshold voltages, whereas brownout reset gives the choice between several thresholds with a very low, but not null, power consumption.
, the two capacitors (100 nF and
REF+
In addition, the STM32L1xxx embeds a programmable voltage detector that compares the power supply with the programmable threshold. An interrupt can be generated when the power supply drops below the V the V
threshold. The interrupt service routine then generates a warning message and/or
PVD
threshold and/or when the power supply is higher than
PVD
puts the MCU into a safe state.
Doc ID 17496 Rev 6 9/10
Power supplies AN3216
VDD/V
DDA
PVD output
100 mV
hysteresis
V
PVD
V
BOR
hysteresis
100 mV
IT enabled
BOR reset
(NRST)
POR/PDR reset
(NR ST)
PVD BOR always active
POR/PDR (BOR not available)
ai17211b
POR
V
/
PDR
V
BOR/PDR reset (NRST)
BOR disabled by option byte
(Note 1)
(Note 2)
(Note 3)
(Note 4)

Figure 3. Power supply supervisors

1. The PVD is available on all STM32L devices and it is enabled or disabled by software.
2. The BOR is available only on devices operating from 1.8 to 3.6 V, and unless disabled by option byte it masks the POR/PDR threshold.
3. When the BOR is disabled by option byte, the reset is asserted when V
4. For devices operating from 1.65 to 3.6 V, there is no BOR and the reset is released when V POR level and asserted when V
goes below PDR level.
DD
goes below PDR level.
DD
DD
goes above
10/10 Doc ID 17496 Rev 6
AN3216 Power supplies
VDD/V
DDA
Reset
POR
PDR
Temporization t
RSTTEMPO

1.3.1 Power-on reset (POR)/power-down reset (PDR), brownout reset (BOR)

The monitoring voltage begins at 0.7 V.
During power-on, for devices operating between 1.8 and 3.6 V, the BOR keeps the device under reset until the supply voltages (V voltage (1.8 V). At power-up this internal reset is maintained during ~1 ms to wait for the supply to reach its final value and stabilize.
At power-down the reset is activated as soon as the power drops below the lowest limit (1.65 V).
At power-on, a defined reset should be maintained below 0.7 V. The upper threshold for a reset release is defined in the electrical characteristics section of the product datasheets.
Figure 4. Power on reset/power down reset waveform
DD
and V
) come close to the lowest acceptable
DDIO
If you want to run the cpu at full speed the threshold should be raised to 2.0 V. For a programmable threshold above the chip lowest limit, a brownout reset can be configured to the desired value. The BOR can also be used to detect a power voltage drop earlier. The threshold values of the BOR can be configured through the FLASH_OBR option byte.

1.3.2 Programmable voltage detector (PVD)

The device features an embedded programmable voltage detector (PVD) that monitors the V
DD/VDDA
can be selected by software between 1.85 V and 3.05 V, with a 200 mV step. An interrupt can be generated when V is higher than the V message and/or puts the MCU into a safe state. The PVD is enabled by software configuration. As an example, the service routine can perform emergency shutdown tasks.
power supply and compares it to the V
drops below the V
Doc ID 17496 Rev 6 11/10
DD/VDDA
threshold. The interrupt service routine then generates a warning
PVD
threshold. Seven different PVD levels
PVD
threshold and/or when VDD/V
PVD
DDA
Power supplies AN3216
VDD/V
DDA
PVD output
100 mV hysteresis
PVD threshold
Figure 5. PVD thresholds

1.3.3 Brownout reset (BOR)

During power on, the brownout reset (BOR) keeps the device under reset until the supply voltage reaches the specified V
For devices operating from 1.65 to 3.6 V, the BOR option is not available and the power supply is monitored by the POR/PDR. As the POR/PDR thresholds are at 1.5 V, a “grey zone” exists between the V
POR/VPDR
1.65 V.
threshold.
BOR
thresholds and the minimum product operating voltage
For devices operating from 1.8 to 3.6 V, the BOR is always active at power on and its threshold is 1.8 V.
When the system reset is released, the BOR level can be reconfigured or disabled by option byte loading.
If the BOR level is kept at the lowest level, 1.8 V at power-on and 1.65 V at power down, the system reset is fully managed by the BOR and the product operating voltages are within safe ranges.
When the BOR option is disabled by option byte, the power down reset is controlled by the PDR and a “grey zone” exists between the 1.65 V and V
V
is configured through device option bytes. By default, level 4 threshold is activated.
BOR
Five programmable V V
BOR0
to V
thresholds).
BOR4
When the supply voltage (V generated. When the V
thresholds can be selected (see product datasheets for actual
BOR
) drops below the selected V
DD
is above the V
DD
upper limit the device reset is released and the
BOR
PDR
.
threshold, a device reset is
BOR
system can start.
BOR can be disabled by programming the device option bytes. To disable the BOR function, V
must have been higher than V
DD
to start the device option byte programming
BOR0
sequence. The power-on and power-down is then monitored by the POR and PDR (see power-on reset (POR)/power-down reset (PDR) section in the product datasheets).
The BOR threshold hysteresis is ~100 mV (between the rising and the falling edge of the supply voltage).
12/10 Doc ID 17496 Rev 6
AN3216 Power supplies
2
05
6$$6
$$!
0ULSE
GENERATOR
MINS
3YSTEMRESET
&ILTER
&
%XTERNAL RESETCIRCUIT
.234
AIC
88%(SFTFU *8%(SFTFU 1PXFSSFTFU 4PGUXBSFSFTFU
-PXQPXFSNBOBHFNFOUSFTFU 0QUJPOCZUFMPBEFSSFTFU &YJUJOH4UBOECZNPEF

1.3.4 System reset

A system reset sets all registers to their reset values except for the RTC, backup registers and RCC control/status register, RCC_CSR.
A system reset is generated when one of the following events occurs:
1. A low level on the NRST pin (external reset)
2. Window watchdog end-of-count condition (WWDG reset)
3. Independent watchdog end-of-count condition (IWDG reset)
4. A reset bit set by software (SWreset)
5. Entering Standby or Stop mode configured to generate a reset (Low-power
management reset)
6. Option byte loader reset
7. Exiting Standby mode
The reset source can be identified by checking the reset flags in the Control/Status register, RCC_CSR.
Figure 6. Reset circuit
The STM32L does not require an external reset circuit to power-up correctly. Only a pull­down capacitor is recommended to improve EMS performance by protecting the device against parasitic resets (see Figure 6).
Charging/discharging the pull-down capacitor thru the internal resistor adds to the device power consumption. The recommended value of 100 nF for the capacitor can be reduced to 10 nF to limit this power consumption.
Doc ID 17496 Rev 6 13/10
Clocks AN3216

2 Clocks

Four different clock sources can be used to drive the system clock (SYSCLK). They are:
HSI ((high-speed internal) oscillator clock
HSE (high-speed external) oscillator clock
PLL clock
MSI (multispeed internal) oscillator clock
The MSI is used as a system clock source after startup from reset, wake-up from Stop or Standby low power modes.
The devices have the following two secondary clock sources:
37 kHz low speed internal RC (LSI RC) which drives the independent watchdog and
optionally the RTC used for auto-wakeup from Stop/Standby mode.
32.768 kHz low speed external crystal (LSE crystal) which optionally drives the
real-time clock (RTCCLK)
Each clock source can be switched on or off independently when it is not used, to optimize power consumption.
Refer to the STM32L15xxx reference manual (RM0038) for a description of the clock tree.

2.1 MSI clock

The MSI clock signal is generated from an internal RC oscillator. Its frequency range can be adjusted by software through the RCC_ICSCR register. Seven frequency ranges are available: 65.5 kHz, 131 kHz, 262 kHz, 524 kHz, 1.05 MHz, 2.1 MHz (default value) and
4.2 MHz. Those frequencies are multiple values of 32.768 kHz.
The MSI clock is used as a system clock after a restart from reset.
The MSI RC oscillator has the advantage of providing a low-cost (no external components) low-power clock source. It is used as a wakeup clock in low power modes to reduce power consumption and wakeup time.
The MSIRDY flag in the RCC_CR register indicates wether the MSI RC is stable or not. At startup, the MSI RC output clock is not released until this bit is set by hardware.
The MSI RC can be switched on and off through the RCC_CR register (default is on).
If the application is subject to voltage or temperature variations, this may affect the RC oscillator speed. You can trim the MSI frequency in the application through the RCC_ICSCR register. Typically, this uses the HSE as reference (see RM0038 for details on clock measurement with TIM9/TIM10/TIM11). For more information refer to AN3300 “How to calibrate an STM32L1xx internal RC oscillator”.
14/10 Doc ID 17496 Rev 6
AN3216 Clocks
OSC_OUTOSC_IN
External source
(Hi-Z)
ai14369
Hardware configuration
/3#?/54/3#?).
AIB
34-,XXX
2
%84

#
,
#
,
(ARDWARECONFIGURATION

2.2 HSE OSC clock

The high-speed external clock signal (HSE) can be generated from two possible clock sources:
HSE user external clock (see Figure 7)
HSE external crystal/ceramic resonator (see Figure 8)
Figure 7. External clock Figure 8. Crystal/ceramic resonators
1. The value of R
(resonator series resistance).
2. Load capacitance, C
pin capacitance and board or trace PCB-related capacitance. Typically, it is between 2 pF and 7 pF. Please refer to Section 5: Recommendations on page 23 to minimize its value.
depends on the crystal characteristics. A typical value is in the range of 5 to 6 RS
EXT
, has the following formula: CL = CL1 x CL2 / (CL1 + CL2) + C
L

2.2.1 External source (HSE bypass)

In this mode, an external clock source must be provided. It can have a frequency of up to 32 MHz.
The external clock signal (square, sine or triangle) with a duty cycle of about 50%, has to drive the OSC_IN pin while the OSC_OUT pin must be left in the high impedance state (see
Figure 7 and Figure 8).

2.2.2 External crystal/ceramic resonator (HSE crystal)

The external oscillator frequency ranges from 1 to 24 MHz.
The external oscillator has the advantage of producing a very accurate rate on the main clock. The associated hardware configuration is shown in Figure 8.
The resonator and the load capacitors have to be connected as close as possible to the oscillator pins in order to minimize output distortion and startup stabilization time. The load capacitance values must be adjusted according to the selected oscillator.
For C pF range (typical), designed for high-frequency applications and selected to meet the requirements of the crystal or resonator. C crystal manufacturer typically specifies a load capacitance that is the series combination of C C
Refer to the electrical characteristics sections in the datasheet of your product for more details.
and C
L1
and CL2. The PCB and MCU pin capacitances must be included when sizing CL1 and
L1
(10 pF can be used as a rough estimate of the combined pin and board capacitance).
L2
it is recommended to use high-quality ceramic capacitors in the 5 pF to 25
L2
and C
L1
where: C
stray
are usually the same value. The
L2,
stray
is the
Doc ID 17496 Rev 6 15/10
Clocks AN3216
OSC32_OUTOSC32_IN
External source
(Hi-Z)
ai14371
Hardware configuration

2.3 LSE OSC clock

The low-speed external clock signal (LSE) can be generated from two possible clock sources:
LSE user external clock (see Figure 9)
LSE external crystal/ceramic resonator (see Figure 10)

Figure 9. External clock

(1)(2)
Figure 10. Crystal/ceramic resonators
(ARDWARECONFIGURATION
34-,XXX
/3#?/54/3#?).

2
%84
(2)
#
,
1. To avoid exceeding the maximum value of C resonator with a load capacitance CL 7 pF. Never use a resonator with a load capacitance of 12.5 pF.
2. OSC32_IN and OSC_OUT pins can be also used as GPIOs, but it is recommended not to use them as both RTC and GPIO pins in the same application.
3. The value of R value is in the range of 5 to 6 RS (resonator series resistance). To fine tune the RS value refer to AN2867 (Oscillator design guide for ST microcontrollers).
depends on the crystal characteristics. A 0 resistor works but, is not optimal. A typical
EXT
and CL2 (15 pF), it is strongly recommended to use a
L1

2.3.1 External source (LSE bypass)

In this mode, an external clock source must be provided. It must have a frequency of
32.768 kHz. The external clock signal (square, sine or triangle) with a duty cycle of about
50% has to drive the OSC32_IN pin while the OSC32_OUT pin must be left high impedance (see Figure 9).

2.3.2 External crystal/ceramic resonator (LSE crystal)

The LSE crystal is a 32.768 kHz low-speed external crystal or ceramic resonator. It has the advantage of providing a low-power, but highly accurate clock source to the real-time clock peripheral (RTC) for clock/calendar or other timing functions.
The oscillator can be switched on and off by software (default is off). When switched on, the oscillator is not stable immediately. A bit is set in the RCC_CSR register when the oscillator becomes stable and an interrupt can be generated if enabled in the RCC_CIR register.
#
,
AID
16/10 Doc ID 17496 Rev 6
The resonator and the load capacitors have to be connected as close as possible to the oscillator pins in order to minimize output distortion and startup stabilization time. The load capacitance values must be adjusted according to the selected oscillator (see Figure 10).
AN3216 Clocks

2.4 Clock security system (CSS)

The clock security system can be activated by software. In this case, the clock detector is enabled after the HSE oscillator startup delay, and disabled when this oscillator is stopped. If a failure is detected on the HSE oscillator clock, this oscillator is automatically disabled and an interrupt is generated to inform the software about the failure (clock security system interrupt, CSSI), allowing the MCU to perform rescue operations. The CSSI is linked to the Cortex™-M3 NMI (non-maskable interrupt) exception vector.
If the HSE oscillator is used directly or indirectly as the system clock (indirectly means: it is used as the PLL input clock, and the PLL clock is used as the system clock), a detected failure causes the system clock to switch to the MSI oscillator and the external HSE oscillator to be disabled. If the HSE oscillator clock is the clock entry of the PLL used as the system clock when the failure occurs, the PLL is also disabled.
For details, see the STM32L15xxx reference manual (RM0038).
Doc ID 17496 Rev 6 17/10
Boot configuration AN3216

3 Boot configuration

3.1 Boot mode selection

In the STM32L1xxx, three different boot modes can be selected by means of the BOOT[1:0] pins as shown in Ta bl e 2 .

Table 2. Boot modes

BOOT mode selection pins
BOOT1 BOOT0
Boot mode Aliasing
x 0 Main Flash memory
0 1 System memory
1 1 Embedded SRAM
The values on the BOOT pins are latched on the 4th rising edge of SYSCLK after a reset. It is up to the user to set the BOOT1 and BOOT0 pins after reset to select the required boot mode.
BOOT0 is a dedicated pin while BOOT1 is shared with a GPIO pin. Once BOOT1 has been sampled, the corresponding GPIO pin is free and can be used by the application.
The BOOT pins are also resampled when exiting Standby mode. Consequently, they must be kept in the required Boot mode configuration in Standby mode. After this startup delay has elapsed, the CPU fetches the top-of-stack value from address 0x0000 0000, and starts code execution from the boot memory starting from 0x0000 0004.

3.2 Boot pin connection

Figure 11 shows the external connection required to select the boot memory of the
STM32L1xxx.
Main Flash memory is selected as boot space
System memory is selected as boot space
Embedded SRAM is selected as boot space

Figure 11. Boot mode selection implementation example

6
$$
K
6
$$
K
1. Resistor values are given only as a typical example.
18/10 Doc ID 17496 Rev 6
34-,XXX
"//4
"//4
AIB
AN3216 Boot configuration

3.3 Embedded boot loader mode

The embedded boot loader is used to reprogram the Flash memory through one of the following interfaces: USART1 , USART2 or USB for medium+ and high density devices. This program is located in the system memory and is programmed by ST during production (see the STM32L Flash programming manual for further details).
Doc ID 17496 Rev 6 19/10
Debug management AN3216

4 Debug management

4.1 Introduction

The host/target interface is the hardware equipment that connects the host to the application board. This interface is made of three components: a hardware debug tool, a JTAG or SW connector and a cable connecting the host to the debug tool.
Figure 12 shows the connection of the host to a development board. The evaluation board
(STM32L152-EVAL and STM32L152D-EVAL) embeds the debug tools (ST-LINK) so it can be directly connected to the PC through an USB cable.

Figure 12. Host-to-board connection

$EBUGTOOL
(OST0#
$EVELOPMENTBOARD

4.2 SWJ debug port (serial wire and JTAG)

The STM32L1xxx core integrates the serial wire/JTAG debug port (SWJ-DP). It is an ARM® standard CoreSight™ debug port that combines a JTAG-DP (5-pin) interface and a SW-DP (2-pin) interface.
The JTAG debug port (JTAG-DP) provides a 5-pin standard JTAG interface to the AHP-
AP port
The serial wire debug port (SW-DP) provides a 2-pin (clock + data) interface to the
AHP-AP port
In the SWJ-DP, the two JTAG pins of the SW-DP are multiplexed with some of the five JTAG pins of the JTAG-DP.

4.3 Pinout and debug port pins

*4!'37CONNECTOR
0OWERSUPPLY
AIC
The STM32L1xxx MCU is offered in various packages with different numbers of available pins. As a result, some functionality related to the pin availability may differ from one package to another.
20/10 Doc ID 17496 Rev 6
AN3216 Debug management

4.3.1 SWJ debug port pins

Five pins are used as outputs for the SWJ-DP as alternate functions of general-purpose I/Os (GPIOs). These pins, shown in Tab l e 3, are available on all packages.
Table 3. Debug port pin assignment
JTAG debug port SW debug port
SWJ-DP pin name
Type Description Type Debug assignment
JTMS/SWDIO I
JTCK/SWCLK I JTAG test clock I Serial wire clock PA14
JTDI I JTAG test data input - - PA15
JTDO/TRACESWO O JTAG test data output -
JNTRST I JTAG test nReset - - PB4
JTAG test mode selection

4.3.2 Flexible SWJ-DP pin assignment

After reset (SYSRESETn or PORESETn), all five pins used for the SWJ-DP are assigned as dedicated pins which are immediately usable by the debugger host (note that the trace outputs are not assigned except if explicitly programmed by the debugger host).
However, the STM32L1xxx MCU implements a register to disable all or part of the SWJ-DP port, and so releases the associated pins for general-purpose I/O usage. This register is mapped on an APB bridge connected to the Cortex™-M3 system bus. It is programmed by the user software program and not by the debugger host.
Ta bl e 4 shows the different possibilities for releasing some pins.
Table 4. SWJ I/O pin availability
Serial wire data
I/O
input/output
TRACESWO if async trace is enabled
Pin assignment
PA 1 3
PB3
SWJ I/O pin assigned
Available debug ports
Full SWJ (JTAG-DP + SW-DP) - reset state X X X X X
Full SWJ (JTAG-DP + SW-DP) but without JNTRST
JTAG-DP disabled and SW-DP enabled X X
JTAG-DP disabled and SW-DP disabled Released
PA13 / JTMS/
SWDIO
XXXX
PA14 / JTCK/
SWCLK
PA15 /
JTDI
PB3 /
JTDO
JNTRST
For more details, see the STM32L15xx reference manual (RM0038).
Doc ID 17496 Rev 6 21/10
PB4/
Debug management AN3216
AIB
6
$$
6
$$
34-,XXX
N*4234
*4$) *34-37$)/ *4#+37#,+
*4$/
N234).
642%& N4234 4$) 4-3 4#+ 24#+ 4$/ N3234 $"'21 $"'!#+
K
K
K
6
33
  
      
#ONNECTOR§
*4!'CONNECTOR

4.3.3 Internal pull-up and pull-down resistors on JTAG pins

The JTAG input pins must not be floating since they are directly connected to flip-flops which control the debug mode features. Special care must be taken with the SWCLK/TCK pin that is directly connected to the clock of some of these flip-flops.
To avoid any uncontrolled I/O levels, the STM32L1xxx embeds internal pull-up and pull­down resistors on the JTAG input pins:
JNTRST: internal pull-up
JTDI: internal pull-up
JTMS/SWDIO: internal pull-up
TCK/SWCLK: internal pull-down
Once a JTAG I/O is released by the user software, the GPIO controller takes control again. The reset states of the GPIO control registers put the I/Os in the following equivalent states:
JNTRST: input pull-up
JTDI: input pull-up
JTMS/SWDIO: input pull-up
JTCK/SWCLK: input pull-down
JTDO: input floating
The software can then use these I/Os as standard GPIOs.
Note: The JTAG IEEE standard recommends to add pull-up resistors on TDI, TMS and nTRST
but, there is no special recommendation for TCK. However, for the STM32L1xxx, an integrated pull-down resistor is used for JTCK.
Having embedded pull-up and pull-down resistors removes the need to add external resistors.

4.3.4 SWJ debug port connection with standard JTAG connector

Figure 13 shows the connection between the STM32L1xxx and a standard JTAG connector.
Figure 13. JTAG connector implementation
22/10 Doc ID 17496 Rev 6
AN3216 Recommendations

5 Recommendations

5.1 Printed circuit board

For technical reasons, it is best to use a multilayer printed circuit board (PCB) with a separate layer dedicated to ground (V provides good decoupling and a good shielding effect. For many applications, economical reasons prohibit the use of this type of board. In this case, the major requirement is to ensure a good structure for ground and for the power supply.

5.2 Component position

A preliminary layout of the PCB must separate the different circuits according to their EMI contribution in order to reduce cross-coupling on the PCB, that is noisy, high-current circuits, low-voltage circuits, and digital components.

5.3 Ground and power supply (VSS, VDD)

Every block (noisy, low-level sensitive, digital, etc.) should be grounded individually and all ground returns should be to a single point. Loops must be avoided or have a minimum area. The power supply should be implemented close to the ground line to minimize the area of the supply loop. This is due to the fact that the supply loop acts as an antenna, and is therefore the main transmitter and receiver of EMI. All component-free PCB areas must be filled with additional grounding to create a kind of shielding (especially when using single­layer PCBs).
) and another dedicated to the VDD supply. This
SS

5.4 Decoupling

All pins need to be properly connected to the power supplies. These connections, including pads, tracks and vias should have as low an impedance as possible. This is typically achieved with thick track widths and, preferably, the use of dedicated power supply planes in multilayer PCBs.
In addition, each power supply pair should be decoupled with filtering ceramic capacitors C (100 nF) and a Tantalum or Ceramic capacitor C of about 10 µF connected in parallel on the STM32L1xxx device. These capacitors need to be placed as close as possible to, or below, the appropriate pins on the underside of the PCB. Typical values are 10 nF to 100 nF, but exact values depend on the application needs. Figure 14 shows the typical layout of such a V
DD/VSS
pair.
Doc ID 17496 Rev 6 23/10
Recommendations AN3216
Via to V
SS
Via to V
DD
Cap.
V
DDVSS
STM32L1xxx

Figure 14. Typical layout for VDD/VSS pair

5.5 Other signals

When designing an application, the EMC performance can be improved by closely studying the following:
Signals for which a temporary disturbance affects the running process permanently
(which is the case for interrupts and handshaking strobe signals but, not the case for LED commands). For these signals, a surrounding ground trace, shorter lengths, and the absence of noisy and sensitive traces nearby (crosstalk effect) improve EMC performance. For digital signals, the best possible electrical margin must be reached for the two logical states and slow Schmitt triggers are recommended to eliminate parasitic states.
Noisy signals (example, clock)
Sensitive signals (example, high impedance)

5.6 Unused I/Os and features

All microcontrollers are designed for a variety of applications and often a particular application does not use 100% of the MCU resources.
To increase EMC performance, unused clocks, counters or I/Os, should not be left free, example, I/Os should be set to “0” or “1”(pull-down or pull-up respectively to the unused I/O pins) and unused features should be “frozen” or disabled.
24/10 Doc ID 17496 Rev 6
AN3216 Reference design

6 Reference design

6.1 Description

The reference design shown in Figure 15, is based on the STM32L152VB(T6).
This reference design can be tailored to any STM32L1xxx device with a different package, using the pin correspondence given in Table 7: Reference connection for all packages.

6.1.1 Clock

Two clock sources are used for the microcontroller:
LSE: X1– 32.768 kHz crystal for the embedded RTC
HSE: X2– 8 MHz crystal for the STM32L1xxx microcontroller
Refer to Section 2: Clocks on page 14.

6.1.2 Reset

The reset signal in Figure 15 is active low. The reset sources include:
Reset button (B1)
Debugging tools via the connector CN1
Refer to Section 1.3: Reset and power supply supervisor on page 9.

6.1.3 Boot mode

The boot option is configured by setting switches SW2 (Boot 0) and SW1 (Boot 1). Refer to
Section 3: Boot configuration on page 18.
Note: In low-power mode (more specially in Standby mode) the boot mode is mandatory to be
able to connect to tools (the device should boot from the SRAM).

6.1.4 SWJ interface

The reference design shows the connection between the STM32L1xxx and a standard JTAG connector. Refer to Section 4: Debug management on page 20.
Note: It is recommended to connect the reset pins so as to be able to reset the application from
the tools.

6.1.5 Power supply

Refer to Section 1: Power supplies on page 6.
Doc ID 17496 Rev 6 25/10
Reference design AN3216

6.2 Component references

Table 5. Mandatory components

Id Components name Reference Quantity Comments
1 Microcontroller STM32L152VB(T6) 1 100-pin package
2 Capacitors 100 nF 3 ... 6
3 Capacitor 10 µF 1 Ceramic capacitor (decoupling capacitor)
4 Capacitor 1 µF 2

Table 6. Optional components

Id Components name Reference Quantity Comments
Ceramic capacitors (decoupling capacitors)
Ceramic capacitor (LCD booster or decoupling capacitor)
R2, R4, R5, R7, R8
Resistor 10 k 9
Pull-up and pull-down for JTAG and Boot mode.
Used for HSE: the value depends on
R6 Resistor 0 1
the crystal characteristics. A typical value is 390 .
Used for LSE: the value depends on
R1 Resistor 0 2
the crystal characteristics. This resistor value is given only as a
typical example.
R3 Resistor 0 1 For low pass filter
C3, C5, C10, C11, C12, C13,
Capacitor 100 nF 8 Ceramic capacitor
C14, C15
Used for LSE: the value depends on
C1, C2 Capacitor 6.8 pF 2
the crystal characteristics. Fits for MC-306 32.768K-E3, which has a load capacitance of 6 pF.
C7, C8 Capacitor 20 pF 2
C4, C6 Capacitor 1 µF 2
C9 Capacitor 10 µF 1
Used for HSE: the value depends on the crystal characteristics.
Ceramic capacitors (decoupling capacitors)
Ceramic capacitors (decoupling capacitors)
X2 Quartz 8 MHz 1 Used for HSE
X1 Quartz 32 kHz 1 Used for LSE
CN1 JTAG connector HE10 1
SW1, SW2 Switch 3V3 2 Used to select the right boot mode
B1 Push-button B1 1
26/10 Doc ID 17496 Rev 6
AN3216 Reference design
PE2
1
PE3
2
PE4
3
PE5
4
PE6
5
PC13-ANTI_TAMP
7
PC14-OSC32_IN
8
PC15-OSC32_OUT
9
PH0-OSC_IN
12
PH1-OSC_OUT
13
NRST
14
PC015PC116PC217PC3
18
PA 0- WKU P23PA 1
24
PA 2
25
PA 326PA 429PA 530PA 631PA 7
32
PC433PC5
34
PB0
35
PB1
36
PB2
37
PE7
38
PE8
39
PE9
40
PE10
41
PE11
42
PE1243PE13
44
PE14
45
PE15
46
PB10
47
PB11
48
PB12
51
PB13
52
PB14
53
PB15
54
PD8
55
PD9
56
PD1057PD1158PD12
59
PD13
60
PD1461PD15
62
PC6
63
PC7
64
PC865PC9
66
PA 867PA 968PA 10
69
PA 11
70
PA 12
71
PA 13
72
PF2
73
PA 14
76
PA 15
77
PC10
78
PC1179PC12
80
PD0
81
PD1
82
PD2
83
PD3
84
PD4
85
PD5
86
PD6
87
PD7
88
PB3
89
PB4
90
PB5
91
PB6
92
PB7
93
BOOT0
94
PB8
95
PB9
96
PE0
97
PE1
98
U1A
STM32L152VBT6
1
4 3
2
B1
RESET
C15
100nF
C8
20pF
C7
20pF
X2
8MHz
R6
0
R7
10K
VDD
2
3
1
SW1
4 1
3 2
X1
32.768 kHz
C1
6.8pF
C2
6.8pF
R1
0
VLCD
6
VSS_5
10
VDD_5
11
VSSA
19
VREF-
20
VREF+
21
VDDA
22
VSS_4
27
VDD_4
28
VSS_1
49
VDD_1
50
VSS_2
74
VDD_2
75
VSS_3
99
VDD_3
100
U1B
STM32L152VBT6
L1
BEAD
C5
100nF
R3
0
VDDA
VDD_MCU
VREF+
VREF-
C3
100nF
VDD_MCU
C10
100nF
C11
100nF
C12
100nF
C13
100nF
C14
100nF
VDD_MCU
C6
1uF
VLCD
TMS/SWDIO
TCK/SWCLK
TDI
TDO/SWO
TRST
RESET#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CN1
JTAG
VDD
R4 10 K
R5 10 K
R2
10K
HSE
JTAG CONNECTOR
Reset
Boot Mode
Decoupling Capacitor
MCU Supply
LSE
MCU
VDD
2
3
1
SW2
R8
10K
C4
1uF
C9
10uF
AI

Figure 15. STM32L152VB(T6) microcontroller reference schematic

Doc ID 17496 Rev 6 27/10
Reference design AN3216

Table 7. Reference connection for all packages

Pin name
Pin numbers for LQFP packages
Pin numbers for BGA
packages
Pin numbers for
UFQFPN package
144 pins 100 pins 64 pins 48 pins 132 pins 100 pins 64 pins 48 pins
PH0-OSC_IN 23 12 5 5 F1 F1 C1 5
PH1-OSC_OUT 24 13 6 6 G1 G1 D1 6
PC15-
OSC32_OUT
PC14-
OSC32_IN
9 9 4 4 E1 E1 B1 4
8 8 3 3 D1 D1 A1 3
BOOT0 138 94 60 44 A4 A4 B4 44
PB2-BOOT1 48 37 28 20 L6 L6 G6 20
NRST 25 14 7 7 H2 H2 E1 7
PA13 105 72 46 34 A11 A11 A8 34
PA14 109 76 49 37 A10 A10 A7 37
PA15 110 77 50 38 A9 A9 A6 38
PB4 134 90 56 40 A7 A7 A4 40
PB3 133 89 55 39 A8 A8 A5 39
V
SS_1
V
SS_2
V
SS_3
V
SS_4
V
SS_5
V
SS_6
V
SS_7
V
SS_8
V
SS_9
V
SS_10
V
SS_11
V
DD_1
V
DD_2
V
DD_3
V
DD_4
V
DD_5
V
DD_6
V
DD_7
V
DD_8
71 49 31 23 F12 F12 D6 23
107 74 47 35 F11 F11 D5 35
143 99 63 47 D3 D3 D4 47
38 27 18 - - E3 C2
16 10 - - F2 F2 -
51 - - - E3 - -
61 - - - - - -
83 - - - - - -
94 - - - F6 - -
120 - - - F7 - -
130 - - - - - -
72 50 32 24 G12 G12 E6 24
108 75 48 36 G11 G11 E5 36
144 100 64 48 C4 C4 E4 48
39 28 19 - - H3 D2
17 11 - - G2 G2 -
52 - - - H3 - -
62 - - - - - -
84 - - - - - -
28/10 Doc ID 17496 Rev 6
AN3216 Reference design
Table 7. Reference connection for all packages
Pin name
V
DD_9
V
DD_10
V
DD_11
V
REF+
V
REF-
V
SSA
V
DDA
V
LCD
Pin numbers for LQFP packages
Pin numbers for BGA
packages
Pin numbers for
UFQFPN package
144 pins 100 pins 64 pins 48 pins 132 pins 100 pins 64 pins 48 pins
95 -- - - G6 - -
121 -- - - G7 - -
131 - - - - - -
3221 - -L1L1G1
31 20 - - - K1 -
30 19 12 8 J1 J1 F1 8
33 22 13 9 M1 M1 H1 9
6 6 1 1 E2 E2 B2 1
Doc ID 17496 Rev 6 29/10
Revision history AN3216

7 Revision history

Table 8. Document revision history

Date Revision Changes
28-Jun-2010 1 Initial release
Updated the following sections: Section 1.1: Introduction,
Section 1.1.1: Independent A/D converter supply and reference voltage, Section 1.1.2: Independent LCD supply, Section 1.3.1: Power-on reset (POR)/power-down reset (PDR), brownout reset (BOR), and Section 1.3.4: System reset.
29-Jul-2010 2
01-Oct-2010 3
07-Apr-2011 4
29-Jun-2011 5
30-May-2012 6 Updated to adapt to STM32L1xxx High density devices
Added Section 1.3.3: Brownout reset (BOR). Replaced Figure 3, Figure 4, Figure 5, and Figure 6. In Section 2.3.2, replaced RCC_ICR register by RCC_CIR register. Replaced PF0_OSC_IN and PF1_OSC_OUT by PH0_OSC_IN and
PH1_OSC_OUT in Figure 15 and Ta b le 7 . Updated value of C4 and C9 decoupling capacitors in Figure 15.
Modified Section 1.3.4: System reset on page 13 Updated capacitors in Ta bl e 5 and Tab l e 5
Changed title of document from “STM32L1xxx hardware development: getting started” to “Getting started with STM32L1xxx hardware development”.
Modified Section 2.1: MSI clock, Section 1.2: Power supply
schemes, and Figure 2.
Updated Section 1.1.1: Independent A/D converter supply and
reference voltage and Section 1.2: Power supply schemes.
30/10 Doc ID 17496 Rev 6
AN3216
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
© 2012 STMicroelectronics - All rights reserved
STMicroelectronics group of companies
Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan -
Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com
Doc ID 17496 Rev 6 31/31
Loading...