stm32l152-eval evaluation board - stmicroelectronics...the stm32l152-eval is designed to be powered...
TRANSCRIPT
November 2011 Doc ID 18141 Rev 2 1/10
UM1018User Manual
STM32L152-EVAL evaluation board
IntroductionThe STM32L152-EVAL evaluation board is a complete demonstration and development platform for STMicroelectronics’ ARM cortex-M3 core-based STM32L152VBT6 microcontroller supporting two I2C, two SPI and three USART channels, 12-bit ADC, 12-bit DAC, 16 KB internal SRAM and 128 KB Flash, USB FS, LCD controller, touch sensing and JTAG debugging support.
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, light dependant resistor (LDR), MicroSD CardTM and temperature sensor amongst others) and develop your own applications. Extension headers make it possible to easily connect a daughter board 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.
Figure 1. STM32L152-EVAL evaluation board
www.st.com
Contents UM01018
2/42 Doc ID 18141 Rev 2
Contents
1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1 Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Hardware and layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1 Development and debug support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.3 Clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.4 Reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.5 Boot option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.6 LCD glass module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.7 Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.8 USB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.9 RS-232 and IrDA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.10 Touch sensing buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.11 MicroSD Card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.12 Analog input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.13 Comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.14 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.15 Display and input devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.16 IDD measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.16.1 Run mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.16.2 Low power mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.16.3 Ibias current measurement procedure . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3 Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.1 RS-232 connectors (CN2, CN5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.2 TFT LCD connector (CN14) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3 Power connector (CN12) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.4 Daughterboard extension connectors (CN6 and CN7) . . . . . . . . . . . . . . . 19
3.5 ST-LINK/V2 programming connector CN10 . . . . . . . . . . . . . . . . . . . . . . . 22
3.6 ST-LINK/V2 USB type B connector CN11 . . . . . . . . . . . . . . . . . . . . . . . . 23
UM01018 Contents
Doc ID 18141 Rev 2 3/42
3.7 User USB Type B connector CN1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.8 Audio jack CN3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.9 JTAG connector CN9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.10 Trace debugging connector CN8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.11 MicroSD Card connector CN4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.12 BNC connector CN13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4 Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
5 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Features UM01018
4/42 Doc ID 18141 Rev 2
1 Features
● Four 5 V power supply options:
– Power jack
– ST-LINK/V2 USB connector
– User USB connector
– Daughterboard
● Audio speaker and microphone connected to DAC and ADC of STM32L152VBT6
● 2 GByte or more SPI interface MicroSD CardTM
● I2C compatible serial interface temperature sensor
● RS-232 communication
● IrDA transceiver
● JTAG and trace debug support, ST-LINK/V2 embedded.
● 240x320 TFT color LCD connected to SPI interface of STM32L152VBT6
● Joystick with 4-direction control and selector
● Reset button
● Tamper or Key button
● 4 color user LEDs and 3 LEDs as MCU power range indicator
● MCU consumption measurement circuit
● LCD glass 32 x 4 segments connected to LCD controller in STM32L152VBT6
● 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
● Two touch sensing buttons
● Light dependent resistor (LDR)
● Potentiometer
1.1 Demonstration softwareDemonstration 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 STM32L152-EVAL demonstration software available on www.st.com.
1.2 Order codeTo order the STM32L152VBT6 evaluation board, use the order code STM32L152-EVAL.
UM01018 Hardware and layout
Doc ID 18141 Rev 2 5/42
2 Hardware and layout
The STM32L152-EVAL evaluation board is designed around the STM32L152VBT6 microcontroller in a 100-pin TQFP package.
Figure 1 illustrates the connections between the STM32L152VBT6 and its peripherals (color LCD, touch sensing button, USB FS connector, temperature sensor, USART, IrDA, audio, MicroSD Card and embedded ST-LINK/V2).
Figure 2 helps you to locate these features on the evaluation board.
Figure 1. Hardware block diagram
Hardware and layout UM01018
6/42 Doc ID 18141 Rev 2
Figure 2. STM32L152-EVAL board layout
��
��
�
�������� ���������� �������������������������
���!����
!��
��"!���#
���$
����
���
�#$%��
��#
��&
%�"
���#
��$
'��(��������
�)�
!��* ��
�)#+�������,��� $��-� %���
.� ����/�0!#12�0����/
.���,+� 34�0� ����
!�1
��5#�%�"�).��
��-� %��
+�6� 2��/
)��7��2 ��,���
.����������
5�� ����� �
��8%*�43)�%��
%���-���
!�.��
,�� -�
������8%*�43)�!�.
� ���2��/
)�� ����%�����������
UM01018 Hardware and layout
Doc ID 18141 Rev 2 7/42
2.1 Development and debug supportVersion 2 of the ST-LINK, called ST-LINK/V2, is embedded on the board. This tool allows on-board program loading and debugging of the STM32L using the JTAG or SWD interface. Third-party debug tools are also supported by the JTAG (CN9) or Trace (CN8) connectors.
To communicate with the embedded ST-LINK/V2, a specific driver needs to be installed on your PC. To download and install this driver, refer to the Software and development tools page for the ultra low power STM32L family available on www.st.com (the install shield is called ST-LINK_V2_USBdriver.exe).
The embedded ST-LINK/V2 connects to the PC via a standard USB cable from connector CN11. The bicolor LED LD5 (COM) advises on the status of the communication as follows:
1. Slow blinking Red, then Off: At power-on before USB initialization.
2. Fast blinking Red, then Off: After the first correct communication between PC and ST-Link/V2 (enumeration).
3. Red On: When initialization between PC and ST-LINK/V2 is successfully finished.
4. Green On: After successful target communication initialization.
5. Blinking Red/Green: During communication with target.
6. Green On: Communication finished and OK.
7. Orange On: Communication failure.
Note: It is possible to power the board via CN11 (embedded ST/LINK/V2 USB connector) even if an external tool is connected to CN8 (trace) or CN9 (external JTAG and SWD).
2.2 Power supplyThe STM32L152-EVAL 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 the following four power supply sources by setting jumpers JP12, JP13 and JP4 (see Table 1).
● 5 V DC power adapter connected to CN12, the power jack on the board (power supply unit (PSU on silk screen)). The external power supply is not provided with the board but can be ordered separately.
Note: The AC220V to DC5V power adapter PSU-5V2A (recommended, can be ordered from ST order code PSU-5V2A) or equivalent (polarity compatible with CN12) can be used to power the STM32L152-EVAL board via its power jack CN12.
● 5 V DC power with 500 mA limitation from CN11, the USB type B connector of ST-LINK/V2 (USB 5 V power source (ST-LINK/V2 on silkscreen)).
● 5 V DC power with 500 mA limitation from CN1, the USB type B connector (5 V power source (USB on silkscreen)).
● 5 V DC power from CN6, the extension connector for daughterboard (daughterboard power source (Daughter board on JP12 silkscreen).
Various LEDs indicate the power status:
● Red LED LD9 is lit when the STM32L152-EVAL board is powered correctly by 5 V.
● Red LED LD8 is lit when MCU is powered by low voltage (VDD < 1.8 V).
● Yellow LED LD7 is lit when MCU is powered by voltage (1.8 V<VDD<2.2 V).
● Green LED LD6 is lit when MCU is powered by voltage (2.2 V<VDD).
Hardware and layout UM01018
8/42 Doc ID 18141 Rev 2
Table 1. Power related jumpers
Jumper Description Jumper setting
JP12(selects one of the four possible power supply resources)
For power supply from jack (CN12) to the STM32L152-EVAL only, JP12 is set as shown.
For power supply from daughterboard connector (CN6) to STM32L152-EVAL only, JP12 is set as shown.
For power supply from USB (CN1) to STM32L152-EVAL only, JP12 is set as shown.
For power supply from USB connector of ST-LINK/V2 (CN11) to STM32L152-EVAL only, JP12 is set as shown (default setting).
For power supply from power supply jack (CN12) to both STM32L152-EVAL and daughterboard connected on CN6 and CN7, JP12 is set as shown (daughterboard must not have its own power supply connected).
JP13
VDD is connected to fixed +3.3V DC power when JP13 is set as shown (default setting).
VDD is connected to adjustable DC power from 1.65 V to 3.6 V when JP13 is set as shown.
JP4
VDD power is directly connected to MCU VDD when JP4 is set as shown (default setting).Note: For manual IDD measurement the jumper on JP4 must be removed and replaced by an ammeter connected between pin 1 and 2 of JP4.
Connect VDD power to MCU with current-sampling resistor, 1 Ohm or 1 KOhm, in series for IDD current measurement when JP4 is set as shown.
PSU
STLink/V2USBboardDaughter
PSU
STLink/V2USBboardDaughter
PSU
STLink/V2USBboardDaughter
PSU
STLink/V2USBboardDaughter
PSU
STLink/V2USBboardDaughter
321
321
321
321
UM01018 Hardware and layout
Doc ID 18141 Rev 2 9/42
2.3 Clock sourceTwo clock sources are available on the STM32L152-EVAL evaluation board for the STM32L152VBT6 and embedded RTC.
● X1, 32 KHz crystal for embedded RTC
● X2, 8 MHz crystal with socket for the STM32L152VBT6 microcontroller, it can be removed from the socket when an internal RC clock is used.
2.4 Reset sourceThe reset signal of the STM32L152-EVAL evaluation board is low active and the reset sources include:
● Reset button B1
● Debugging Tools from JTAG connector CN9 and trace connector CN8
● Daughterboard from CN7
● Embedded ST-LINK/V2
● RS-232 connector CN2 for ISP
Note: Jumper JP9 must be changed for RESET. This is handled by pin8 of the RS-232 connector CN2 (CTS signal), refer to Section 2.9 for details.
Table 2. 32 KHz crystal X1 related solder bridges
Solder bridge Description
SB1
PC14 is connected to 32 KHz crystal when SB1 is open (default setting).
PC14 is connected to extension connector CN6 when SB1 is closed. In such case R37 must be removed to avoid disturbance due to the 32 KHz quartz.
SB4
PC15 is connected to 32 KHz crystal when SB4 is open (default setting).
PC15 is connected to extension connector CN6 when SB4 is closed. In such case R38 must be removed to avoid disturbance due to the 32 KHz quartz.
Table 3. 8 MHz crystal X2 related solder bridges
Solder bridge Description
SB2
PH1 is connected to 8 MHz crystal when SB2 is open (default setting).
PH1 is connected to extension connector CN7 when SB2 is closed. In such case R39 must be removed to avoid disturbance due to the 8 MHz quartz.
SB3
PH0 is connected to 8 MHz crystal when SB3 is open (default setting).
PH1 is connected to extension connector CN7 when SB3 is closed. In such case C30 and X2 must be removed.
Hardware and layout UM01018
10/42 Doc ID 18141 Rev 2
2.5 Boot optionThe STM32L152-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). BOOT0 can also be configured via RS-232 connector CN2.
2.6 LCD glass moduleAn LCD glass module, U20, with 8-digit liquid crystal display is mounted on the STM32L152-EVAL evaluation board and is connected to the LCD controller of the STM32L152VBT6.
Table 4. Boot related switches
Switch Boot from Setting
SW1 and SW2
STM32L152-EVAL boot from embedded user Flash when SW1 is set as shown. SW2 is not relevant in this configuration (default setting).
STM32L152-EVAL boot from embedded SRAM when SW1 and SW2 are set as shown.
STM32L152-EVAL boot from system memory when SW1 and SW2 are set as shown.
Table 5. Boot0 related jumper JP6
Jumper Description
JP6Bootloader_BOOT0 is managed by pin 6 of CN2 (RS-232 DSR signal) when JP6 is closed. This configuration is used for boot loader application only. Default setting: Not fitted.
SW10 1
SW1SW2
0 1
SW1SW2
0 1
Table 6. LCD glass related jumpers
Jumper Description Setting
JP7
PC10 is connected to LCD glass as SEG40 when JP7 is set as shown (default setting).
PC10 is connected to USART3_TX when JP7 is set as shown.
JP8
PC11 is connected to LCD glass as SEG41 when JP8 is set as shown (default setting).
PC11 is connected to USART3_RX when JP8 is set as shown.
321
321
321
321
UM01018 Hardware and layout
Doc ID 18141 Rev 2 11/42
2.7 AudioThe STM32L152-EVAL evaluation board supports both:
● The speaker which is connected to the DAC output of the STM32L152VBT6 through an audio amplifier.
● The microphone which is connected to the ADC input of the STM32L152VBT6 through a microphone amplifier.
The speaker can be enabled or disabled by setting JP16, refer to Table 7 for details.
2.8 USBThe STM32L152-EVAL evaluation board supports USB 2.0 compliant full speed communication via a USB type B connector (CN1). The evaluation board can be powered by this USB connection at 5 V DC with 500 mA current limitation.
USB disconnection simulation can be implemented by controlling the internal 1.5 K pull-up resistor on the USB D+ line to detect 5 V power on the USB connector, CN1 (using the resistor bridge that is connected to PE5).
2.9 RS-232 and IrDABoth IrDA and RS-232 (with hardware flow control CTS and RTS) communication is supported by:
● IrDA transceiver, U17 (connected to USART2 of the STM32L152VBT6 on the STM32L152-EVAL evaluation board).
● RS-232 connector, CN2 (D-type 9-pin).For ISP support, two signals are added on the RS-232 connector CN2:
– Bootloader_RESET (shared with CTS signal).
– Bootloader_BOOT0 (shared with DSR signal).
Another RS-232 (without hardware flow control) connector, CN5, is connected to USART3 of the STM32L152VBT6.
Table 7. Audio related jumpers
Jumper Description
JP16Speaker amplifier U27 is enabled when JP16 is open (default setting).
Speaker amplifier U27 is disabled when JP16 is closed.
Table 8. RS-232 and IrDA related jumpers
Jumper Description Setting
JP5
USART2_RX is connected to RS-232 transceiver and RS-232 communication is enabled when JP5 is set as shown (default setting).
USART2_RX is connected to IrDA transceiver and IrDA communication is enabled when JP5 is set as shown.
321
321
Hardware and layout UM01018
12/42 Doc ID 18141 Rev 2
2.10 Touch sensing buttonsThe STM32L152-EVAL evaluation board supports two touch sensing buttons based on either charge transfer technology (default) or RC charging.
RC charging technology can be enabled by modifying the board:
1. Remove R29.
2. Mount resistors R22 (1 MOhm), R23 (1 MOhm), R24 (10 KOhm) and C18(1 nF).
2.11 MicroSD CardThe 2 GB (or more) MicroSD Card connected to SPI2 port of the STM32L152VBT6 is available on the board. MicroSD Card detection is managed by standard I/O port PE6.
Note: JP2 must be kept on open for trace purposes (connected to CN8).
2.12 Analog inputA BNC connector, CN13, is connected to PA5 of the STM32L152VBT6 as external analog input or DAC output. The 50 ohm terminal resistor can be enabled by closing the solder bridge SB5. A low pass filter can be implemented for the BNC connector by replacing R47 and C31 for ADC input or replacing R45 and C31 for DAC output with the values requested by end user's application.
There are also 3 analog signals available on the board:
1. 10 KOhm potentiometer RV3 connected to PB12.
2. IDD measurement output signal connected to PA5 for MCU power consumption test.
3. External ADC input which can be connected to TP3 (AIN+) and TP2 (AIN-), R48 should be removed to reduce the noise on this analog input.
JP9
USART2_CTS is connected to RS-232 transceiver when JP9 is set as shown (default setting).
Bootloader_RESET is connected to RS-232 transceiver when JP9 is set as shown.
JP7,JP8 Refer to Table 6 for USART3 settings.
JP6 See Table 5 for Bootloader_BOOT0 settings.
Table 8. RS-232 and IrDA related jumpers (continued)
Jumper Description Setting
321
321
Table 9. MicroSD Card related jumpers
Jumper Description
JP2
PE6 is connected to MicroSD Card detection when JP2 is closed (default setting).
PE6 is disconnected from MicroSD Card detection but remains connected to trace connector CN8 when JP2 is open.
UM01018 Hardware and layout
Doc ID 18141 Rev 2 13/42
2.13 ComparatorThree I/Os are used to implement a comparator feature as shown in Figure 3.
● Comparator non-inverting input PB4 connected to LDR (R34).
● 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 analogue voltage input for comparison with internal voltage reference (for instance Band gap) in order to test analogue Wakeup feature of the MCU.
Figure 3. STM32L152-EVAL comparator features
Jumper JP17 allows 3 different usages of the potentiometer as shown in Table 10.
Table 10. Comparator and potentiometer related jumpers
Jumper Description Setting
JP17
Potentiometer RV3 is connected to ADC input PB12. Used as ADC input when JP17 is set as shown (default setting).
Potentiometer RV3 used as LDR variable threshold. Input is connected to comparator inverting input GPCOMP_IN- (PB3) when JP17 is set as shown.
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 to test MCU wakeup possibility when an external voltage reaches a programmable threshold when JP17 is set as shown.
JP10
PB4 is connected to JTAG connector CN9 (TRST) when JP10 is set as shown (default setting).
PB4 is connected to LDR when JP10 is set as shown.
PB12PB3PB5
PB12PB3PB5
PB12PB3PB5
321
321
Hardware and layout UM01018
14/42 Doc ID 18141 Rev 2
2.14 Temperature sensorA temperature sensor STLM75M2E is connected to the I2C bus of the STM32L152VBT6 through two transistors to support a wide voltage range, from 1.65 V to 3.6 V.
2.15 Display and input devicesThe display devices are:
● 2.4" color TFT LCD, connected to the SPI1 port of the STM32L152VBT6.
● 4 general purpose color LED's (LD 1,2,3,4). LD3 and LD4 are disabled by default; JP18 and JP19 must be closed to enable these two LEDs.
The input devices are:
● 4-direction joystick (U30) with selection key
● Wakeup button (B2)
JP11
PB5 is connected to I2C_SMB, the interrupt output of temperature sensor U18 when JP11 is closed (default setting).
PB5 is disconnected from I2C_SMB but remains connected to COM_IN+ when JP11 is open for comparator application.
Table 10. Comparator and potentiometer related jumpers (continued)
Jumper Description Setting
Table 11. 2.4" TFT LCD module CN14
Pin on CN3 Description Pin connection
1 CS PH2
2 SCL PE13
3 SDI PE15
4 RS -
5 WR -
6 RD -
7 SDO PE14
8 RESET RESET#
9 VDD 3.3V
10 VCI 3.3V
11 GND GND
12 GND GND
13 BL_VDD 5V
14 BL_Control 5V
15 BL_GND GND
16 BL_GND GND
UM01018 Hardware and layout
Doc ID 18141 Rev 2 15/42
2.16 IDD measurement The built-in IDD measurement circuit implemented allows the consumption measurement of the STM32L152C6T6 while the MCU is in Run or Low power saving modes.
For IDD measurement the circuit below is implemented on STM32L152-EVAL.
Figure 4. STM32L152-EVAL IDD measurement circuit
2.16.1 Run mode
In Run mode, IDD current is measured using the operational amplifier MAX9938FEUK+ (U10) connected to the 1 Ohm shunt resistor (R36).
In this case IDD_CNT_EN remains high during measurement, so R35 remains in short-circuit during the measurement because of transistor T4 which remains ON permanently. Jumper JP4 must be connected between pins 2 and 3.
2.16.2 Low power mode
In Low power modes (Stop or Standby), the operational amplifier MAX9938FEUK+ (U10) is connected to the 1 KOhm shunt resistor (R35), controlled by the analogue switch T4.
In this case the counter 74HC4060 (U6) enabled by IDD_CNT_EN manages the measurement timing according to Figure 5.
*��75��� �,���
*��7���7��
*��79�4�!:
�
#
$
"
!&���$%)��(1$��4�
*3;� ;3* �
(��# �$
)�� "
!��
���$%)��(����4�
)���#��<�=>
�#" �4<�=>
#
$ "
(
� �
� � �
�$����1�:
#
$
"(
�� �
��
�#
����1�:
$
"
�#
� !�15�?&&#@��!4 A
)��
B���
B���
B�##
B"$
B$"
B��
B#�
(��@ ��� &��� �1�� ��5� ��B@ �#B� �$B& �")�� ��!�
�$%)$1�1:9
)��)��
����14
�##�14 ��"
� � )��
)��75�!
�����
��@�"4
���#14
;���--��� C �D ���0 #14EF
)�����11��
:�1
:��#
:�"
��
# ':$
Hardware and layout UM01018
16/42 Doc ID 18141 Rev 2
Figure 5. STM32L152-EVAL IDD low power modes measurement timing diagram
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 (PA5).
2. Configure PA0 to serve as wakeup pin.
3. Enter Low power mode after setting IDD_CNT_EN 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 C25.
6. Reset the counter by programming IDD_CNT_EN high (in less than 70 ms after the wakeup) to avoid the R35 (1 KOhm) resistor being connected later in Run mode.
In Low power modes, the 1 KOhm resistor is connected when T4 goes off after entering Low power mode. Q12 output of the counter allows connection of the 1 K resistor when the current IDD becomes very low.Figure 5 shows how the counter and T4 ensure that, 150 ms after IDD_CNT_EN falling edge, the shunt resistor R35 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, R35 is shorted, the IDD measurement is stored in C25, and the MCU is woken up. After wakeup the MCU can measure the IDD current corresponding to the Low power mode stored in C25.
Note: It is recommended to maintain VDD on the STM32L at a value lower than 3.5 V during low power current measurement to avoid extra current consumption on the NRST pin (U11 pin 14). The reason for this is that the NRST pin of the STM32L is connected to the ST-LINK MCU T_NRST signal (U23 pin 18), and as the ST-LINK is powered at 3.3 V a leakage current is injected into the STM32L NRST pin when MCU VDD becomes equal to or greater than 3.5 V.
MCU mode Run Stop or Standby
Wake-up Clear CNT
IDD_CNT_EN (PB15)
Q12 = LOW_POWER_EN(T4 pin 3)
Q13 = IDD_WAKEUP
Q13n = disconnect filter
0 ms 150 ms 300 ms
event event
Wake-upperiod
IDD measurement
3
4
5
6
(U7 pin 4)
(PC13)
UM01018 Hardware and layout
Doc ID 18141 Rev 2 17/42
2.16.3 Ibias current measurement procedure
In Low power mode the bias current of operational amplifier input (U10 pin 4) is not negligible compared to IDD current (typical Ibias is ~240 nA). To obtain a reliable MCU IDD measurement it is possible to subtract the bias current from the IDD low power measurement since this current is not sinked by the MCU.
The procedure for accurate IDD measurement is:
1. Set jumper on JP4 pins 1 and 2.
2. Follow the Low power mode procedure to measure I1 = I bias.
3. Remove jumper on JP4 pins 1 and 2 and place it on JP4 pins 2 and 3.
4. Follow the low power mode procedure to measure I2 = IDD + I bias.
5. Calculate actual IDD: IDD = I2 - I1.
Note: When jumper JP4 is removed the current consumption of the STM32L can be measured by connecting an ammeter between jumper JP4 pin 1 and pin 2.
Note: RDS (on) typical value of analog switch T4 = 50 micro Ohm, so to improve measurement accuracy it is recommended to take into account the RDS in series with R36 (1 Ohm) in the Idd Run mode current calculation.
Table 12. IDD measurement related jumpers
Jumper Description Setting
JP14
PA5 is connected to IDD_measurement, the output of IDD measurement circuit when JP14 is closed (default).
PA5 is disconnected from IDD_measurement but remains connected to BNC connector CN13 when JP14 is open.
JP4
STM32L is powered through IDD measurement circuit (default)
STM32L is powered directly by +3V3, IDD measurement circuit is bypassed. Please refer to Section 2.2: Power supply for details.
321
321
Connectors UM01018
18/42 Doc ID 18141 Rev 2
3 Connectors
3.1 RS-232 connectors (CN2, CN5)
Figure 6. RS-232 connector (viewed from front)
3.2 TFT LCD connector (CN14)A TFT color LCD board (MB895) is mounted on CN14.
Table 13. RS-232 connector CN2 with HW flow control and ISP support
Pin number Description Pin number Description
1 6 Bootloader_BOOT0
2 RS-232_RX (PD6) 7 RS-232_RTS(PD4)
3 RS-232_TX (PD5) 8 RS-232_CTS(PD3)/Bootloader_RESET
4 NC 9 NC
5 GND
Table 14. RS-232 connector CN5
Pin number Description Pin number Description
1 NC 6 Connected to pin4
2 RS-232_RX (PC11) 7 Connected to pin8
3 RS-232_TX (PC10) 8 Connected to pin7
4 Connected to pin6 9 NC
5 GND
UM01018 Connectors
Doc ID 18141 Rev 2 19/42
3.3 Power connector (CN12)Your STM32L152-EVAL evaluation board can be powered from a DC 5 V power supply via the external power supply jack (CN12) shown in Figure 7. The central pin of CN12 must be positive.
Figure 7. Power supply connector CN12 (viewed from front)
3.4 Daughterboard extension connectors (CN6 and CN7)Two 50-pin male headers CN6 and CN7 can connect a daughterboard or standard wrapping board to the STM32L152-EVAL evaluation board. All GPIOs are available on it. The space between these two connectors and position 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 CN6 pin1 and CN7 pin1 is 2700 mils (68.58 mm). This standard is implemented on the majority of evaluation boards.
Each pin on CN6 and CN7 can be used by a daughterboard after disconnecting it from the corresponding function block on the STM32L152-EVAL evaluation board. Please refer to Table 15 and Table 16 for details.
Table 15. Daughterboard extension connector CN6
Pin Description Alternative functionHow to disconnect with function block on
STM32L152-EVAL board
1 GND - -
3 PC7 TS_KEY2 Remove R13
5 PC9 TS_CT Remove R29
7 PA9 COM1 Remove LCD glass U20
9 PA0 Tamper/Key -
11 PC14 32K OSC Remove R37
13 PA12 USB DP Remove R25
15 PC15 32K OSC Remove R38
17 PC10 LCD glass_SEG40 / USART3_TX JP7 open
19 GND - -
21 PC12 LCD glass_SEG42 Remove LCD glass U20
23 PD1 LED2 Remove R125
Connectors UM01018
20/42 Doc ID 18141 Rev 2
25 PD3 USART2_CTS JP9 open
27 PD5 USART2_TX / LED4 JP19 open
29 PD7 CS_uSD Remove SD card from CN4
31 VLCD - -
33 PB3 JTDO / COMP_POT- JP17 open
35 PB5 TEMP_SMBAI / COMP_POT+ JP17 and JP11 open
37 PB7 I2C_TEMP_SDA Remove R62
39 GND - -
41 PE2 LCD glass_SEG38 / TRACE_CLK Remove LCD glass U20
43 PE4 TRACE_D1 -
45 PB8 LCD glass_SEG16 Remove LCD glass U20
47 PE6 TRACE_D3 / SD Card detection JP2 open
49 D5V - -
2 PC6 TS_KEY1 Remove R14
4 PC8 TS_SHIELD -
6 PA8 LCD glass_COM0 Remove LCD glass U20
8 PA10 LCD glass_COM2 Remove LCD glass U20
10 GND - -
12 PA11 USB DM Remove R16
14 PA13 JTMS -
16 PA14 JTCK -
18 PC11 LCD glass_SEG41 / USART3_RX JP8 open
20 PA15 JTDI -
22 PD0 LED1 Remove R111
24 PD2 LCD glass_SEG43 Remove LCD glass U20
26 PD4 USART2_RTS/ LED3 JP18 open
28 PD6 USART2_RX Remove R19
30 GND - -
32 PH2 CS_LCD -
34 PB4 JTRST / LDR JP10 open
36 PB6 I2C_TEMP_SCL Remove R69
38 PE0 LCD glass_SEG36 Remove LCD glass U20
40 PE1 LCD glass_SEG37 Remove LCD glass U20
42 PE3 LCD glass_SEG39 / TRACE_D0 Remove LCD glass U20
Table 15. Daughterboard extension connector CN6 (continued)
Pin Description Alternative functionHow to disconnect with function block on
STM32L152-EVAL board
UM01018 Connectors
Doc ID 18141 Rev 2 21/42
44 PE5 TRACE_D2 -
46 PB9 LCD glass_COM3 Remove LCD glass U20
48 +3V3 - -
50 GND - -
Table 16. Daughterboard extension connector CN7
Pin Description Alternative functionHow to disconnect with function block
on STM32L152-EVAL board
1 GND - -
3 PD14 LCD glass_SEG34 Remove LCD glass U20
5 PD12 LCD glass_SEG32 Remove LCD glass U20
7 PD10 LCD glass_SEG30 Remove LCD glass U20
9 PC13 IDD_CNT_EN -
11 RESET# - -
13 PB15 uSD_SPI2_MOSI -
15 PB13 uSD_SPI2_SCK -
17 PB11 LCD glass_SEG11 Remove LCD glass U20
19 D5V -
21 PE14 LCD_SPI1_MISO Remove R57
23 PH0 OSC_IN Remove X2 from socket and close SB3
25 PE12 JOYSTICK_LEFT Remove R118
27 PE10 JOYSTICK_DOWN Remove R127
29 PE8 JOYSTICK_SEL Remove R112
31 PE7 Audio_IN Remove R75
33 PB1 LCD glass_SEG6 Remove LCD glass U20
35 PC5 LCD glass_SEG23 Remove LCD glass U20
37 PA7 LCD glass_SEG4 Remove LCD glass U20
39 GND - -
41 PA4 Audio_DAC1_out Remove R103
43 PA2 LCD glass_SEG1 Remove LCD glass U20
45 PC3 LCD glass_SEG21 Remove LCD glass U20
47 PC1 LCD glass_SEG19 Remove LCD glass U20
49 PC13 IDD_CNT_EN -
2 PD15 LCD glass_SEG35 Remove LCD glass U20
Table 15. Daughterboard extension connector CN6 (continued)
Pin Description Alternative functionHow to disconnect with function block on
STM32L152-EVAL board
Connectors UM01018
22/42 Doc ID 18141 Rev 2
3.5 ST-LINK/V2 programming connector CN10Connector CN10 is used only for embedded ST-LINK/V2 programming during board manufacture. It is not populated by default and is not for end user usage.
4 PD13 LCD glass_SEG33 Remove LCD glass U20
6 PD11 LCD glass_SEG31 Remove LCD glass U20
8 PD9 LCD glass_SEG29 Remove LCD glass U20
10 GND - -
12 PD8 LCD glass_SEG28 Remove LCD glass U20
14 PB14 uSD_SPI2_ -
16 PB12 POT_ADC18 JP17 open
18 PB10 LCD glass_SEG10 Remove LCD glass U20
20 PE15 LCD_SPI1_MOSI -
22 PE13 LCD_SPI1_SCK -
24 PH1 OSC_OUT Remove X2 from socket and close SB2
26 PE11 JOYSTICK_RIGHT Remove R117
28 PE9 JOYSTICK_UP Remove R126
30 GND - -
32 PB2 BOOT1 / TS_LOAD -
34 PB0 LCD glass_SEG5 Remove LCD glass U20
36 PC4 LCD glass_SEG22 Remove LCD glass U20
38 PA6 LCD glass_SEG3 Remove LCD glass U20
40 PA5 BNC JP14 open
42 PA3 LCD glass_SEG2 Remove LCD glass U20
44 PA1 LCD glass_SEG0 Remove LCD glass U20
46 PC2 LCD glass_SEG20 Remove LCD glass U20
48 PC0 LCD glass_SEG18 Remove LCD glass U20
50 GND - -
Table 16. Daughterboard extension connector CN7 (continued)
Pin Description Alternative functionHow to disconnect with function block
on STM32L152-EVAL board
UM01018 Connectors
Doc ID 18141 Rev 2 23/42
3.6 ST-LINK/V2 USB type B connector CN11The USB connector, CN11, is used to connect the embedded ST-LINK/V2 to the PC for board debugging.
Figure 8. USB type B connector CN11 (viewed from front)
3.7 User USB Type B connector CN1
Figure 9. USB type B connector CN1 (viewed from front)
3.8 Audio jack CN3A 3.5 mm stereo audio jack, CN3, connected to audio DAC is available.
Table 17. USB type B connector CN11
Pin number Description Pin number Description
1 VBUS (power) 4 GND
2 DM 5,6 Shield
3 DP
Table 18. USB type B connector CN1
Pin number Description Pin number Description
1 VBUS (power) 4 GND
2 DM 5 Shield
3 DP 6 Shield
Connectors UM01018
24/42 Doc ID 18141 Rev 2
3.9 JTAG connector CN9
Figure 10. JTAG debugging connector CN9 (viewed from above PCB)
3.10 Trace debugging connector CN8This is the same connector type as CN9 (see Figure 10).
Table 19. JTAG debugging connector CN9
Pin number Description Pin number Description
1 3.3 V power 2 3.3 V power
3 PB4 4 GND
5 PA15 6 GND
7 PA13 8 GND
9 PA14 10 GND
11 RTCK 12 GND
13 PB3 14 GND
15 RESET# 16 GND
17 DBGRQ 18 GND
19 DBGACK 20 GND
Table 20. Trace debugging connector CN8
Pin number Description Pin number Description
1 3.3V power 2 TMS/PA13
3 GND 4 TCK/PA14
5 GND 6 TDO/PB3
7 KEY 8 TDI/PA15
9 GND 10 RESET#
11 GND 12 TraceCLK/PE2
13 GND 14 TraceD0/PE3 or SWO/PB3
15 GND 16 TraceD1/PE4 or nTRST/PB4
17 GND 18 TraceD2/PE5
19 GND 20 TraceD3/PE6
UM01018 Connectors
Doc ID 18141 Rev 2 25/42
3.11 MicroSD Card connector CN4
Figure 11. MicroSD Card connector CN4 (viewed from front)
3.12 BNC connector CN13
Figure 12. Analog input connector CN13 (viewed from bottom)
Table 21. MicroSD Card connector CN4
Pin number Description Pin number Description
1 5 MicroSDcard_CLK (PB13)
2 MicroSDcard_CS (PD7) 6 Vss/GND
3 MicroSDcard_DIN(PB15) 7 MicroSDcard_DOUT(PB14)
4 +3V3 8
9 MicroSDcard_detect (PE6)
Table 22. Analog input connector CN13
Pin number Description Pin number Description
1 GND 4 GND
2 GND 5 Analog input PA5
3 GND
Schematics UM01018
26/42 Doc ID 18141 Rev 2
4 Schematics
The following schematics are listed.
● Figure 13: STM32L152-EVAL on page 27
● Figure 14: MCU on page 28
● Figure 15: LCD glass on page 29
● Figure 16: Audio on page 30
● Figure 17: Peripherals on page 31
● Figure 18: Power on page 32
● Figure 19: Extension connector on page 33
● Figure 20: LCD and SD Card on page 34
● Figure 21: RS-232 and IrDA on page 35
● Figure 22: IDD_Measurement on page 36
● Figure 23: Temperature sensor on page 37
● Figure 24: ST-LINK on page 38
● Figure 23: Temperature sensor on page 37
● Figure 26: Touch sensing on page 40
UM
01018S
chem
atics
Doc ID
18141 Rev 2
27/42
Figure 13. STM32L152-EVAL
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011MB819 1 14
STM32L152-EVAL
Note1:All text in the each sheet is in Italic format to be different with Net label.Note2:Version upgrade from B.1 to B.2 due to FDC606 used for T3 and T4 instead of STT5PF20V.Note3:Version upgrade from B.3 to B.4 to correct comments on italic for LD3&LD4 on sheet 5.
Audio_OUTAudio_IN
U_AudioAudio.SchDoc
PA[0..15]PB[0..15]PC[0..15]PD[0..15]PE[0..15]
RESET#PH[0..2]
U_Extension connectorExtension connector.SCHDOC
TDITRSTTMS/SWDIOTCK/SWCLK
TDO/SWO
TRACE_D3TRACE_D2TRACE_D1TRACE_D0TRACE_CK
RESET#
U_JTAG&TraceJTAG&Trace.SchDoc
SEG[0..43]COM[0..3]
U_LCD_GlassLCD_Glass.SCHDOC
MicroSD_CS
SPI1_SCKSPI1_MOSI
LCD_CS
SPI1_MISO
SDcard_detectRESET#
SPI2_SCKSPI2_MOSISPI2_MISO
U_LCD_MicroSDLCD_MicroSD.SchDoc
PA[0..15]PB[0..15]PC[0..15]PD[0..15]PE[0..15]
RESET#
Bootloader_BOOT0Bootloader_RESET
PH[0..2]
TRACE_D3TRACE_D2TRACE_D1TRACE_D0TRACE_CK
SEG[0..43]
WAKEUP
Audio_OUT
BNC
TS_LOAD
SDcard_detect
JOY_SELJOY_DOWNJOY_LEFT
JOY_RIGHTJOY_UP
MicroSD_CS
SPI1_SCKSPI1_MOSI
LCD_CS
SPI1_MISO
SPI2_SCKSPI2_MOSISPI2_MISO
Potentiometer
Audio_IN
IDD_CNT_EN
TS1TS2
TS_SHIELDTS_CT
COM[0..3]
USB_DMUSB_DP
TDITRST
TMS/SWDIOTCK/SWCLK
TDO/SWO
USART3_TXUSART3_RX
LED4LED3LED1LED2
USART2/IrDA_TX
USART2/IrDA_CTS
USART2/IrDA_RX
USART2/IrDA_RTS
LDR_OUT
COM_IN-COM_IN+
I2C_SLKI2C_SDAI2C_SMB
U_MCUMCU.SchDoc
BNC
Potentiometer
LED4LED3LED1LED2
JOY_SELJOY_DOWNJOY_LEFTJOY_RIGHTJOY_UPLDR_OUT
USB_DMUSB_DP
WAKEUPCOM_IN-COM_IN+
IDD_Measurement
U_PeripheralsPeripherals.SchDoc
U_PowerPower.SchDoc
USART2/IrDA_TX
USART2/IrDA_CTSBootloader_RESETBootloader_BOOT0USART2/IrDA_RX
USART2/IrDA_RTSUSART3_TXUSART3_RX
U_RS232_IrDARS232_IrDA.SCHDOC
TMS/SWDIOTCK/SWCLK
TDO/SWO
TDITRST
RESET#
U_ST_LINKST_LINK.SCHDOC
I2C_SLKI2C_SDAI2C_SMB
U_TemSensorTemSensor.SCHDOC
TS_LOAD
TS1TS2
TS_SHIELDTS_CT
U_Touch SensingTouch Sensing.SchDoc
IDD_Measurement
IDD_CNT_ENIDD_WAKEUP
U_IDD_measurementIDD_measurement.SchDoc
Sch
ematics
UM
01018
28/42D
oc ID 18141 R
ev 2
Figure 14. MCU
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011MB819 2 14
STM32L152-EVAL MCU
PE2 1PE3 2PE4 3PE5 4PE6 5
PC13-ANTI_TAMP 7PC14-OSC32_IN 8PC15-OSC32_OUT 9
PH0-OSC_IN12
PH1-OSC_OUT13
NRST14
PC0 15PC1 16PC2 17PC3 18
PA0-WKUP23
PA124
PA225
PA326
PA429
PA530
PA631
PA732
PC4 33PC5 34
PB035
PB136
PB237
PE7 38PE8 39PE9 40PE10 41PE11 42PE12 43PE13 44PE14 45PE15 46
PB1047
PB1148
PB1251
PB1352
PB1453
PB1554
PD8 55PD9 56PD10 57PD11 58PD12 59PD13 60PD14 61PD15 62
PC6 63PC7 64PC8 65PC9 66
PA867
PA968
PA1069
PA1170
PA1271
PA1372
PH273
PA1476
PA1577
PC10 78PC11 79PC12 80
PD0 81PD1 82PD2 83PD3 84PD4 85PD5 86PD6 87PD7 88
PB389
PB490
PB591
PB692
PB793
BOOT094
PB895
PB996
PE0 97PE1 98
U11A
STM32L152VBT6
PE0PE1PE2PE3PE4PE5PE6PE7PE8PE9PE10PE11PE12PE13PE14PE15
PC0PC1PC2PC3PC4PC5PC6PC7PC8PC9PC10PC11PC12PC13
PA[0..15] PA[0..15]
PB[0..15] PB[0..15]
PC[0..15] PC[0..15]
PD[0..15] PD[0..15]
PE[0..15] PE[0..15]
1
4 3
2B1
RESET
R137[N/A]
VDDC85
100nF
C33
20pF
C3020pF
X28MHz (with socket)
R390
R3210K
VDD
231
SW109.03290.01
RESET#
R4310K
VDD
23
1 SW2
09.03290.01
4 1
3 2
X1MC306-G-06Q-32.768 (manufacturer JFVNY)
C286.8pF
C296.8pF
R380
PC14PC15PA0
PA1PA2PA3PA4PA5PA6PA7PA8PA9PA10PA11PA12PA13PA14PA15
PB0PB1PB2PB3PB4PB5PB6PB7PB8PB9PB10PB11PB12PB13PB14PB15 PD0
PD1PD2PD3PD4PD5PD6PD7PD8PD9PD10PD11PD12PD13PD14PD15
R370
Bootloader_BOOT0
Bootloader_RESET
D1BAT60JFILM
D2BAT60JFILM
VLCD6 VSS_5 10VDD_511
VSSA 19VREF- 20VREF+21
VDDA22
VSS_4 27VDD_428
VSS_1 49VDD_150
VSS_2 74VDD_275
VSS_3 99VDD_3100
U11B
Scorpio
L1
BEAD C341uF
C32100nF
R4150
R400
VDDA
VDD_MCU
VREF+
VREF-
C27
100nF
TP1
VREF
VDD_MCU
C21100nF
C26100nF
C24100nF
C17100nF
C23100nF
VDD_MCU
PH[0..2] PH[0..2]
PH0PH1
PH2
TRACE_D3TRACE_D2TRACE_D1
TRACE_D0TRACE_CK
SEG38SEG39
SEG[0..43]SEG[0..43]
C221uF
WAKEUP
SEG18SEG19SEG20SEG21
SEG0SEG1SEG2
Audio_OUTBNC SEG3
SEG4
SEG22SEG23
SEG5SEG6
TS_LOAD
SDcard_detect
JOY_SEL
JOY_DOWN
JOY_LEFTJOY_RIGHT
JOY_UP
MicroSD_CS
SPI1_SCK
SPI1_MOSI
LCD_CS
SPI1_MISO
SPI2_SCK
SPI2_MOSISPI2_MISO
SEG10SEG11
Potentiometer
Audio_IN
IDD_CNT_EN
SEG28SEG29SEG30SEG31SEG32SEG33SEG34SEG35
TS1TS2TS_SHIELDTS_CT
COM[0..3] COM[0..3]
COM0COM1COM2
USB_DMUSB_DP
TDI
TRSTTMS/SWDIOTCK/SWCLK
TDO/SWO
12
3
JP8
12
3
JP7SEG40SEG41
SEG42
USART3_TX
USART3_RX
LED4LED3
LED1LED2
SEG43
USART2/IrDA_TX
USART2/IrDA_CTS
USART2/IrDA_RX
USART2/IrDA_RTS
LDR_OUT
COM_IN-
COM_IN+
I2C_SLKI2C_SDA
I2C_SMB
SEG16COM3
SEG36SEG37
12
3
JP10
R77 0R78 0
VLCD
JP11
JP19 JP18
JP6
JP2
U5VR86100K
R81220K
R880
R138150
UM
01018S
chem
atics
Doc ID
18141 Rev 2
29/42
Figure 15. LCD glass
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011MB819
STM32L152-EVAL LCD Glass
3 14
S015
S116
S221
S322
S413
S514
S623
S724
S811
S912
S10
25S1
126
S12
9
S13
10S1
427
S15
28
S16
7
S17
8S1
829
S19
30
S20
5
S21
6S2
231
S23
32
S24
3
S25
4S2
633
S27
34
S28
1
S29
2S3
035
S31
36
COM1
20
COM2
19CO
M3
18CO
M4
17
U20PD878-DP-FH-W-LV-6-RH
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG10
SEG11
SEG16
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
SEG28
SEG29
SEG30
SEG31
SEG32
SEG33
SEG34
SEG35
SEG38
SEG39
SEG36
SEG37
SEG40
SEG41
SEG42
SEG43
COM0
COM1
COM2
COM3
SEG[0..43] SEG[0..43] COM[0..3]COM[0..3]
Sch
ematics
UM
01018
30/42D
oc ID 18141 R
ev 2
Figure 16. Audio
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011
12
U29KECG2740TBL
21 U25
KDMG15008-03
C82
180pF
C75
100nF
R98100K
R100100K
R10910K
JP16
+3V3
+3V3
C71
470nF
R11022K
R12122K
C74
330pF
C661uF
TP9MIC_OUTTP8
MIC+
R991K
R128100
R1062K2
C7247pF
VDD
R10115K
13
2
RV1[N/A]
Speaker+
Speaker-
1102
CN3
ST-613
C69[N/A]
R108 0
Audio_OUT
Audio_IN
C67
10uF
C684.7uF
C732.2uF
R12918K
VDD
R107 82K
R135680
C844.7uF
+3V3
R1030
C70[N/A]
MB819 4 14
STM32L152-EVAL Audio
Standby1
Bypass2 VIN+3 VIN-4 VOUT1 5
VCC 6
GND 7
VOUT2 8
U27
TS4990ISTC831uF
PA4
PE7R75 04
31
25 U28
TS461CLT
UM
01018S
chem
atics
Doc ID
18141 Rev 2
31/42
Figure 17. Peripherals
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011MB819 5 14
STM32L152-EVAL Peripherals
12345
CN13
VB334
13
2RV310K
VDD
BNC
Potentiometer
BNC connector
Potentiometer/Comparator
1 2
LD3Red
1 2
LD2Orange
1 2
LD4Blue
1 2
LD1Green+3V3
R136510
R131680
R123680
R130680
LED4
LED3
LED1
LED2
R115
10K
R119
10K
R116
10K
R114
10K
R113
10K
VDD
C77
100n
F
C79
100n
F
C80
100n
F
C78
100n
F
C76
100n
F
R132100
COMMON5
Selection2
DWON3
LEFT1
RIGHT4
UP6
U30
MT008-A
R126 0R117 0R118 0R127 0R112 0JOY_SEL
JOY_DOWNJOY_LEFTJOY_RIGHTJOY_UP
Joystick
WKUP/TAMPER Button
LEDs
USB
LDR_OUTR538.2K
VDD
+3V3
R91K
R61K2
+3V3
12
LD8Red
R3510
+3V3
SB5 R42 50
Low Voltage LED
PB4
PB12
PD0
PD1
PD4
PD5
PE9PE11PE12PE10PE8
R111 0
R125 0
R124 0
R122 0
U5V C5100nF
VCC 1
D- 2
D+ 3
GND 4
SHELL 0
SHELL 0
CN1USB-typeB connector
I/O11
GND2
I/O23 I/O2 4Vbus 5I/O1 6U7
USBLC6-2P6 (optional)
U5V
R271MC13
4.7nF
USB_DMUSB_DPR25 0
R16 0
C31[N/A]
R47 0R450
TP3AIN+
TP2AIN-
R134220K
143 2
B2WKUPC81
[N/A]
VDD
R133100
R120330
WAKEUP
Close to MCU on PCB
6 54 32 1
JP17
Header 3X2
COM_IN-COM_IN+
PB3PB5
6
57
U1B
TS3702IPT
2
31
48 U1A
TS3702IPT
12
LD7Orange
R1510
12
LD6Green
R2510
VDD
+3V3
R51K
R42K
VDD<1.8V
1.8V<VDD<2.2V
VDD>2.2V
PA12
PA5
PA11
PA0
R48 0
R34VT9ON1
VDD
IDD_Measurement
R960
JP14
Sch
ematics
UM
01018
32/42D
oc ID 18141 R
ev 2
Figure 18. Power
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011
Vin3
GND
1
Vout 2
U22LD1086D2M33
SV1
SG2
CV 3
CG1 4
CG2 5
CG3 6
U21
BNX002-01
C58220uF
E5V
TP55V
+5VR721K
1 2
LD9red
C6547uF
C5510uF
C5210uF
C51100nF
+5V +3V3
VDD_ADJ+5V
TP4Ground
TP6+3V3
TP7VDD_ADJ
1
32
CN12
DC-10BZ1SMAJ5.0A-TR C61
100nF
12
3
U26ZEN056V130A24LS
R94124[1%]
13
2RV23386P-201H[5%]
32
1
JP13
VDD
R9540.2[1%]
Vin3
ADJ
1
Vout 2
U24LD1086D2M
E5VD5V
MB819 6 14
STM32L152-EVAL Power
U5V7 85 63 41 2
JP12
Header 4X2
U5V_ST_LINK C63100nF
Power Supply VDD_ADJ [1.65V to 3.6V]
R562K2[1%]
C391uF
UM
01018S
chem
atics
Doc ID
18141 Rev 2
33/42
Figure 19. Extension connector
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011MB819 7 14
STM32L152-EVAL Extension Connector
R49820R31820
1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 2829 3031 3233 3435 3637 3839 4041 4243 4445 4647 4849 50
CN6
Header 25X2
1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 2829 3031 3233 3435 3637 3839 4041 4243 4445 4647 4849 50
CN7
Header 25X2
+3V3D5V
PA[0..15] PA[0..15]
PB[0..15] PB[0..15]
PC[0..15] PC[0..15]
PD[0..15] PD[0..15]
PE[0..15] PE[0..15]
RESET# RESET#
Left Right
PA0
PA1PA2PA3PA4PA5PA6PA7
PA8PA9 PA10
PA11PA12 PA13
PA14
PA15
PB0PB1PB2
PB3 PB4PB5 PB6PB7
PB8 PB9
PB10PB11PB12PB13PB14PB15
PE0PE1
PE2 PE3PE4 PE5
PE6
PE7PE8
PE9PE10PE11PE12
PE13PE14PE15
PC0PC1PC2PC3
PC4PC5
PC6PC7 PC8
PC9
PC10 PC11
PC12
PC13PC14
PC15
PD0PD1 PD2PD3 PD4PD5 PD6PD7
PD8
PD9PD10PD11PD12PD13PD14PD15
PC13
RESET#SB1
SB4
close to MCUOpen by default
PH[0..2] PH[0..2]
PH2
R28 [N/A]R30[N/A]
close to MCU
PH0
PH1
SB3
SB2
close to MCUOpen by default
VLCD
D5V
Sch
ematics
UM
01018
34/42D
oc ID 18141 R
ev 2
Figure 20. LCD and SD Card
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011MB819 8 14
STM32L152-EVAL LCD&SDcard
MicroSD_CS
SPI1_SCK
SPI1_MOSI
LCD_CS
+3V3
SPI1_MISO
12345678
SW2 9SW1 10CN4
PJS008-2000 (SMS064FF or SMS128FF)
SDcard_detect
MicroSD card
CS1
SCL2
SDI3
RS4
WR5
RD6
RESET8
VDD9
VCI10
SDO7
GND11
GND12
BL_VDD13
BL_Control14
BL_GND15
BL_GND16
CN142.4" LCD connector (MB542 with AM240320L8TNQW-00H)
+3V3
+5V
Do not fitTFT LCD
PE6
VCCA1
A12
A23
GND4 DIR 5B2 6B1 7VCCB 8U16
SN74LVC2T45DCUT
+3V3VDD
VCCA1
A12
A23
GND4 DIR 5B2 6B1 7VCCB 8U14
SN74LVC2T45DCUT
+3V3VDD
VDD
R57 0R58 0
C46100nF
C45100nF
C38100nF
C35100nF
VCCA1
A12
A23
GND4 DIR 5B2 6B1 7VCCB 8U13
SN74LVC2T45DCUT
+3V3VDD
VDD
C42100nF
C36100nF
MicroSD_CS_3V3SPI2_MOSI_3V3
SPI2_MISO_3V3
SPI2_SCK_3V3
MicroSD_CS_3V3
SPI2_SCK_3V3
SPI1_MISO_3V3
SPI1_SCK_3V3
LCD_CS_3V3
SPI1_MOSI_3V3
SPI1_MISO_3V3
SPI1_SCK_3V3
LCD_CS_3V3
SPI2_SCK
SPI2_MOSI
SPI2_MISO SPI2_MISO_3V3
VCCA1
A12
A23
GND4 DIR 5B2 6B1 7VCCB 8U15
SN74LVC2T45DCUT
+3V3VDD
VDD
C43100nF
C37100nF
SPI1_MOSI_3V3SPI2_MOSI_3V3
PE13
PE14
PE15
PD7
PB13
PB14
PB15
PH2
R5910K
VDD
R6410K
RESET#
+3V3VDD
R914K7
2
1 3
G
S D
TR4BSN20
UM
01018S
chem
atics
Doc ID
18141 Rev 2
35/42
Figure 21. RS-232 and IrDA
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011
USART2/IrDA_TX
USART2/IrDA_CTS
SD5
TxD3
GND8
Anode (VCC2)1
Cathode2
RxD4
VCC16
NC7
U17
TFDU6300
R55
5R60 47
C47100nF
+3V3
C404.7uF
IrDA
12
3 JP9
C2+1
C2-2 V- 3
R1IN 4
R2IN 5
R3IN 6
R4IN 7
R5IN 8
T1OUT 9
T2OUT 10
T3OUT 11T3IN12 T2IN13 T1IN14
R5OUT15 R4OUT16 R3OUT17 R2OUT18 R1OUT19 R2OUTB20 R1OUTB21
nSHDN 22nEN23
C1-24 GND 25VCC 26
V+ 27
C1+28U8
ST3241EBPR
C16100nF
C19100nF
C14100nF
C15100nFC20100nF
+3V3
162738495
CN2DB9-male USART2
+3V3
Bootloader_RESET
MB819 9 14
STM32L152-EVAL RS232&IrDA
Bootloader_BOOT0
VCCA1
A12
A23
GND4 DIR 5B2 6B1 7VCCB 8U2
SN74LVC2T45DCUT
+3V3VDD
VCCA1
A12
A23
GND4 DIR 5B2 6B1 7VCCB 8U4
SN74LVC2T45DCUT
+3V3VDD
VDD
R19 0R20 0
C9100nF
C8100nF
C4100nF
C1100nF
162738495
CN5DB9-male USART3
USART2_RTSUSART2_TXDUSART3_TXD
USART2_RXDUSART2_CTSUSART3_RXD
USART2_TXD
USART2_RXD
USART2_CTS
USART2_RTSUSART2_TXD
USART2/IrDA_RX
USART2/IrDA_RTS
USART3_TX
USART3_RX
RXDRTSTXDCTS
RXD
TXD
R46[N/A]
VCCA1
A12
A23
GND4 DIR 5B2 6B1 7VCCB 8U5
SN74LVC2T45DCUT
+3V3VDD
VCCA1
A12
A23
GND4 DIR 5B2 6B1 7VCCB 8U3
SN74LVC2T45DCUT
+3V3VDD
VDD
R11 0
C12100nF
C10100nF
C2100nF
C3100nF
USART3_RXD
USART3_TXD
12
3
JP5
IrDA_RXD
IrDA_RXD
PD5
PD3
PD6
PD4
PC10
PC11
R21100K
R12100K
R44100K
VDD
VDD
DSR
C44100nF
C484.7uF
Sch
ematics
UM
01018
36/42D
oc ID 18141 R
ev 2
Figure 22. IDD_Measurement
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(SCH.PCB) Date: 9/7/2011
IDD_Measurement
IDD_CNT_EN
IDD_WAKEUP
2
3
4
5
U9SN74LVC1G04DCKT
I/O1 O/I 2
GND3 C4
VCC 5
U12
SN74LVC1G66DCKT
VDDR361[1%]
R35 1K[1%]
3
4 5
G
S D
1 2 6
T4FDC606P
3
4
5G
SD 1
26
T3
FDC606P
4
5
2
3
1 U10MAX9938FEUK+
VDD
Q111
Q122
Q133
Q54
Q45
Q66
Q37
GND8 Ctc 9Rtc 10RS 11MR 12Q8 13Q7 14Q9 15VCC 16U6
74LV4060PW
VDDVDD
R2610K
R3310K C25
1uF VDD
VDD_MCU
C61nF
R1815K
R1730K
Oscillator frequency 30KHz
VDDC7100nF
PA0
PC13
PA5
MB819 10 14
STM32L152-EVAL IDD_Measurement
12
3 JP4
UM
01018S
chem
atics
Doc ID
18141 Rev 2
37/42
Figure 23. Temperature sensor
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011
I2C_SLKI2C_SDA R69 0
R62 0 SDA1
SCL2
OS/INT3
GND4 A2 5A1 6A0 7VDD 8U18
STLM75M2E
+3V3VDD
R634K7
R664K7
C41100nF
2
1 3
G
S D
TR1FDN327N
2
1 3
G
S DTR2FDN327N
R684K7
R734K7
R674K7
R61 0
Temperature sensor
I2C_SMB
MB819 11 14
STM32L152-EVAL TemperatureSensor
PB7PB6PB5
Sch
ematics
UM
01018
38/42D
oc ID 18141 R
ev 2
Figure 24. ST-LINK
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011MB819 12 14
STM32L152-EVAL ST_LINK (JTAG only)
VBAT1
PC132
PC143
PC154
OSC_IN5
OSC_OUT6
/RST7
VSSA8
VDDA9
PA010
PA111
U2_TX12U2_
RX13
U2_
CK14
S1_C
K15
S1_M
ISO
16
S1_M
OSI
17
PB0
18
PB1
19
PB2/BO
OT1
20
PB10
21
VSS
_123
VDD_1
24
PB12 25
PB11
22
S2_CK 26S2_MISO 27S2_MOSI 28PA8 29PA9 30PA10 31PA11 32PA12 33JTMS 34VSS_2 35VDD_2 36
JTCK
37JT
DI
38JT
DO
39JN
RST
40PB
541
PB6
42PB
743
BOOT0
44PB
845
PB9
46VSS
_347
VDD_3
48
U23STM32F103C8T6
20pFC54
20pFC53
1 2X3
8MHz+3V3
USB_DMUSB_DP
STM_RST
T_JT
CK
T_JTCK
T_JT
DO
T_JT
DI
T_JTMS
STM_JTMS_SWDIO
STM
_JTC
K_SW
CLK
LED_STLINK
OSC_INOSC_OUT
T_N
RST
T_JR
ST
LED_STLINK
T_JTCKT_JTDI
T_JTDO
T_NRSTT_JTMS
T_JRST
R90
4K7
R85
4K7
AIN_1C56100nF
R87
100K
R105100
+3V3
+3V3
VDD+3V3
+3V3
+3V3
AIN_1
VCC 1
D- 2
D+ 3
GND 4
SHELL 0
SHELL 0
CN11
USB-typeB connector
USB_DMUSB_DP
+3V3
C64100nF
C57100nF
C62100nF
C59100nF
R104 22R97 22
MCU
USB
JTAG
STM_JTMS_SWDIOSTM_JTCK_SWCLK
+3V3
U5V_ST_LINK
C50
100nF
C49
100nF
TDITRST
TMS/SWDIO
TCK/SWCLK
TDO/SWO
RESET#
SWIM_PU_CTRL
R93
100K
VccA1
A12
A23
GND4 DIR 5B2 6B1 7VccB 8U19
SN74LVC2T45DCUT
+3V3 VDD
T_SWO
T_SWDIO_IN
T_SWDIO_IN
T_SWO
1 23 45
CN10
JTAG
R7
1.5K
R1010K
R836K
2
31
T19013
+3V3U5V_ST_LINK
R79[N/A]
R8010K
R15
100K
MCO
21 4
3
Red Yellow
LD5HSMF-A201-A00J1
R92100
R1020
+3V3
UM
01018S
chem
atics
Doc ID
18141 Rev 2
39/42
Figure 25. JTAG and Trace
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011MB819 13 14
STM32L152-EVAL JTAG&Trace
1234567891011121314151617181920
CN8FTSH-110-01-L-DV
VDD
R50[N/A]
R54[N/A]
R51[N/A]
R52[N/A]
R82[N/A]
VDD
1234567891011121314151617181920
CN9JTAG VDD
VDD
R84 10K
R89 10K
R8310K
R70 0R65 [N/A]R71 0R74 [N/A]
TDI
RESET#
TRACE_D3TRACE_D2TRACE_D1TRACE_D0TRACE_CK
TRST
TMS/SWDIOTCK/SWCLKTDO/SWO
Trace connector
JTAG connector
KEY
PA13PA14PB3PA15PB4
PE6PE5PE4PE3PE2
D5
Z5V1
D6
Z5V1
D3
Z5V1
D8
Z5V1
D7
[N/A
]
D4
Z5V1
RS1
22
R76[N/A]
Sch
ematics
UM
01018
40/42D
oc ID 18141 R
ev 2
Figure 26. Touch sensing
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.4(PCB.SCH) Date: 9/7/2011MB819 14 14
STM32L152-EVAL Touch Sensing
C11GRM3195C1H333JA01D
C18
[N/A]
R1310K
R1410K
R23 [N/A]
R22 [N/A]R24 [N/A]TS_LOAD
TS1
TS2
TS_SHIELDTS_CT
TS1TS_PAD
TS2TS_PAD
R290
PB2
PC6
PC7
PC8PC9
<----ESD resistor close to MCU pad
<----Touch Sensing diameter 10mm min on active shield diameter 12mm min
<----Active shield
Mount for RC mode by default
Mount only for Charge transfer mode--->
UM01018 Revision history
Doc ID 18141 Rev 2 41/42
5 Revision history
Table 23. Document revision history
Date Revision Changes
13-Dec-2010 1 Initial release.
14-Nov-2011 2 Modified LED in Figure 17: Peripherals and updated schematics.
UM01018
42/42 Doc ID 18141 Rev 2
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve theright to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at anytime, 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 noliability 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 thisdocument 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 productsor services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of suchthird 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 IMPLIEDWARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIEDWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWSOF 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 NOTRECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAININGAPPLICATIONS, 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 "AUTOMOTIVEGRADE" 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 voidany warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, anyliability 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.
© 2011 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