The STM32L152D-EVAL evaluation board is a complete demonstration and development
platform for STMicroelectronic's ARM cortex-M3 core-based STM32L152ZDT6
microcontroller featuring two I2C, three SPI, five USART, 12-bit ADC, 12-bit DAC, LCD
driver, internal 48 KB SRAM and 384 KB Flash, touch sensing, USB FS, LCD controller,
FSMC and JTAG debugging support.
This board can be used as reference design for user application development but it is not
considered as final application. The full range of hardware features on the board helps you
evaluate all peripherals (USB FS, USART, audio DAC, microphone ADC, dot-matrix LCD,
LCD glass, IrDA, LDR, SRAM, NOR Flash, MicroSD Card, temperature sensor and so on)
and develop your own applications. Extension headers make it possible to easily connect a
daughterboard or wrapping board for your specific application.
An ST-LINK/V2 is integrated on the board as embedded in-circuit debugger and
programmer for the STM32 MCU.
●Four 5 V power supply options: Power jack, ST-LINK/V2 USB connector, user USB
connector or daughterboard
●Audio jack connected to I2S DAC, or STM32L152ZDT6 internal DAC
●Microphone connected to ADC using integrated op amp as amplifier
●2 GByte (or more) MicroSD Card on SDIO interface
●Temperature sensor and RF EEPROM on I2C compatible serial interface
●RS-232 interface configurable for communication or Flashloader
●IrDA transceiver
●JTAG and trace debug support, embedded ST-LINK/V2
●4 Kbit serial Flash, 512K x16-bit SRAM and 128 Mbit NOR Flash
●240x320 TFT color LCD connected to FSMC interface of STM32L152ZDT6
●Joystick with 4-direction control and selector
●Reset and Tamper or key button
●4 color user LEDs and 3 LEDs as MCU power range indicator
●MCU consumption measurement circuit
●LCD glass 40 x 8 segments connected to LCD driver of STM32L152ZDT6
●Extension connector for daughterboard or wrapping board
●MCU voltage choice of 3.3 V or adjustable from 1.65 V to 3.6 V
●USB FS connector
●Touch slider
●Light dependent resistor (LDR)
●One MCU integrated op amp configured as Sallen-Key 2nd order low pass filter
●One MCU integrated op amp configured as amplifier with adjustable gain
●One ADC / DAC input signal connector
●Potentiometer
1.2 Demonstration software
Demonstration software is preloaded in the board's Flash memory for easy demonstration of
the device peripherals in stand-alone mode. For more information and to download the
latest version available, please refer to the STM32L152D-EVAL demonstration software
available on www.st.com.
1.3 Order code
To order the STM32L152ZDT6 evaluation board, use the order code STM32L152D-EVAL.
4/56Doc ID 022868 Rev 1
Page 5
UM1521Overview
www.BDTIC.com/ST
1.4 Delivery recommendations
Some verifications are needed before using the board for the first time to make sure that
nothing was damaged during shipment and that no components are unplugged or lost.
When the board is extracted from its plastic bag, please check that no component remains
in the bag.
The main components to verify are:
1.The 8 MHz crystal (X1) which may have been removed by a shock from its socket.
2. The MicroSD Card which may have been ejected from the connector CN3 (left side of
the board).
3. The dual-interface EEPROM board (ANT7-M24LR-A) which may have been unplugged
from the connector CN12 (top right corner of the board).
Doc ID 022868 Rev 15/56
Page 6
Hardware layout and configurationUM1521
-36
CONNECT
,#$GLASS
6OLTAGE
TRANSLAT
34,).+6
ADJUSTABLE
CONSUMPTION
CONNECTORFO
= I/O shared with LCD glass
www.BDTIC.com/ST
2 Hardware layout and configuration
The STM32L152D-EVAL evaluation board is designed around the STM32L152ZDT6 (144pin TQFP package). The hardware block diagram Figure 2 illustrates the connection
between STM32L152D-EVAL and peripherals (LCD glass, Color LCD, Touch slider, USB FS
connector, Temperature Sensor, USART, IrDA, Audio, SRAM, Nor Flash, EEPROM,RF
EEPROM, MicroSD Card and embedded ST-LINK) and Figure 3 will help you locate these
features on the actual evaluation board.
Figure 2.Hardware block diagram
*OYSTICK
,%$S
7AKEUP
BUTTON
,$2
4OUCH
SLIDER
PIN
OR
53"
CONNECTOR
%%02/-
-ICRO3$
#ARD
0OTENTIOMETER
'0)/
#OMPARATOR
43
$!#
!$#
53"&3
30)
3$)/
/P!MP
!$#
34-,:$4
3%'
53!24
&3-#
*4!'
)#
)3
/P!MP
/P!MP
OR
32!-./2&LASH
%MBEDDED
*4!'4RACE
CONNECTOR
2&%%02/-
CONNECTOR
4EMPERATURE
SENSOR
!UDIO
AMPLIFIER
-ICROPHONE
23
TRANSCEIVER
)R$!
TRANSCEIVER
$OT-ATRIX
,#$
53"4YPE"
CONNECTOR
53!24
6TO6
REGULATOR
6
REGULATOR
MEASUREMENT
%XTENSION
-#5
'0)/S
R
6/56Doc ID 022868 Rev 1
Page 7
UM1521Hardware layout and configuration
#.#.
,#$GLASS
DAUGHTERBOARD
CONNECTOR
#.
53"&3
2
,$2
#.
*4!'
#.
!UDIOJACK
6$$RANGE
,%$S
#.#.
%XTENSION
CONNECTION
HEADER
#.
TRACE
5-ICROPHONE
5
34-,:$4
#.
53!24
5
)R$!
#.
-ICRO3$#ARD
#.
#OLOR,#$
#.
0OWERJACK
26
6$$ADJUSTMENT
26POTENTIOMETER
"
4AMPER+EY
BUTTON
"2ESET+EY
COLOR,%$S
5*OYSTICK
#.
34,).+6
53"
#.
2&%%02/-
DAUGHTERBOARD
CONNECTOR
3
4OUCHSLIDER
-36
,$
34,).+6
#/-,%$
www.BDTIC.com/ST
Figure 3.Hardware block diagram
Doc ID 022868 Rev 17/56
Page 8
Hardware layout and configurationUM1521
www.BDTIC.com/ST
2.1 Development and debug support
Version 2 of the ST-LINK called ST-LINK/V2 is embedded on the board. This tool allows
program loading and debugging on the STM32L using a JTAG or SWD interface. Third-party
debug tools are also supported by JTAG connector CN16 and Trace connector CN11.
A specific driver must be installed on your PC for communication with embedded STLINK/V2. To download and install this driver, use the install shield called STLINK_V2_USBdriver.exe available on the Software and development tools page for ultra low
power STM32L family available on www.st.com.
Third-party toolchains support ST-LINK/V2 according to Ta bl e 1 .
Table 1.Third party support of ST-LINK/V2
Third partyToolchainVersion
AtollicTrueSTUDIO2.1
IAREWARM6.20.4
KeilMDK-ARM4.20
Tasking VX-Toolset ARM Cortex-M 4.0.1
The embedded ST-LINK/V2 is connected to the PC via a standard USB cable connected to
connector CN14. The bicolor LED LD5 (COM) advises on the communication status as
follows:
●Slow blinking Red LED/Off : At power on before USB initialization.
●Fast blinking Red LED/Off : After the first correct communication between PC and ST-
LINK/V2 (enumeration).
●Red LED On: When initialisation between PC and ST-LINK/V2 is successfully finished.
●Green LED On: After successful target communication initialization.
●Blinking Red/Green LED: During communication with target.
●Red LED On: Communication finished and OK.
●Orange LED On: Communication failure.
Note:It is possible to power the board via CN14 (embedded ST/LINK/V2 USB connector) even if
an external tool is connected to CN11 (Trace connector) or CN16 (external JTAG & SWD
connector).
8/56Doc ID 022868 Rev 1
Page 9
UM1521Hardware layout and configuration
www.BDTIC.com/ST
2.2 Power supply
The STM32L152D-EVAL evaluation board is designed to be powered by a 5 V DC power
supply and to be protected by PolyZen from a wrong power plug-in event.
It is possible to configure the evaluation board to use any of following four sources for the
power supply.
●5 V DC power adapter connected to CN2, the power jack on the board (power supply
unit (PSU) on silk screen). The external power supply is not provided with the board.
●5 V DC power with 500mA limitation from CN14, the USB type B connector of ST-
LINK/V2 (USB 5 V power source on silkscreen (ST-LINK/V2)).
●5 V DC power with 500mA limitation from CN15, the USB type B connector (USB 5V
power source on silkscreen (USB)).
●5 V DC power from CN10, the extension connector for daughterboard (daughterboard
power source on silkscreen (D5V)).
The LEDs indicate the following:
●LED LD9 is lit when the STM32L152D-EVAL board is powered by 5 V correctly.
●Red LED LD8 is lit when the MCU is powered by low voltage (VDD < 1.8 V).
●Yellow LED LD7 is lit when the MCU is powered by voltage (1.8 V < VDD < 2.2 V).
●Green LED LD6 is lit when the MCU is powered by voltage (2.2 V < VDD).
The power supply is configured by setting the related jumpers JP1, JP5 and JP10 as
described in Ta bl e 2 .
Table 2.Power supply jumper settings
JumperDescriptionSetting
JP1 selects one of the four possible power supply sources.
– For power supply jack(CN2) to the STM32L152D-EVAL only, JP1 is set
as shown to the right:
– For power supply from the daughterboard connectors (CN10) to
STM32L152D-EVAL only, JP1 is set as shown to the right:
JP1
– For power supply from USB (CN15) to STM32L152D-EVAL only, JP1
is set as shown to the right:
– For power supply from USB connector of ST-LINK/V2 (CN14) to
STM32L152D-EVAL only, JP1 is set as shown to the right:
(Default setting)
For power supply from power supply jack (CN2) to both STM32L152DEVAL and daughterboard connected on CN5 and CN10, JP1 is set as
shown to the right (daughterboard must not have its own power supply
connected)
PSU
D5V
STK
U5V
Doc ID 022868 Rev 19/56
Page 10
Hardware layout and configurationUM1521
www.BDTIC.com/ST
Table 2.Power supply jumper settings (continued)
JumperDescriptionSetting
VDD is connected to fixed +3.3 V DC power when JP5 is set as shown to
the right: (Default setting)
JP5
VDD is connected to adjustable DC power from 1.65 V to 3.6 V when
JP5 is set as shown to the right:
VDD power is directly connected to MCU VDD when JP10 is set as
shown to the right (Default setting):
Note: For manual I
JP10
Note:Due to some peripheral component specifications, the low voltage limitations (component
will not work correctly when power level is under low voltage limitation) related to the
operating voltage of the peripherals are shown in Ta b l e 3 .
Table 3.Low voltage limitation
removed and replaced by an ampermeter connected between pin 1 and
2 of JP10.
Connect VDD power to MCU with current-sampling resister, 1 Ohm or
1 KOhm, in series for I
shown to the right:
measurement the jumper on JP10 must be
DD
current measurement when JP10 is set as
DD
PeripheralComponentI/O nameLow voltage limitation
USBCN15USB3 V
MicroSD CardCN3SDIO2.7 V
SRAMU5FSMC2.4 V
EEPROMU25SPI1.8 V
RF EEPROMCN12I2C1.8 V
Note:The recommended AC220 V to DC5 V power adapter is the PSU-5V2A. It is not included
with the board but can be ordered from ST as a separate item. You can also use another
equivalent 5 V power adapter (polarity compatible with CN2) to power the STM32L152DEVAL board via the CN2 power jack on the board.
To order the recommended power supply, use the order code PSU-5V2A.
10/56Doc ID 022868 Rev 1
Page 11
UM1521Hardware layout and configuration
www.BDTIC.com/ST
2.3 Clock source
Two clock sources are available on the STM32L152D-EVAL evaluation board for the
STM32L152ZDT6 and RTC embedded.
●X1, 8 MHz crystal with socket for the STM32L152ZDT6 microcontroller, it can be
removed from socket when internal RC clock is used.
●X3, 32 KHz crystal for embedded RTC
Table 4.8 MHz crystal X1 related solder bridges
Solder bridgeDescription
PH1 is connected to 8 MHz crystal when SB1 is open. (Default setting)
SB1
SB2
Table 5.32 KHz crystal X3 related solder bridges
PH1 is connected to extension connector CN10 when SB1 is closed. In such case
R51 must be removed to avoid disturbance due to the 8Mhz quartz
PH0 is connected to 8 MHz crystal when SB2 is open. (Default setting)
PH0 is connected to extension connector CN10 when SB2 is closed. In such case
C53 and X1 must be removed.
Solder bridgeDescription
PC14 is connected to 32 KHz crystal when SB8 is open. (Default setting)
SB8
SB7
PC14 is connected to extension connector CN5 when SB8 is closed. In such case
R85 must be removed to avoid disturbance due to the 32Khz quartz
PC15 is connected to 32 KHz crystal when SB7 is open. (Default setting)
PC15 is connected to extension connector CN5 when SB7 is closed. In such case
R84 must be removed to avoid disturbance due to the 32 KHz quartz
2.4 Reset source
The reset signal of the STM32L152D-EVAL evaluation board is low active and the reset
sources include:
●Reset button B1
●Debug tools from JTAG connector CN16 and trace connector CN11
●Daughterboard from CN10
●Embedded ST-LINK/V2
●RS-232 connector CN1 for ISP
Doc ID 022868 Rev 111/56
Page 12
Hardware layout and configurationUM1521
www.BDTIC.com/ST
2.5 Boot option
The STM32L152D-EVAL evaluation board is able to boot from:
●Embedded user Flash
●System memory with boot loader for ISP
●Embedded SRAM for debugging
The boot option is configured by setting switch SW1 (BOOT0) and SW2 (BOOT1). The
BOOT0 can be configured also via the RS-232 connector CN1.
Table 6. Boot related switch
SwitchBoot from
STM32L152D-EVAL boots from user Flash when SW1 is set as
shown to the right. SW2 is don't care in this configuration.
(Default setting)
SW1
and
SW2
Table 7.Boot0 related jumpers
JumperDescription
JP11
STM32L152D-EVAL boots from embedded SRAM when SW1 and
SW2 are set as shown to the right.
STM32L152D-EVAL boots from system memory when SW1 and
SW2 are set as shown to the right.
The Bootloader_BOOT0 is managed by pin 6 of connector CN1 (RS-232 DSR signal)
when JP11 is closed. This configuration is used for boot loader application only.
Default setting: Not fitted
Switch
configuration
0 <----> 1
0 <----> 1
0 <----> 1
12/56Doc ID 022868 Rev 1
Page 13
UM1521Hardware layout and configuration
www.BDTIC.com/ST
2.6 LCD glass module
An LCD glass module daughterboard (MB979) is mounted on the STM32L152D-EVAL
evaluation board. It can be connected to the LCD driver of the STM32L152ZDT6 or work as
a set of jumpers by mounting it on two possible positions; position "IO" or position "LCD":
●When the LCD glass module is mounted on position IO (see Figure 4), all peripherals
(memories, USART, audio, EEPROM, potentiometer, MicroSD Card, microphone, etc)
shared with the LCD glass are connected to the STM32L152ZDT6, and the LCD glass
is disconnected (default setting).
●When the LCD glass module is mounted on position LCD (see Figure 5), the LCD glass
is connected to the LCD driver of the STM32L152ZDT6 and all peripherals shared with
LCD glass are disconnected.
Figure 4.Position IO
Figure 5.Position LCD
Doc ID 022868 Rev 113/56
Page 14
Hardware layout and configurationUM1521
www.BDTIC.com/ST
Table 8.LCD glass related jumpers
JumperDescriptionSetting
PA1 is connected to microphone ( MIC_INP signal) when JP8 is set as shown to
the right: (Default setting)
JP8
PA1 is connected to LCD glass as SEG0 when JP8 is set as shown to the right:
PA2 is connected to microphone (MIC_INN signal)when JP6 is set as shown to
the right: (Default setting)
JP6
PA2 is connected to LCD glass as SEG1 when JP6 is set as shown to the right:
The custom LCD glass on MB979 is model XHO5002B. The signal mapping is shown in
Ta bl e 9 , Ta bl e 1 0 , Tab le 1 1 and Tab le 1 2 and segment names are given in Figure 6.
The STM32L152D-EVAL evaluation board supports stereo audio play by using an audio
DAC CS43L22 connected to both I2S2 port and one channel of DAC in the microcontroller
STM32L152ZDT6.
●OpAmp3 of the STM32L152ZDT6 acts as a low pass filter of audio output for this DAC.
●A headphone jack is connected to the output of CS43L22.
●A microphone is connected to ADC through OpAmp1 of STM32L152ZDT6.
Table 13.Audio related jumpers
JumperDescriptionSetting
PA4 is connected to analog input signal for ADC or output signal from DAC on
CN8 when JP7 is set as shown to the right:
JP7
PA4 output signal to OpAmp3 as low pass filter when JP7 is set as shown to the
right: (Default setting)
JP8Description of JP8 is in Section 2.6: LCD glass module
JP6Description of JP6 is in Section 2.6: LCD glass module
The I2C address of CS43L22 is 0b1001010.
The LCD glass module has to be mounted on "IO" position for Audio I2C usage. Refer to
Section 2.6: LCD glass module for detail.
2.8 USB
The STM32L152D-EVAL evaluation board supports USB2.0 compliant full speed
communication via a USB type B connector (CN15). The evaluation board can be powered
by this USB connection at 5 V DC with a 500 mA current limitation.
USB disconnection simulation can be implemented by controlling the internal 1.5 K pull-up
resistor on USB+ line and detection of 5 V power on USB connector CN15 by using a
resistor bridge connected to PE6.
USB will work properly when VDD > 3 V.
2.9 RS-232 and IrDA
RS-232 and IrDA communication is supported by D-type 9-pin RS-232 connector CN1, and
IrDA transceiver U2 which is connected to USART1 of the STM32L152ZDT6 on the
STM32L152D-EVAL evaluation board.
The signals Bootloader_RESET and Bootloader_BOOT0 can be added on RS-232
connector CN1 for ISP support. If Bootloader_RESET signal is used, mount R39 (Default:
Unmounted) with a 0 Ohm resistor as Figure 7 shows.
Doc ID 022868 Rev 117/56
Page 18
Hardware layout and configurationUM1521
www.BDTIC.com/ST
Figure 7.R39 resistor placement
Note:If Bootloader_RESET signal is not used, remove R39 to avoid disturbance due to CTS
signal from pin8 of CN1, which could cause MCU reset with some software.
Table 14.RS-232 & IrDA related jumpers
JumperDescriptionSetting
USART1_RX is connected to RS-232 transceiver and RS-232 communication is
enabled when JP4 is set as shown to the right(Default setting):
JP4
USART1_RX is connected to IrDA transceiver and IrDA communication is
enabled when JP4 is set as shown to the right:
The LCD glass module has to be mounted on IO position for USART1 usage. Refer to
Section 2.6: LCD glass module for detail.
18/56Doc ID 022868 Rev 1
Page 19
UM1521Hardware layout and configuration
www.BDTIC.com/ST
2.10 Touch sensing slider
The STM32L152D-EVAL evaluation board supports a touch sensing slider based on either
RC charging or charge transfer technology. The charge transfer technology is enabled by
default assembly.
PB6 and PB7 manage an active shield reducing sensitivity to other signals. The active
shield is placed on an internal layer immediately under the slider (layer 2) to cover
components related to the slider and the slider itself.
Table 15.Touch sensing slider related solder bridges
Solder bridgeDescription
PF9 is connected to sampling capacitor when SB3 is open. (Default setting)
SB3
SB4
SB5
PF9 is connected to extension connector CN10 when SB3 is closed. In this case
C54 must be removed to avoid disturbance due to the capacitor
PF8 is connected to touch slider when SB4 is open. (Default setting)
PF8 is connected to extension connector CN10 when SB4 is closed. In this case
R69 must be removed to avoid disturbance due to the touch slider
PF7 is connected to touch slider when SB5 is open. (Default setting)
PF7 is connected to extension connector CN10 when SB5 is closed. In this case
R73 must be removed to avoid disturbance due to the touch slider
PF6 is connected to touch slider when SB6 is open. (Default setting)
SB6
SB10
SB11
Note:The slider is optimized when the board is powered at 3.3 V. It may be necessary to adjust
the capacitor value of C54 (47nF COG) and the firmware to adapt them to a low voltage.
PF6 is connected to extension connector CN10 when SB6 is closed. In this case
R77 must be removed to avoid disturbance due to the touch slider
PB6 is connected to touch slider when SB10 is open. (Default setting)
PB6 is connected to extension connector CN10 when SB10 is closed. In this case
R92 must be removed to avoid disturbance due to the shield
PB7 is connected to touch slider when SB11 is open. (Default setting)
PB7 is connected to extension connector CN10 when SB11 is closed. In this case
R101 must be removed to avoid disturbance due to the capacitor
2.11 MicroSD Card
The 2 GB (or more) MicroSD Card connected to the SDIO port of the STM32L152ZDT6 is
available on the board. MicroSD Card detection is managed by standard I/O port PC7.
The MicroSD Card will work properly when VDD > 2.7 V.
The LCD glass module has to be mounted on IO position for MicroSD Card usage. Refer to
Section 2.6: LCD glass module for detail.
Doc ID 022868 Rev 119/56
Page 20
Hardware layout and configurationUM1521
www.BDTIC.com/ST
2.12 Serial EEPROM
A 4 Kbit (M95040-R) serial EEPROM is connected to SPI1 of the STM32L152ZDT6.
Serial Flash chip select is managed by I/O pin PB0.
The EEPROM will work properly when VDD > 1.8 V.
The LCD glass module has to be mounted on IO position for SPI EEPROM usage. Refer to
Section 2.6: LCD glass module for detail.
2.13 RF EEPROM
The RF EEPROM daughterboard (MB1020) implemented on the module is the M24LR64-R.
This EEPROM can be accessed by the MCU via the I2C bus or by RF using a 13.56 MHz
reader (for instance CR95HF).
The daughterboard can be connected to the STM32L152ZDT6 via the I2C bus on CN2.
The I2C address of RF EEPROM is 0b1010E2E1E0. E0-E2 values are determined by the
RF EEPROM daughterboard.
The RF EEPROM will work properly when VDD > 1.8 V.
The LCD glass module has to be mounted on IO position for RF EEPROM usage. Refer to
Section 2.6: LCD glass module for detail.
2.14 SRAM
512Kx16-bit SRAM is connected to bank2 of the FSMC interface and both 8-bit and 16-bit
accesses are allowed by BLN0 and BLN1 connected to BLE and BHE of SRAM respectively.
The SRAM will work properly when VDD > 2.4 V.
The LCD glass module has to be mounted on IO position for SRAM usage. Refer to
Section 2.6: LCD glass module for detail.
2.15 NOR Flash
128 Mbit NOR Flash is connected to bank1 of the FSMC interface. The 16-bit operation
mode is selected by pull-up resister connected to BYTE pin of NOR Flash. Write protection
is enabled or disabled by jumper JP9.
Table 16.NOR Flash related jumpers
JumperDescription
Write protection is enabled when JP9 is fitted while write protection is disabled when JP9 is
JP9
The LCD glass module has to be mounted on IO position for NOR Flash usage. Refer to
Section 2.6: LCD glass module for detail.
not fitted.
Default setting: Not fitted
20/56Doc ID 022868 Rev 1
Page 21
UM1521Hardware layout and configuration
www.BDTIC.com/ST
2.16 Analog input
A 2-pin connector, CN8, is connected to PA4 of the STM32L152ZDT6 as an external analog
input or DAC output. A low pass filter can be implemented for a 2-pin connector by replacing
R43 and C35 with ADC input or replacing R36 and C35 with DAC output, with correct values
of resistor and capacitor as requested by end user's application.
There are also three analog signals available on the board:
1.10 KOhm potentiometer RV3 connected to PF10.
2. 10 KOhm potentiometer RV3 connected to OpAmp2 PA6.
3. I
Table 17.Analog input related jumpers
JumperDescription
measurement output signal connected to PF11 for MCU power consumption test.
DD
JP12
JP7Description of JP7 is in Section 2.7: Audio
10 KOhm potentiometer RV3 connected to OpAmp2 PA6 when JP12 is closed.
Default setting: Closed
2.17 Comparator
Three I/Os implement a comparator feature as shown in Figure 8:
●Comparator non-inverting input PB4; connected to LDR (R157).
●Comparator inverting input PB3; connected to potentiometer (RV3) used as variable
threshold input for comparison to luminosity measured on LDR.
●Comparator non-inverting input PB5; connected to potentiometer (RV3) used as analog
voltage input for comparison with internal voltage reference (for instance Band gap) in
order to test analog Wakeup feature of the MCU.
Figure 8.STM32L152D-EVAL comparator features
Doc ID 022868 Rev 121/56
Page 22
Hardware layout and configurationUM1521
www.BDTIC.com/ST
Table 18.Comparator, LDR and potentiometer related jumpers
JumperDescriptionSetting
PB4 is connected to LDR_OUT when JP2 is set as shown to the right:
JP2
PB4 is connected to TRST when JP2 is set as shown to the right:
(Default setting).
PF10
PB3
PB5
Potentiometer RV3 is connected to ADC input PF10 used as ADC input
when JP13 is set as shown to the right: (Default setting).
Potentiometer RV3 used as LDR variable threshold input is connected to
JP13
JP14
comparator inverting input GPCOMP_IN- (PB3) when JP13 is set as shown
to the right:
Potentiometer RV3 is connected to non inverting input
GPCOMP_IN+(PB5). The comparator inverting input can be connected to
¼ band gap, ½ band gap, band gap or DAC internally in order to test the
possibility to wakeup the MCU when an external voltage reaches a
programmable threshold when JP13 is set as shown to the right:
PB5 is connected to I2C_SMB, the interrupt output of temperature sensor
U24 when JP14 is closed (Default setting).
PB5 is disconnected from I2C_SMB but remains connected to COM_IN+
when JP14 is open for comparator application.
The LCD glass module has to be mounted in IO position for comparator usage. Refer to
Section 2.6: LCD glass module for detail.
2.18 Temperature sensor
PF10
PB3
PB5
PF10
PB3
PB5
Temperature sensor STLM75M2E is connected to the I2C bus of the STM32L152ZDT6
through two transistors to support a wide voltage range from 1.65 V to 3.6 V on the I2C bus.
I2C address of temperature sensor is 0b100100(A0), A0 can be 0 or 1 according to SB9.
Table 19.Temperature sensor related solder bridge
Solder bridgeDescription
SB9
I2C address A0 is 0 when SB3 is open. (Default setting)
I2C address A0 is 1 when SB3 is closed.
The LCD glass module has to be mounted on IO position for temperature sensor usage.
Refer to Section 2.6: LCD glass module for detail.
22/56Doc ID 022868 Rev 1
Page 23
UM1521Hardware layout and configuration
www.BDTIC.com/ST
2.19 Display and input devices
The display devices are 4 general purpose color LED's (LD 1,2,3,4) and a 240x320 TFT
color LCD connected to bank3 of the STM32L152ZDT6 FSMC interface port. The LCD
glass module must be mounted on IO position for color LCD usage. Refer to Section 2.6:
LCD glass module for detail.
Input devices are the 4-direction joystick (U23) with selection key and wakeup button (B2).
Table 20.LCD modules
Pin DescriptionPin connection
1CSCS of Bank3 of FSMC
2RSFSMC_A0
3WR/SCLFSMC_NWE
4RDFSMC_NOE
5RESETRESET#
6PD1FSMC_D0
7PD2FSMC_D1
8PD3FSMC_D2
9PD4FSMC_D3
10PD5FSMC_D4
11PD6FSMC_D5
12PD7FSMC_D6
13PD8FSMC_D7
14PD10FSMC_D8
15PD11FSMC_D9
16PD12FSMC_D10
17PD13FSMC_D11
18PD14FSMC_D12
19PD15FSMC_D13
20PD16FSMC_D14
21PD17FSMC_D15
22BL_GNDGND
23BL_control5V
24VDD3.3V
25VCI3.3V
26GNDGND
27GNDGND
28BL_VDD5V
29SDO-
30SDIGND
Doc ID 022868 Rev 123/56
Page 24
Hardware layout and configurationUM1521
www.BDTIC.com/ST
2.20 IDD measurement
The built-in IDD measurement circuit implemented allows the consumption measurement of
the STM32L152ZDT6 while the MCU is in Run or Low power saving modes.
For I
measurement the circuit below is implemented on the STM32L152D-EVAL.
DD
Figure 9.STM32L152D-EVAL I
2.20.1 Run mode
In Run mode, IDD current is measured using operational amplifier MAX9938FEUK+ (U19)
connected to the 1 Ohm shunt resistor (R62). In this case IDD_CNT_EN remains high
during measurement, so R81 remains in short-circuit during measurement because of
transistor T1 which remains ON permanently. JP10 must be connected between pins 2 & 3.
measurement circuit
DD
2.20.2 Low power mode
In Low power modes (Stop or Standby), the operational amplifier MAX9938FEUK+ (U19) is
connected to the 1 KOhm shunt resistor (R81), controlled by the analog switch T1. In this
case the counter 74HC4060 (U15) enabled by IDD_CNT_EN manages the measurement
timing according to Figure 10.
The principle used to measure a current when the STM32L is in Low power mode is:
1.Configure ADC to measure voltage on the IDD_Measurement pin (PF11).
2. Configure PA0 to serve as wakeup pin.
3. Enter Low power mode after setting IDD_CNT_EN (PC13) signal low.
4. IDD_WAKEUP rising edge wakes up the MCU after around 300 ms.
5. Start ADC conversion as soon as possible after wakeup in order to measure the
voltage corresponding to Low power mode on capacitor C82.
6. Reset the counter by programming IDD_CNT_EN high (in less than 70 ms after the
wakeup) to avoid the R81 (1 KOhm) resistor being connected later in Run mode.
In Low power modes, the 1 K resistor is connected when T1 goes off after entering Low
power mode. Q12 output of the counter allows connection of the 1 K resistor when the
current I
24/56Doc ID 022868 Rev 1
becomes very low.
DD
Page 25
UM1521Hardware layout and configuration
MCU modeRunLow power
Wake-upClear CNT
IDD_CNT_EN (PC13)
Q12 = LOW_POWER_EN
(T1 pin 3)
Q13 = IDD_WAKEUP (PA0)
Q13n = disconnect filter
0ms
150 ms
300 ms
eventevent
Wake-up
period
IDD
measurement
3
4
5
6
(U18 pin 4)
www.BDTIC.com/ST
Figure 10. STM32L152D-EVAL IDD Low power modes measurement timing diagram
Figure 10 shows how the counter and T1 ensure that, 150 ms after IDD_CNT_EN falling
edge, the shunt resistor R81 is connected between VDD_MCU and the power supply in
order to reduce the measurement range to 30 uA full scale when VDD = 1.8 V.
Then after another 150 ms for current stabilization, R81 is shorted, the I
stored in C82, and the MCU is woken up. After wakeup the MCU can measure the I
current corresponding to the Low power mode stored in C82.
measurement is
DD
DD
2.20.3 Ibias current measurement procedure
In Low power mode the bias current of operational amplifier input (U19 pin 4) is not
negligible compared to I
measurement it is possible to subtract the bias current from the I
since this current is not sinked by the MCU. The procedure for accurate I
1.Set jumper JP10 on pin 1 and pin 2.
2. Follow the Low power mode procedure to measure I1 = I bias.
3. Remove jumper JP10 from pins 1 and 2 and place it on pins 2 and 3.
4. Follow the Low power mode procedure to measure I2 = I
5. Calculate actual I
If JP10 jumper is in pins 2-3: STM32L is powered through I
If JP10 jumper is in pins1-2: STM32L is powered directly by +3V3, I
is bypassed. Refer to Section 2.2: Power supply for detail.
Note:1When jumper JP10 is removed the current consumption of the STM32L can be measured by
connecting an ammeter between jumper JP10, pins 1 and 2.
2RDS(on) typical value of analog switch T1= 50 MOhm, so to improve measurement
accuracy it is recommended to take into account the RDS in series with R62 (1 Ohm) in the
Run mode current calculation.
I
DD
3To avoid current injection from MCU to components on the board during I
is strongly recommended to keep VDD_MCU
powered by 3.3 V (for instance the ST-LINK) so if VDD_MCU is higher than 3.3 V a current
can be in injected on signals like T_NRST (PB0 of U21) which disturbs the measurement in
low power mode.
current (typical Ibias is ~240 nA). To obtain a reliable MCU IDD
DD
: IDD = I2 - I1.
DD
low power measurement
DD
DD
+ I bias.
DD
measurement circuit (default).
DD
measurement circuit
DD
≤ 3.3 V. Some components on the board are
measurement is:
measurement it
DD
Doc ID 022868 Rev 125/56
Page 26
ConnectorsUM1521
www.BDTIC.com/ST
3 Connectors
3.1 RS-232 connector CN1
Figure 11. RS-232 connector (viewed from front)
Table 21.RS-232 connector CN1 with HW flow control and ISP support
PinDescriptionPinDescription
1NC6Bootloader_BOOT0
2RS-232_RX (PB11)7NC
3RS-232_TX (PB10)8Bootloader_RESET
4NC9NC
5GND
3.2 Power connector CN2
The STM32L152D-EVAL evaluation board can be powered from a DC 5 V power supply via
the external power supply jack (CN2) shown in Figure 12. The central pin of CN2 must be
positive.
Figure 12. Power supply connector CN2 (viewed from front)
3.3 TFT LCD connector CN4
A TFT color LCD board (MB895) is mounted on CN4.
26/56Doc ID 022868 Rev 1
Page 27
UM1521Connectors
www.BDTIC.com/ST
3.4 Daughterboard extension connector CN5 and CN10
Two 42-pin male headers CN5 and CN10 can connect the daughterboard (or standard
wrapping board) to the STM32L152D-EVAL evaluation board. All GPIOs are available on
them and the LCD glass connectors (CN6, CN7).
The space between these two connectors and positions of POWER, GND and RESET pins
are defined as a standard which allows common daughterboards to be developed for
several evaluation boards. The standard width between CN5 pin1 and CN10 pin1 is
2700 mils (68.58 mm). This standard has been implemented on the majority of evaluation
boards.
Each pin on CN5 and CN10 can be used by a daughterboard after disconnecting it from the
corresponding function block on the STM32L152D-EVAL evaluation board. Refer to
3.5 LCD glass daughterboard connectors CN6 and CN7
Two 48-pin male headers CN6 and CN7 connect the LCD glass daughterboard (MB979).
GPIOs which act as LCD glass signals and are not on CN5 and CN10 are available on these
two connectors. The space between these two connectors and the position of every LCD
glass signal is defined as a standard which allows development of common daughterboards
for several evaluation boards. The standard width between the CN7 pin1 and CN6 pin1 is
700 mils (17.78 mm).
GPIO signals on these two connectors can be tested on odd pins when the LCD glass board
is absent. Signal assignments are detailed in Ta bl e 2 4.
Note:If CN6 and CN7 are used as GPIO extension connector on a common daughterboard, do
not connect odd pins and even pins directly onto the daughterboard, and leave Trace
connector (CN11), JTAG connector (CN16) and JP2 open.
Table 24.LCD glass daughterboard connectors CN6 and CN7
CN7CN6
Odd pinGPIO signalOdd pinGPIO signal
1PA91PD2
3PA83PC12
5PA105PC11
7PB97PC10
9PB119PC3
11PB1011PC4
13PB513PC5
15PB1415PC6
17PB1317PC7
19PB1219PC8
21PA1521PC9
23PB823PD8
25PB1525PD9
27PC227PD10
29PC129PD11
31PC031PD12
33PA333PD13
35PA235PD14
37PB037PD15
39PA739PE0
41PA641PE1
43PB443PE2
45PB345PE3
47PB147PA1
30/56Doc ID 022868 Rev 1
Page 31
UM1521Connectors
www.BDTIC.com/ST
3.6 ST-LINK/V2 programming connector CN9
Connector CN9 is used only for embedded ST-LINK/V2 programming during board
manufacture. It is not populated by default and is not for end-user use.
3.7 ST-LINK/V2 USB type B connector CN14
The USB connector CN14 is used to connect the embedded ST-LINK/V2 to a PC for
debugging the board.
Figure 13. USB type B connector CN14 (viewed from front)
Table 25.USB type B connector CN14
PinDescriptionPinDescription
1VBUS (power)4GND
2DM5,6Shield
3DP
3.8 JTAG connector CN16
Figure 14. JTAG debugging connector CN16 (viewed from above PCB)
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.