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.
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/10Doc ID 17496 Rev 6
DDA
and V
must be connected to VDD and VSS, respectively.
SSA
AN3216Power 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 67/10
Power suppliesAN3216
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/10Doc ID 17496 Rev 6
AN3216Power supplies
6
,#$
34-,XXX
.§N&
6
$$
§&
N&&
N&&
NOTE
6
,#$
6
2%&
6
$$!
6
33!
6
2%&n
6
$$.
6
33.
6
2%&
6
$$
AID
&
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/powerdown/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 69/10
Power suppliesAN3216
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 alwaysactive
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/10Doc ID 17496 Rev 6
Loading...
+ 21 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.