ST STM320518-EVAL User Manual

Page 1
UM1537
User manual
STM320518-EVAL evaluation board
Introduction
The STM320518-EVAL evaluation board is designed as a complete demonstration and development platform for STMicroelectronic's ARM cortex-M0 core-based STM32F051R8T6 microcontroller. It features two I2Cs, two SPIs, two USARTs, a 12-bit ADC, a 12-bit DAC, two GP comparators, internal 8 KB SRAM and 64 KB Flash, touch sensing, CEC and SWD debugging support.
The full range of hardware features on the board is able to help you evaluate all peripherals (motor control connector, RS-232, RS-485, audio DAC, linear sensor, microphone ADC, TFT LCD, IrDA, IR LED, IR receiver, LDR, MicroSD card, CEC on two HDMI connectors, RF E2PROM, 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 an embedded in-circuit debugger and programmer for the STM32 MCU.

Figure 1. STM320518-EVAL evaluation board

Table 1. Applicable tools

Typ e Part nu mber
Evaluation tools STM320518-EVAL
May 2012 Doc ID 023059 Rev 1 1/52
www.st.com
Page 2
Contents UM1537
Contents
1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4 Delivery recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2 Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1 Development and debug support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3 Clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.4 Reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.5 Boot option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.6 Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.7 RS-232, RS-485 and IrDA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.8 Linear sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.9 MicroSD card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.10 Analog input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.11 LDR (light dependent resistor) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.12 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.13 Display and input devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.14 RF E2PROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.15 HDMI CEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.16 IR LED and IR receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.17 Motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3 Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.1 Motor control connector CN1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.2 RF E2PROM connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.3 HDMI sink connector CN3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.4 HDMI source connector CN4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.5 Daughterboard extension connector CN5 and CN6 . . . . . . . . . . . . . . . . . 24
2/52 Doc ID 023059 Rev 1
Page 3
UM1537 Contents
3.6 RS-232 and RS-485 connector CN7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.7 Analog input connector CN8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.8 High density SWD connector CN9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.9 Standard SWD connector CN10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.10 Audio jack CN11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.11 ST-LINK/V2 programming connector CN12 . . . . . . . . . . . . . . . . . . . . . . . 29
3.12 ST-LINK/V2 USB type B connector CN13 . . . . . . . . . . . . . . . . . . . . . . . . 29
3.13 MicroSD connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3.14 Power connector CN15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4 Board schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Appendix A STM320518-EVAL I/O assignments . . . . . . . . . . . . . . . . . . . . . . . . . 47
Appendix B Mechanical dimensions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Doc ID 023059 Rev 1 3/52
Page 4
List of tables UM1537
List of tables
Table 1. Applicable tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Table 2. Third-party toolchain support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 3. Power source related jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 4. Power mode related jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 5. 8 MHz crystal X1 related solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 6. 32 kHz crystal X2 related solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 7. Boot related switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 8. Boot0 related jumpers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 9. Audio related jumpers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 10. RS-232 and IrDA related jumpers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 11. RS-485 related solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 12. LCD modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 13. Motor control related jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 14. Motor control connector CN1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 15. RF E2PROM connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 16. HDMI sink connector CN3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 17. HDMI source connector CN4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 18. Daughterboard extension connector CN5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Table 19. Daughterboard extension connector CN6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Table 20. RS-232 and RS-485 connector CN7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Table 21. Analog input-output connector CN8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Table 22. High density SWD debugging connector CN9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Table 23. Standard SWD debugging connector CN10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Table 24. USB type B connector CN13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Table 25. MicroSD connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Table 26. STM32F051R8T6 MCU pin assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Table 27. Mechanical dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Table 28. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
4/52 Doc ID 023059 Rev 1
Page 5
UM1537 List of figures
List of figures
Figure 1. STM320518-EVAL evaluation board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 2. Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 3. STM320518-EVAL evaluation board layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 4. STM320518-EVAL evaluation board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 5. STM320518-EVAL evaluation board motor control PCB reworks . . . . . . . . . . . . . . . . . . . 20
Figure 6. Motor control connector CN1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 7. RF EEPROM daughterboard connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 8. HDMI sink connector CN3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 9. HDMI source connector CN4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 10. RS-232 and RS-485 connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 11. Analog input-output connector CN8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 12. High density SWD debugging connector CN9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 13. Standard SWD debugging connector CN10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 14. USB type B connector CN13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 15. MicroSD connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 16. Power supply connector CN15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 17. STM320518-EVAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 18. MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 19. Audio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 20. HDMI_CEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 21. LCD and micro SD card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 22. Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Figure 23. RS-232, RS-485 and IrDA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Figure 24. Temperature sensor and RF EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Figure 25. Linear sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Figure 26. ST-LINK/V2 (SWD only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Figure 27. SWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 28. Motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Figure 29. Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Figure 30. 2.4 inch LCD module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Figure 31. Mechanical dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Doc ID 023059 Rev 1 5/52
Page 6
Overview UM1537

1 Overview

1.1 Features

Three 5 V power supply options: power jack, ST-LINK/V2 USB connector or
daughterboard
Audio speaker and microphone connected to DAC and ADC of STM32F051R8T6
2 Gbyte or more SPI interface MicroSD card
I2C compatible serial interface temperature sensor
RF E2PROM
RS-232 and RS-485 communication
IrDA transceiver
IR LED and IR receiver
SWD debug support, ST-LINK/V2 embedded
240 x 320 TFT color LCD connected to SPI interface of STM32F051R8T6
Joystick with 4-direction control and selector
Reset, tamper and user buttons
4 color LEDs
Extension connector for daughterboard or wrapping board
MCU voltage choice fixed at 3.3 V or adjustable from 2 to 3.6 V
Linear sensor
Light dependent resistor (LDR)
Potentiometer
Two HDMI connectors with DDC and CEC
Motor control connector
Boards RoHS compliant (lead free)

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, refer to the STM320518-EVAL demonstration software available at www.st.com.

1.3 Order code

To order the STM32F051R8T6 evaluation board, use the order code STM320518-EVAL.
6/52 Doc ID 023059 Rev 1
Page 7
UM1537 Overview

1.4 Delivery recommendations

Some verifications are needed before using the board for the first time to make sure that nothing has been 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 from its socket by a shock.
2. The MicroSD card which may have been ejected from the connector CN14 (left side of the board).
3. The dual interface EEPROM board (ANT7-M24LR-A) which may have been unplugged from the connector CN2 (top right corner of the board).
Doc ID 023059 Rev 1 7/52
Page 8
Hardware layout and configuration UM1537
34-&24
23
TRANSCEIVER
)R$!
TRANSCEIVER
6REGULATOR
#OLOR,#$
-ICRO3$ CARD
3PEAKER !MPLIFIER
($-)SINK
,%$S
0OTENTIOMETER
2323
$"CONNECTOR
$!#
'0)/
)#
%XTENSION
CONNECTORFOR
'0)/S
53!24
4EMPERATURE
SENSOR
37$
*OYSTICK
6TO6
ADJUSTABLE
REGULATOR
!$#
%MBEDDED
34,).+6
53"4YPE"
CONNECTOR
-ICRO0HONE !MPLIFIER
4AMPER
BUTTON
)2/54
2&
%%02/-
6POWER
SWITCH
#%#
*4!'37$
CONNECTOR
23
TRANSCEIVER
30)
,INEAR
SENSOR
43#ONTROLLER
,$2 #-0?).P
6REGULATOR
($-)
SOURCE
)2,%$
)2RECEIVER4)-?#(
-OTORCONTROL CONNECTOR
)#
6OLTAGE
TRANSLATOR
6OLTAGE
TRANSLATOR
-36

2 Hardware layout and configuration

The STM320518-EVAL evaluation board is designed around the STM32F051R8T6 (64-pin LQFP package). The hardware block diagram shown in Figure 2 illustrates the connection between the STM32F051R8T6 and peripherals (motor control connector, RS-232, RS-485, audio DAC, linear sensor, microphone ADC, TFT LCD, IrDA, IR LED, IR receiver, LDR, MicroSD card, CEC and DDC on two HDMI connectors, RF E2PROM and temperature sensor and so on). Figure 3 shows where you can locate these features on the evaluation board.

Figure 2. Hardware block diagram

8/52 Doc ID 023059 Rev 1
Page 9
UM1537 Hardware layout and configuration
U22 microphone
CN4 HDMI_Source connector
CN1 motor control connector
RV3 potentiometer
B1 reset key
CN 2 RF E2PROM
connector
LD5
IR LED
CN7
RS-232/RS-485
connector
CN16
TFT LCD
U1 IrDA transceiver
4 colors LEDS
LD7 ST-LINK/V2 COM LED
CN3 HDMI_Sink connector
U2
IR receiver
CN15
power jack
B3
user button
S1
Linear sensor
U21 joystick
B2 tamper button
RV2 VDD_Adjustment
CN13 ST-LINK/V2 USB
connector
CN14
MicroSD Card
U4
STM32F051R8T6
CN11
audio jack
CN10 SWD connector
CN5, CN6 extension header
MS30809V1

Figure 3. STM320518-EVAL evaluation board layout

Doc ID 023059 Rev 1 9/52
Page 10
Hardware layout and configuration UM1537

2.1 Development and debug support

Version 2 of the ST-LINK (ST-LINK/V2) is embedded on the board. This tool allows onboard program loading and debugging of the STM32F051R8T6 using the SWD interface. The third-party debug tools are also supported by the SWD connector CN10.
A specific driver must be installed on your PC for communication with the embedded ST­LINK/V2. This driver, called ST-LINK_V2_USBdriver.exe is available on the web. To download and install this driver, refer to the software and development tools page for the STM32F0 family on www.st.com.
Third-party toolchains, such as Atollic TrueSTUDIO, Keil MDK-ARM, IAR EWARM and TASKING VX-toolset for ARM Cortex-M, support ST-LINK/V2 according to Ta bl e 2 .

Table 2. Third-party toolchain support

Manufacturer Toolchain From version...
Atollic TrueSTUDIO 2.1
IAR EWARM 6.20.4
Keil MDK-ARM 4.20
TASKING VX-toolset for ARM Cortex-M 4.0.1
The embedded ST-LINK/V2 is connected to the PC via a standard USB cable from connector CN13. The bicolor LED LD7 (COM) indicates the status of the communication as follows.
Slow blinking Red/Off: at power-on before USB initialization.
Fast blinking Red/Off: after the first correct communication between the PC and ST-
Link/V2 (enumeration).
Constant Red On: when initialization between the PC and ST-LINK/V2 is successfully
finished.
Constant Green On: after successful target communication initialization.
Blinking Red/Green: during communication with the target.
Red On: communication is finished and OK.
Orange On: communication failure.
Note: The board can be powered via CN13 (embedded ST/LINK/V2 USB connector) even if an
external tool is connected to CN9 (high density SWD connector) or CN10 (SWD connector).
10/52 Doc ID 023059 Rev 1
Page 11
UM1537 Hardware layout and configuration
STlk
D5V
PSU
STlk
D5V
PSU
STlk
D5V
PSU
STlk
D5V
PSU

2.2 Power supply

The STM320518-EVAL evaluation board is designed to be powered by a 5V DC power supply and to be protected by PolyZen from incorrect power plug-in events.
It is possible to configure the evaluation board to use any of the following three sources for the power supply.
5V DC power adapter connected to CN15, the power jack on the board (power supply
unit (PSU) on the silk screen). External power supply is not provided with the board.
5V DC power with 500 mA limitation from CN13, the USB type B connector of ST-
LINK/V2 (USB 5 V power source (STlk) on silkscreen).
5V DC power from CN6, the extension connector for daughterboard (daughterboard
power source (D5V) on silkscreen).
The power source is selected by setting the related jumpers JP8 as described in Ta bl e 3.

Table 3. Power source related jumpers

Jumper Description
JP8 selects one of the three possible power supply resources. For the power supply jack (CN15) to STM320518-EVAL only,
JP8 is set as shown:
JP8
For power supply from the daughterboard connectors (CN6) to STM320518-EVAL only, JP8 is set as shown:
For power supply from USB (CN13) of ST-LINK/V2 to STM320518­EVAL only, JP8 is set as shown (default setting):
For power supply from the power supply jack (CN15) to both STM320518-EVAL and daughterboard connected on CN5 and CN6, JP8 is set as shown (the daughterboard must not have its own power supply connected):
Doc ID 023059 Rev 1 11/52
Page 12
Hardware layout and configuration UM1537
321
321
321
321
321
321
321
321
321
321
Table 3. Power source related jumpers (continued)
Jumper Description
The Vbat pin of STM32F051R8T6 is connected to VDD when JP12 is set as shown (default setting):
JP12
The Vbat pin of STM32F051R8T6 is connected to a 3 V battery when JP12 is set as shown:
A total of three power modes are supported on the board and can be configured by setting the related jumpers JP7, JP9, JP10 and JP11 as described in Ta bl e 4 and its related notes.
Mode1: the VDD and VDDA are connected together and powered by a fixed 3.3 V.
Mode2: the VDD and VDDA are connected together and powered by an adjustable
voltage ranging from 2.0 V to 3.6 V.
Mode3: the VDD is powered by an adjustable voltage ranging from 2.0 V to 3.6 V while
VDDA is powered by a fixed 3.3 V.

Table 4. Power mode related jumpers

Power mode configuration MCU IDD measurement
Power mode
JP9 JP10
OK
Mode1
Not allowed
Mode2
Mode3
OK
Not allowed
Note: MCU IDD measurement can be done with a current meter mounted on JP7 when it is open.
Note: Jumper JP11 must be open (to disconnect VDDA from all analog power VDD_ANA which is
connected to the analog circuits on the board) for MCU Idd measurement.
The LED LD6 is lit when the STM320518-EVAL evaluation board is correctly powered by 5V.
12/52 Doc ID 023059 Rev 1
Page 13
UM1537 Hardware layout and configuration

2.3 Clock source

Two clock sources are available on the STM320518-EVAL evaluation board for STM32F051R8T6 and RTC embedded.
X1, 8 MHz crystal with a socket for the STM32F051R8T6 microcontroller. It can be
removed from the socket when the internal RC clock is used.
X2, 32 kHz crystal for embedded RTC.

Table 5. 8 MHz crystal X1 related solder bridges

Jumper Description
PF0 is connected to an 8 MHz crystal when SB13 is open (default setting).
SB13
SB14

Table 6. 32 kHz crystal X2 related solder bridges

PF0 is connected to an extension connector CN6 when SB13 is closed. In such a case, C34 and X1 must be removed.
PF1 is connected to an 8 MHz crystal when SB14 is open (default setting).
PF1 is connected to an extension connector CN6 when SB14 is closed. In such a case, R59 must be removed to avoid disturbance due to the 8 MHz quartz.
Jumper Description
PC14 is connected to a 32 kHz crystal when SB9 is open (default setting).
SB9
PC14 is connected to an extension connector CN5 when SB9 is closed. In such a case, R57 must be removed to avoid disturbance due to the 32 kHz quartz.
PC15 is connected to a 32 kHz crystal when SB10 is open (default setting).
SB10
PC15 is connected to an extension connector CN5 when SB10 is closed. In such a case, R58 must be removed to avoid disturbance due to the 32 kHz quartz.

2.4 Reset source

The reset signal of the STM320518-EVAL evaluation board is low active and the reset sources include the following.
Reset button B1
Debugging tools from SWD connector CN10 and CN9
Daughterboard from CN6
Embedded ST-LINK/V2
RS232 connector CN7 for ISP.
Note: The jumper JP6 is to be closed for RESET handled by pin8 of the RS-232 connector CN7
(CTS signal). Refer to Section 2.7 information.
Doc ID 023059 Rev 1 13/52
Page 14
Hardware layout and configuration UM1537

2.5 Boot option

The STM320518-EVAL evaluation board can 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 one Option bit in the Small Information block (SIF). The BOOT0 can also be configured via the RS-232 connector CN7.

Table 7. Boot related switch

Switch
configuration
0 <-> 1
0 <-> 1
0<-> 1

Table 8. Boot0 related jumpers

Jumper Description
JP5

2.6 Audio

Bit12 in USER
OPTION BYTES
Boot source
STM320518-EVAL boot from User Flash when SW1 and
X
Bit12 in User OPTION bytes set as shown to the left (default setting).
0
1
STM320518-EVAL boot from Embedded SRAM when SW1 and Bit12 in User OPTION bytes set as shown to the left.
STM320518-EVAL boot from System Memory when SW1 and Bit12 in User OPTION bytes set as shown to the left.
The Bootloader_BOOT0 is managed by pin 6 of connector CN7 (RS-232 DSR signal) when JP5 is closed. This configuration is used for the boot loader application only.
Default Setting: Not fitted
The STM320518-EVAL evaluation board supports a speaker that is connected to the DAC output of the STM32F051R8T6 through an audio amplifier and microphone, which is in turn connected to the ADC input of the STM32F051R8T6 through a microphone amplifier. The speaker can be enabled or disabled by setting JP13 (Ta b l e 9 ).

Table 9. Audio related jumpers

Jumper Description
JP13
14/52 Doc ID 023059 Rev 1
Speaker amplifier U17 is enabled when JP13 is open (default setting).
Speaker amplifier U17 is disabled when JP13 is closed.
Page 15
UM1537 Hardware layout and configuration
RS232_RX
RS485_RX
IrDA_RX
RS232_RX
RS485_RX
IrDA_RX
RS232_RX
RS485_RX
IrDA_RX
321
321

2.7 RS-232, RS-485 and IrDA

The RS-232 (with hardware flow control CTS and RTS), RS-485 and IrDA communication is supported by D-type 9-pin RS-232/RS-485 connectors CN7, and IrDA transceiver U1 which is connected to USART1 of the STM32F051R8T6 on the STM320518-EVAL evaluation board. The signal Bootloader_RESET (shared with the CTS signal) and Bootloader_BOOT0 (shared with the DSR signal) are added to the RS-232 connector CN7 for ISP support.

Table 10. RS-232 and IrDA related jumpers

Jumper Description
RS232_RX is connected to the RS-232 transceiver and RS-232 communication is enabled when JP3 is set as shown (default setting):
RS485_RX is connected to the RS-485 transceiver and RS-485 communication is enabled when JP3 is set as shown:
JP3
JP4
IrDA_RX is connected to the IrDA transceiver and IrDA communication is enabled when JP3 is set as shown:
PA11 is connected to the RS-232 transceiver as RS232_CTS when JP4 is set as shown (default setting):
PA11 is connected to the HDMI_Sink connector as HPD when JP4 is set as shown:
Doc ID 023059 Rev 1 15/52
Page 16
Hardware layout and configuration UM1537
The RS-485 communication is supported by the RS-485 transceiver ST485ABDR, which is connected to pin4 and pin9 of the D-type 9-pin connectors CN7 (that share the same connector as USART1).

Table 11. RS-485 related solder bridges

Jumper Description
The external failsafe biasing are enabled when solder bridges SB11 and SB12 are
SB11,SB12
closed. Default setting: not fitted
SB8
SB16
The bus termination is enabled when solder bridge SB8 is closed. Default setting: not fitted
The AC termination is disabled when solder bridge SB16 is closed for high baud rate communication.
Default setting: not fitted

2.8 Linear sensor

The linear sensor is supported on the STM320518-EVAL evaluation board and connected to four capacitive sensing channels (PB[11:14]) in group6 with an active shield connected to two capacitive sensing channels (PC5 and PB0) in group3.
Note: The linear sensor is only fully functional when the STM320518-EVAL is powered on power
mode 1 (both VDD and VDDA are connected to a fixed 3.3 V). It is potentially necessary to adjust the capacitor value of C14 and C15 and the firmware to adapt them to the voltage range from 2 V to 3.6 V of VDD on power modes 2 and 3.

2.9 MicroSD card

The 2 GB (or more) MicroSD card connected to the SPI1 port of the STM32F051R8T6 is available on the board. MicroSD card detection is managed by the standard IO port PB15.

2.10 Analog input

The two-pin header CN8 and 10 kohm potentiometer RV3 are connected to PC1 of the STM32F051R8T6 as an analog input. A low-pass filter can be implemented by replacing R60 and C36 with the correct resistor and capacitor values as required by the end-user application.

2.11 LDR (light dependent resistor)

The VDDA is divided by the resistor bridge of the LDR VT9ON1 and 8.2 K resistor. It is connected to PA1 (COM1_IN+/ADC IN1) as shown in Figure 4.
16/52 Doc ID 023059 Rev 1
Page 17
UM1537 Hardware layout and configuration
"ANDGAP6
'0#/-0?).
'0#/-0?).
'.$
.#
'0COMPARATOR
0! 
,$2
+
!$#).
"ANDGAP
"ANDGAP
¢"ANDGAP
$!#/54
6$$!
-36

Figure 4. STM320518-EVAL evaluation board

It is possible to compare the LDR output with 1/4 band gap, 1/2 band gap, 3/4 band gap, band gap and DAC1 OUT, and to connect the LDR output to ADC IN1 for AD conversion.

2.12 Temperature sensor

A temperature sensor STLM75M2E is connected to the I2C1 bus of the STM32F051R8T6. It shares the same I2C1 bus as the RF E2PROM and DDC on the HDMI_Source connector CN4.

2.13 Display and input devices

The 2.4 inch color TFT LCD connected to the SPI1 port of the STM32F051R8T6 and four general-purpose color LEDs (LD 1, 2, 3 and 4) are available as display devices. The 4-direction joystick (U21) with selection key connected to PA0 and support wakeup feature and tamper button (B2) are available as input devices.

Table 12. LCD modules

Pin Description Pin connection Pin Description Pin connection
1CS PF4 9VDD 3.3 V
2SCL PA5 10VCI 3.3 V
3 SDI PA7 11 GND GND
4RS - 12GND GND
5 WR - 13 BL_VDD 5 V
2.4-inch TFT LCD connector CN16
Doc ID 023059 Rev 1 17/52
Page 18
Hardware layout and configuration UM1537
Table 12. LCD modules (continued)
2.4-inch TFT LCD connector CN16
Pin Description Pin connection Pin Description Pin connection
6 RD - 14 BL_Control 5 V
7 SDO PB4 15 BL_GND GND
8 RESET RESET# 16 BL_GND GND
Note: The bi-directional voltage translator is implemented on the SPI MOSI signal between the
STM32F051R8T6 and the LCD to support the 3-wire serial interface of the AM240320LGTNQW-01H LCD panel. The direction of this voltage translator is controlled by IO PB2 (the IO PA7 acts as MOSI when PB2 is high or as MISO when PB2 is LOW).

2.14 RF E2PROM

An RF E2PROM module ANT7-M24LR-A is mounted on connector CN2 and is connected to the I2C1 bus of the STM32F051R8T6. It shares the same I2C1 bus as the temperature sensor U8 and DDC on the HDMI_Source connector CN4.

2.15 HDMI CEC

Two HDMI connectors CN3 and CN4 are available on the STM320518EVAL board.
Connector CN3 is an HDMI sink connector with:
DDC connected to I2C2 of the STM32F051R8T6
HPD controlled by I/O PA11 through transistor T3
CEC connected to PB10 through transistor T4
Connector CN4 is an HDMI source connector with:
DDC connected to I2C1 of the STM32F051R8T6 and shared with the temperature
sensor and RF E2PROM
HPD controlled by I/O PA8
CEC connected to PB10 through transistor T4
5V HDMI powered by power switch U5
Signals TDMS D+[0,1,2], TDMS_CLK+, TDMS D-[0,1,2] and TDMS_CLK are connected together on these two HDMI connectors.
CEC injector mode can be enabled by reworking the PCB (for debugging purposes only):
Remove resistors R63, R66, R23, R62, R68, R51 and R13.
Close solder bridges SB4, SB5, SB6 and SB7.
Note: The I/O PA11 must be set in open-drain output mode by firmware for HPD signal control on
the HDMI sink connector CN3.
18/52 Doc ID 023059 Rev 1
Page 19
UM1537 Hardware layout and configuration

2.16 IR LED and IR receiver

The IR receiver TSOP34836 is connected to PB3 of the STM32F051R8T6 and a current around 100 mA on the IR LED is driven by PB9 through transistors T1 and T2 on the board.
Note: The IR LED may be driven by PB9 directly with a 20 mA current when SB3 is closed and
R11 is removed.

2.17 Motor control

The STM320518-EVAL evaluation board supports both asynchronous and synchronous three-phase brushless motor control via a 34-pin connector CN1. This connector provides all required control and feedback signals to and from the motor power-driving board. Available signals on this connector include emergency stop, motor speed, 3-phase motor current, bus voltage, heatsink temperature coming from the motor driving board and six channels of the PWM control signal going to the motor driving circuit.
Some PCB reworks are required for the motor control application to disconnect peripherals that share IOs with the motor control connector. These IOs need to be connected to the motor control connector.
Remove resistors R89, R52, R19, R55, R32, R38, R42, R88, R83, R20, R36, R18 and
R50.
Mount R25, R29, R30, R39, R4, R35, R37, R44, R22 and R41 with a 0 ohm resistor.
All resistors to be removed are marked in red while resistors to be soldered are marked in green in Figure 5.
Doc ID 023059 Rev 1 19/52
Page 20
Hardware layout and configuration UM1537

Figure 5. STM320518-EVAL evaluation board motor control PCB reworks

The RS-232 connector CN7 is re-connected to USART1 on the IOs PB6 and PB7 instead of PA9 and PA10 for the motor control application.
20/52 Doc ID 023059 Rev 1
Page 21
UM1537 Hardware layout and configuration

Table 13. Motor control related jumpers

Jumper Description
The special motor current sampling operation is enabled when JP2 is fitted (PB0 connected to PA12). The IO pins PB0 and PA12 are disconnected and can be used
JP2
JP1
SB1
SB2
by the daughterboard when JP2 is not fitted.
Default setting: not fitted
JP1 should be kept open when the encoder signal is from pin31 of the motor control connector CN1, while it should be kept closed when the analog signal is from pin31 of CN1 for special motors.
Default setting: not fitted
Pin17 of the motor connector CN1 is connected to PA3 as MC_currentB2 when SB1 is closed.
Default setting: open
Pin1 of the motor connector CN1 is connected to PA3 as MC_EmergencySTOP2 when SB2 is closed.
Default setting: open
Note: The solder bridges SB1 and SB2 cannot be closed at the same time.
Doc ID 023059 Rev 1 21/52
Page 22
Connector UM1537
6IEWEDFROMABOVE0#"
           
        
-36

3 Connector

3.1 Motor control connector CN1

Figure 6. Motor control connector CN1

Table 14. Motor control connector CN1

Emergency STOP PB12
Emergency STOP2 PA3
PHASE A CURRENT PA2 15 16 GND
PHASE B CURRENT PC5
PHASE B CURRENT2 PA3
PHASE C CURRENT PC4 19 20 GND
NTC BYPASS RELAY PA6 21 22 GND
DISSIPATIVE BRAKE PWM PB11 23 24 GND
Description
PWM-UH PA8 3 4 GND
PWM-UL PB13 5 6 GND
PWM-VH PA9 7 8 GND
PWM-VL PB14 9 10 GND
PWM-WH PA10 11 12 GND
PWM-WL PB15 13 14 PA1 Bus voltage
Pin of
STM32F051R8T6
Pin no. of
CN1
12 GND
17 18 GND
Pin no. of
CN1
Pin of
STM32F051R8T6
Description
+5 V power 25 26 PC2
PFC SYNC PB0/PA12 27 28
PFC PWM PB1 29 30 GND
Encoder A PA15
31 32 GND
MC_BEMF_A PC0
22/52 Doc ID 023059 Rev 1
Heatsink
temperature
3.3 V power (VDD MCU)
Page 23
UM1537 Connector
6IEWEDFROMFRONT
-36
6IEWEDFROMFRONT
-36
Table 14. Motor control connector CN1
Description
Pin of
STM32F051R8T6
Pin no. of
CN1
Encoder B PB3
33 34
MC_BEMF_B PC1 PC3 MC_BEMF_C

3.2 RF E2PROM connector CN2

Figure 7. RF EEPROM daughterboard connector CN2

Table 15. RF E2PROM connector CN2

Pin number Description Pin number Description
1 SDA (PB7) 3 +5 V
2 SCL (PB6) 4 GND
Pin no. of
CN1
Pin of
STM32F051R8T6
PB10 Encoder index
Description

3.3 HDMI sink connector CN3

Figure 8. HDMI sink connector CN3

Doc ID 023059 Rev 1 23/52
Page 24
Connector UM1537
6IEWEDFROMFRONT
-36

Table 16. HDMI sink connector CN3

Pin number Description Pin number Description
1,3,4,6,7,9,10,12
13 CEC (PB10) 2,5,8,11,17 GND
14 NC 18 HDMI_5V_Sink
15 SCL (PF6) 19 HPD (PA11 through transistor)
TMDS differential signal pair
connected to CN4

3.4 HDMI source connector CN4

Figure 9. HDMI source connector CN4

Table 17. HDMI source connector CN4

Pin number Description Pin number Description
16 SDA (PF7)
1,3,4,6,7,9,10,12
13 CEC (PB10) 2,5,8,11,17 GND
14 NC 18
15 SCL (PB6) 19 HPD (PA8)
TMDS differential signal pair
connected to CN3
16 SDA (PB7)
HDMI_5V_Source from power
switch U5

3.5 Daughterboard extension connector CN5 and CN6

Two 34-pin male headers CN5 and CN6 can be used to connect with the daughterboard or standard wrapping board to the STM320518-EVAL evaluation board. All GPIOs are available on it. The space between these two connectors and the position of the power, GND and RESET pins is defined as a standard that allows to develop common daughterboards for several evaluation boards.
The standard width between CN5 pin1 and CN6 pin1 is 2700 mils (68.58 mm). This standard has been implemented on the majority of evaluation boards.
Each pin on CN5 and CN6 can be used by a daughterboard after disconnecting it from the corresponding function block on the STM320518-EVAL evaluation board. Details are provided in Ta b l e 1 8 and Ta bl e 1 9.
24/52 Doc ID 023059 Rev 1
Page 25
UM1537 Connector

Table 18. Daughterboard extension connector CN5

Pin Description Alternative function
How to disconnect from the function
block on STM320518-EVAL board
1GND- -
3 PC6 JOY_Up Remove R87
5 PC8 JOY_Right Remove R98
7PA8
HDMI_HPD_Source / MC_TIM1_CH1 (UH)
9 PA10 USART_RX/ MC_TIM1_CH3 (WH)
Remove R55 Disconnect MC power board from CN1
Keep JP3 open Disconnect MC power board from CN1
11 PA11 USART_CTS/HDMI_HPD_Sink Keep JP4 open
13 PA13 SWDAT -
15 PF7 I2C2_SDA_HDMI_Sink -
17 PA15 MC_TIM2_CH1 (Encoder A) Disconnect MC power board from CN1
19 GND - -
21 PC12 LED3 Remove R92
23 PB3 IR_IN/ MC_TIM2_CH2 (encoder B)
Remove R19 Disconnect MC power board from CN1
25 PB5 TempSensor_INT Remove R61
27 PB7
TempSensor/HDMI/RF_SDA / MC_USART1_RX
Remove R50
29 PB8 User_KEY Remove R99
31 PB9 IR_OUT Remove R17
33 PC15 OSC32_OUT
Close SB10 Remove R58
2 PB15 SD_Detection Remove R83
4 PC7 JOY_DOWN Remove R86
6 PC9 JOY_LEFT Remove R85
8PA9
RS232/RS485 / irDA_TX/MC TIM1_CH2 (VH)
Disconnect MC power board from CN1
10 GND - -
12 PA12
RS485_DIR / RS232_RTS/ MC_IO (PFC_sync1)
-
14 PF6 I2C2_SCL_HDMI_Sink -
16 PA14 SWCLK -
18 PC10 LED1 Remove R93
20 PC11 LED2 Remove R105
22 PD2 LED4 Remove R104
24 PB4 LCD/SD_MISO Remove R174
Doc ID 023059 Rev 1 25/52
Page 26
Connector UM1537
Table 18. Daughterboard extension connector CN5 (continued)
Pin Description Alternative function
26 PB6
TempSensor / HDMI/RF_SCL / MC_USART1_TX
How to disconnect from the function
block on STM320518-EVAL board
Remove R18
28 BOOT0 BOOT0 Keep JP5 open
30 GND - -
32 PC14 OSC32_IN
Remove R57 Close SB9
34 +3V3 +3V3 Close SB15

Table 19. Daughterboard extension connector CN6

Pin Description Alternative function
How to disconnect from the function
block on STM320518-EVAL board
1GND- -
3 PB13 TS_CH2/ MC_TIM1_CH1N(UL) -
5 PB11 TS_CAP/ MC_IO (dissipative brake) Remove R31
7 PB2 1.8 V POR -
9 PC13 TAMPER_KEY Remove R96
11 RESET# - -
13 PC5 TS_Shield / MC_AIN15(Current B) Mount a 0 ohm resistor on R33
15 PA7 LCD/SD_MOSI -
17 PA5 LCD/SD_SCK -
19 D5V - -
21 PF5 SD_CS Remove R75
23 PA3
25 PA1
MC_AIN3_COMP2_IN+ (Current B2) / (EmergencySTOP2)
LDR_IN+ / MC_AIN1_COMP1_INI+ (bus voltage)
Disconnect MC power board from CN1
Remove R89 Disconnect MC power board from CN1
27 PC3 MC_Ain13 (BEMF_C) -
29 PC1 Potentiometer / MC_AIN11 (BEMF_B) Remove R52
31 PC0 Audio_IN / MC_AIN10 (BEMF_A) Remove R88
33 PF0 OSC_IN
Close SB13 Remove C34 and X1
2 PB14 TS_CH3/ MC_TIM1_CH2N (VL) Disconnect MC power board from CN1
4 PB12
6 PB10
TS_CH1/ MC_TIM1_BKIN (emergency STOP)
HDMI_CEC/ MC_TIM2_CH3 (encoder index)
Remove R9
Remove R32 Disconnect MC power board from CN1
26/52 Doc ID 023059 Rev 1
Page 27
UM1537 Connector
6IEWEDFROMFRONT
-36
Table 19. Daughterboard extension connector CN6 (continued)
Pin Description Alternative function
How to disconnect from the function
block on STM320518-EVAL board
8 PB1 MC_TIM3_CH4 (PFC PWM) Disconnect MC power board from CN1
10 GND - -
12 PB0
TS_Shield_CAP/ MC_ TIM3_CH3 (PFC_sync2)
Mount a 0 ohm resistor on R49
14 PC4 MC_AIN14 (current C) Disconnect MC power board from CN1
16 PA6 MC_IO (NTC_bypass) Disconnect MC power board from CN1
18 PA4 Audio_OUT Remove R103
20 VDD - -
22 PF4 LCD_CS Remove R94
24 PA2 MC_ADC_IN2 (Current A) Disconnect MC power board from CN1
26 PA0 JOY_SEL Remove R97
28 PC2 MC_ADC_IN12 (heatsink temperature) Disconnect MC power board from CN1
30 GND - -
32 VDDA - -
34 PF1 OSC_OUT
Remove R59 Close SB14

3.6 RS-232 and RS-485 connector CN7

Figure 10. RS-232 and RS-485 connector

Table 20. RS-232 and RS-485 connector CN7

Pin number Description Pin number Description
1 6 Bootloader_BOOT0
2 RS232_RX (PA10) 7 RS232_RTS(PA12)
3 RS232_TX (PA9) 8
4 RS485_A 9 RS485_B
5GND
RS232_CTS(PA11) /
Bootloader_RESET
Doc ID 023059 Rev 1 27/52
Page 28
Connector UM1537
6IEWEDFROMTOP
-36
6IEWEDFROMABOVE0#"
-36
         
        

3.7 Analog input connector CN8

Figure 11. Analog input-output connector CN8

 

Table 21. Analog input-output connector CN8

Pin number Description Pin number Description
1
Analog input-output
PC1

3.8 High density SWD connector CN9

Figure 12. High density SWD debugging connector CN9

Table 22. High density SWD debugging connector CN9

Pin number Description Pin number Description
1VDD2SWDAT
3GND4SWCLK
5GND6 -
2GND
7 KEY 8 -
9 GND 10 RESET#
28/52 Doc ID 023059 Rev 1
Page 29
UM1537 Connector
6IEWEDFROMABOVE0#"
-36
          
                     

3.9 Standard SWD connector CN10

Figure 13. Standard SWD debugging connector CN10

Table 23. Standard SWD debugging connector CN10

Pin number Description Pin number Description
1 VDD 2 VDD
3-4GND
5-6GND
7SWDAT8 GND
9SWCLK10 GND
11 10 K pull-down 12 GND
13 - 14 GND
15 RESET# 16 GND
17 10 K pull-down 18 GND
19 10 K pull-down 20 GND

3.10 Audio jack CN11

A 3.5 mm stereo audio jack CN11 connected to the audio DAC is available on the STM320518-EVAL board.

3.11 ST-LINK/V2 programming connector CN12

The connector CN12 is used only for embedded ST-LINK/V2 programming during board manufacture. It is not populated by default and is not intended for the end user.

3.12 ST-LINK/V2 USB type B connector CN13

The USB connector CN13 is used to connect the embedded ST-LINK/V2 to a PC for debugging purposes.
Doc ID 023059 Rev 1 29/52
Page 30
Connector UM1537
6IEWEDFROMFRONT
-36
6IEWEDFROMFRONT
-36

Figure 14. USB type B connector CN13

Table 24. USB type B connector CN13

Pin number Description Pin number Description
1 VBUS (power) 4 GND
2DM5,6Shield
3DP

3.13 MicroSD connector CN14

Figure 15. MicroSD connector CN14

Table 25. MicroSD connector CN14

Pin number Description Pin number Description
15
2 MicroSDcard_CS (PF5) 6 Vss/GND
3
MicroSDcard_DIN
(PA7)
7
MicroSDcard_CLK
MicroSDcard_DOUT
(PA5)
(PB4)
4+3.3 V8
30/52 Doc ID 023059 Rev 1
10
MicroSDcard_detect
(PB15)
Page 31
UM1537 Connector
6IEWEDFROMFRONT
-36

3.14 Power connector CN15

The STM320518-EVAL evaluation board can be powered from a 5 V DC power supply via the external power supply jack (CN15) shown in Figure 16. The central pin of CN15 must be positive.

Figure 16. Power supply connector CN15

$#6
'.$
Doc ID 023059 Rev 1 31/52
Page 32
Board schematics UM1537

4 Board schematics

The following schematic diagrams are listed.
Figure 17: STM320518-EVAL on page 33
Figure 18: MCU on page 34
Figure 19: Audio on page 35
Figure 20: HDMI_CEC on page 36
Figure 21: LCD and micro SD card on page 37
Figure 22: Peripherals on page 38
Figure 23: RS-232, RS-485 and IrDA on page 39
Figure 24: Temperature sensor and RF EEPROM on page 40
Figure 25: Linear sensor on page 41
Figure 26: ST-LINK/V2 (SWD only) on page 42
Figure 27: SWD on page 43
Figure 28: Motor control on page 44
Figure 29: Power on page 45
Figure 30: 2.4 inch LCD module on page 46
32/52 Doc ID 023059 Rev 1
Page 33
UM1537 Board schematics

Figure 17. STM320518-EVAL

8
U_SWD
SWD.SchDoc
+3V3
7
R168 100K
R173 100K
C38
5
DIR
SN74LVC2T45DCUT
4
R171
R170 100K
100nF
+3V3VDD
U9
C40
100nF
0
C94
100nF
+3V3VDD
8
7
B26B1
VCCB
6
5
4
VCCA1A12A23GND
U23
C93
100nF
R169 100K
R167 100K
VDD
24Mhz clock
8
7
VCCB
VCCA1A12A23GND
R72 100K
R73 100K
VDD
5
B26B1
DIR
SN74LVC2T45DCUT
4
VDD
C39
100nF
+3V3VDD
8
7
5
B26B1
VCCB
VCCA1A12A23GND
U7
4
C41
100nF
R69 100K
R70 100K
VDD
VDD
DIR
SN74LVC2T45DCUT
R22 [N/A]
R41 [N/A]
U_Linear Sensor
Linear Sensor.SchDoc
U_MCU
MCU.SchDoc
TS_G3_IO1
TS_G3_IO2
TS_G6_IO1
TS_G3_IO1
TS_G3_IO2
TS_G6_IO1
LED3
LED1
LED2
TS_G6_IO2
TS_G6_IO3
TS_G6_IO4
TS_G6_IO2
TS_G6_IO3
TS_G6_IO4
LED4
JOY_SEL
JOY_DOWN
U_Audio
JOY_LEFT
JOY_RIGHT
Audio_OUT
Audio.SchDoc
Audio_OUT
JOY_UP
User_Button
Anti_Tamper
Audio_IN
Audio_IN
Potentiometer
LDR_OUT
IR_OUT
MicroSD_CS_3V3
SPI1_SCK_3V3
LCD_CS_3V3
U_LCD_MicroSD
LCD_MicroSD.SchDoc
SPI1_SCK
LCD_CS_OD
SPI1_MOSI_DIR
MicroSD_CS_OD
IR_IN
SPI1_MOSI_3V3
SPI1_MISO_3V3
SDcard_detect
SPI1_MOSI
SPI1_MISO
SDcard_detect
HDMI_HPD_SINK
HDMI_HPD_Source_5V
RESET#
Bootloader_BOOT0_3V3
U_RS232_RS485_IrDA
RS232_RS485_IrDA.SchDoc
Bootloader_BOOT0
I2C2_SDA
I2C2_SCL
HDMI_CEC_OD
I2C1_SCL
I2C1_SDA
I2C_SMB
USART_TX_3V3
USART_RX_3V3
RS485_DIR_3V3
Bootloader_RESET_3V3
USART_RTS
USART_CTS
R20 0
R36 0
RS485_DIR
USART_TX
USART_RX
USART_CTS
Bootloader_RESET_3V3
MC_BEMF_C
RESET#
SWDAT
RESET#
SWDAT
1Mhz clock
SWCLK
SWCLK
U_ST_LINK_V2
ST_LINK_V2.SCHDOC
MC_NTC MC_CurrentC
MC_HeatsinkTemperature
MC_CurrentB2 MC_CurrentA MC_EnA MC_EmergencySTOP MC_DissipativeBrake MC_VL MC_UL MC_PFCpwm
TMS/SWDIO
RESET#
1V8_PG
TCK/SWCLK
U_Power
Power.SchDoc
1V8_PG
The signals which was marked in red should be routed firstly with shield during PCB
layout.
MC_VH
MC_WL
MC_NTC
MC_CurrentC
MC_CurrentB
MC_PFCsync1
MC_PFCsync2
MC_HeatsinkTemperature
MC_EmergencySTOP2
MC_CurrentB2
MC_CurrentA
MC_EnA
MC_EmergencySTOP
MC_DissipativeBrake MC_VL MC_UL
MC_PFCpwm
MC_UH
MC_EnIndex
MC_BEMF_B
MC_BEMF_C
8
5/8/2012
Date:
B.1[PCB.SCH]
7
STM320518-EVAL
MB965 1 13
STMicroelectronics
Title:
Number: Rev: Sheet of
6
5
MC_WH
MC_BEMF_A
4
MC_EnB
MC_BusVoltage
U_MotorCtrl
MotorCtrl.SchDoc
3
R18 0
R50 0
2
LED4
LED3
LED1
LED2
JOY_SEL
JOY_DOWN
U_Peripherals
Peripherals.SchDoc
1
A A
B B
JOY_LEFT
JOY_RIGHT
JOY_UP
LDR_OUT
User_Button
Anti_Tamper
IR_IN
IR_OUT
Potentiometer
HDMI_HPD_SINK
HDMI_HPD_Source_5V
U_HDMI_CEC
HDMI_CEC.SchDoc
I2C2_SCL_5V
I2C1_SCL_5V
I2C2_SDA_5V
I2C1_SDA_5V
HDMI_CEC_3V3
I2C_SCL_TempSensor_5V
U_TemSensor_RF_EEPROM
TemSensor_RF_EEPROM.SCHDOC
C C
I2C_SMB
I2C_SCL_RF_5V
I2C_SDA_RF_5V
I2C_SDA_TempSensor_5V
D D
3
2
1
Doc ID 023059 Rev 1 33/52
Page 34
Board schematics UM1537
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.1(PCB.SCH)
Date:
3/15/2012
VBAT
1
PC13 - TAMPER1 - WKUP2
2
PC14 - OSC32_IN
3
PC15 - OSC32_OUT
4
PF0 - OSC_IN
5
PF1 - OSC_OUT
6
NRST
7
PC0
8
PC1
9
PC2
10
PC3
11
VSSA / VREF-
12
VDDA / VREF+
13
PA0 - TAMPER2 - WKUP1
14
PA1
15
PA2
16
PA3
17
PF418PF5
19
PA420PA521PA622PA7
23
PC424PC525PB026PB1
27
PB2 or NPOR (1.8V mode)
28
PB1029PB11
30
VSS_2
31
VDD_2
32
PB12
33
PB13
34
PB14
35
PB15
36
PC6
37
PC7
38
PC8
39
PC9
40
PA8
41
PA9
42
PA10
43
PA11
44
PA12
45
PA13
46
PF6
47
PF7
48
PA1449PA1550PC1051PC1152PC1253PD254PB355PB456PB557PB658PB759BOOT060PB861PB962VSS_163VDD_1
64
U4
STM32F051R8T6
STM320518-EVAL MCU
MB965 2 13
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
17 18
19 20
21 22
23 24
25 26
27 28
29 30
31 32
33 34
CN5
Header 17X2
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
17 18
19 20
21 22
23 24
25 26
27 28
29 30
31 32
33 34
CN6
Header 17X2
C19
100nF
C25
100nF
VDD_MCU
C30
1uF
C28
100nF
VDD_MCU
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PA8 PA9 PA10 PA11 PA12 PA13
PA14
PA15
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PB10
PB11
PB12 PB13 PB14 PB15
PC0
PC1
PC2
PC3
PC4
PC5
PC6 PC7 PC8 PC9
PC10
PC11
PC12
PC13
PC14
PC15
PF0
PF1
PF4
PF5
PF6 PF7
PD2
TS_G3_IO1
TS_G3_IO2
TS_G6_IO2
TS_G6_IO1
TS_G6_IO3 TS_G6_IO4
Audio_OUT
Audio_IN
HDMI_HPD_SINK
I2C2_SDA
I2C2_SCL
HDMI_CEC_OD
HDMI_HPD_Source_5V
I2C1_SCL
I2C1_SDA
RESET#
SWDAT
SWCLK
MicroSD_CS_OD
SPI1_SCK
SPI1_MOSI
LCD_CS_OD
SPI1_MISO
Potentiometer
LED4
LED3
LED1
LED2
JOY_SEL
JOY_DOWN
JOY_LEFT
JOY_RIGHT
JOY_UP
LDR_OUT
IR_IN
IR_OUT
User_Button
Anti_Tamper
1V8_PG
USART_TX USART_RX
RS485_DIR
Bootloader_RESET_3V3
I2C_SMB
BT1
CR1220 holder
123
JP12
VDD
41
32
X2
Q13MC3061000300(EPSON 12.5pF)
C33
20pF
C32
20pF
R58
0
R57
0
C35
20pF
C34
20pF
X1
8MHz (with socket)
R59
390
1
4 3
2
B1
RESET
R155
[N/A]
VDD
C88
100nF
MC_HeatsinkTemperature
MC_BEMF_C
VDDA
MC_CurrentA
MC_CurrentB2
MC_CurrentC
MC_PFCpwm
VDD_MCU
SDcard_detect
MC_EnA
R71
10K
VDD
2
3
1
SW1
09.03290.01
Bootloader_BOOT0
D2
BAT60JFILM
JP5
D3
BAT60JFILM
JP6
VDDA
Left
Right
PC14
PC15
SB9
SB10
close to crystal connection
Open by default
+3V3
PC13
RESET#
D5V
RESET#
BOOT0
PF0
PF1
SB13
SB14
MC_EmergencySTOP
MC_UL
MC_VL
MC_DissipativeBrake
EXT_PB11
EXT_PB12
EXT_PB13
EXT_PB14
close to Touch slider connection
PA3
PA4PA5
PA6PA7
PB0
PB1PB2
PB10
PC4PC5
PF4PF5
PA0PA1
PA2
PC0
PC1
PC2PC3
PA14
PA15
PB3 PB4
PB5 PB6
PB7
PB8
PB9
PC10
PC11
PC12 PD2
BOOT0
PA8 PA9
PA10
PA11 PA12
PA13
PB15
PC6 PC7
PC8 PC9
PF6
PF7
EXT_PB11
EXT_PB12EXT_PB13
EXT_PB14
MCU
Extension connector
SB15
R29 [N/A]
R25 [N/A]
R30 [N/A]
R39 [N/A]
MC_NTC
123
JP4
USART_CTS
close to crystal connection
Open by default
R33 [N/A]
R49
[N/A]
close to Touch slider connection
VDD
VDDA
SPI1_MOSI_DIR

Figure 18. MCU

34/52 Doc ID 023059 Rev 1
Page 35
UM1537 Board schematics

Figure 19. Audio

STM320518-EVAL Audio
Title:
4
3/15/2012
Date:
B.1(PCB.SCH)
MB965 3 13
Number: Rev: Sheet of
3
2
4
Audio_IN
PC0
KDMG15008-03
R88
0
2
1 U16
C76
Speaker-
+3V3
1102
CN11
330pF
R149
22K
R166
JP13
ST-613
U17
10K
5
VOUT1
Standby1Bypass2VIN+3VIN-
Speaker+
8
6
VOUT2
4
22K
R154
C84
R103
0
PA4
+3V3
7
VCC
470nF
C75
GND
C89
1uF
TS4990IST
C87
1uF
[N/A]
VDD_ANA
R133
1K
C63
3
2
TP4
VDD_ANA
C91
TP7
R139
10uF
MIC_OUT
U18
100nF
C70
2.2K
R144
R100
500
R106 0
1
TS461CLT
4
3
MIC+
100nF
C69
100
C42
47pF
[N/A]
2 5
C77
RV1
[N/A]
13
VDD_ANA
2
R147
R145
R140
680
18K
100K
180pF
R135
R148 82K
C73
4.7uF
C74
2.2uF
15K
R134
100K
C64
4.7uF
STMicroelectronics
Audio_OUT
1
A A
B B
2
U22
KECG2740TBL
C C
1
1
D D
Doc ID 023059 Rev 1 35/52
Page 36
Board schematics UM1537

Figure 20. HDMI_CEC

STM320518-EVAL HDMI_CEC
Title:
4
4/3/2012
Date:
B.1(PCB.SCH)
MB965 4 13
Number: Rev: Sheet of
3
4
HDMI_HPD_Source_5V
PA8
HDMI_5V_Source
CN4
123456789
R66
0
C16
U5
3
FAULT
GND2IN5EN
1
OUT
STMPS2141STR@54
4
+5V
4.7uF
TMDS Data2+
TMDS Data2-
TMDS Data1+
3
TMDS Data1-
TMDS Data0+
TMDS Data0-
101112131415161718
SB4
TMDS Clock+
TMDS Clock-
47151-0051
19
SB5
SB6
SB7
R55 0
+5V
R63
1M
I2C1_SCL_5V
PB6
PB7
R13
1.8K
R51
1.8K
T4
2N7002
SD
1 3
G
2
I2C1_SDA_5V
+3V3
R34
27K
STMicroelectronics
2
HDMI_5V_Sink
12345678910111213141516171819
CN3
Sink Source
1
A A
B B
47151-0051
HDMI_5V_Sink
R95
36/52 Doc ID 023059 Rev 1
+5V
R62
47K
R68
47K
R23
T3
1
1K
1K
9012
3
2
R28
1K
PA11
HDMI_HPD_SINK
C C
R32 0
PF6
PF7
PB10
I2C2_SDA_5V
I2C2_SCL_5V
HDMI_CEC_3V3
D D
2
1
Page 37
UM1537 Board schematics

Figure 21. LCD and micro SD card

STM320518-EVAL LCD & Micro SD card
Title:
4
3/15/2012
Date:
B.1(PCB.SCH)
MB965 5 13
Number: Rev: Sheet of
3
4
SDcard_detect
PB15
R83 0
10
G1G2G3
G4
CN14
SW29SW1
CS1SCL2SDI3RS4WR5RD6RESET8VDD9VCI
CN16
2.4" LCD connector (MB895C)
RVS1CS2DI3Vdd4SCLK5Vss6DO7RVS
PJS008-2000 (SMS064FF or SMS128FF)
8
+3V3
MicroSD card
R172
270
SDO7GND11GND12BL_VDD13BL_Control14BL_GND15BL_GND
10
+3V3
R118 270
16
C78
100nF
C86
10uF
TFT LCD
3
STMicroelectronics
R116
2
R174 0
PB4
SPI1_MISO_3V3
1
A A
PA5
PA7
SPI1_SCK_3V3
SPI1_MOSI_3V3
R76
10K
R75 0
PF5
MicroSD_CS_3V3
+3V3
R77
10K
+3V3
B B
R110
10K
R94 0
PF4
LCD_CS_3V3
+3V3VDD
TR1
BSN20
G
2
4K7
SD
1 3
RESET#
C C
L1
BEAD
L2
BEAD
R126 0
R132 [N/A]
+5V
+3V3
D D
2
1
Doc ID 023059 Rev 1 37/52
Page 38
Board schematics UM1537

Figure 22. Peripherals

C85
100nF
R165
USER
VDD
100
4 3
1
C90
100nF
B2
2
R96
0
PC13
Anti_Tamper
Tamper
R152
4K7
680
4K7
R99
PB8
User_Button
LD4
Blue
PD2
R104 0
R150
1 2
B3
2
0
LEDs
LED4
680
R153
LED1
VDD
LED3
LED2
PC11
PC12
R105 0
R92 0
510
R151
680
R156
LD3
Red
LD2
Orange
1 2
1 2
4
3
PC10
R93 0
R157
LD1
Green
1 2
+3V3
User Button
Joystick
4
COMMON5Selection2DWON3LEFT1RIGHT4UP
U21
R164
100
10K R163 10K
VDD
R162 10K R159 10K R161 10K R160
Tamper Button
R97 0
PA0
R158
100
4 3
1
R85 0
R86 0
PC9
PC7
JOY_SEL
JOY_DOWN
JOY_LEFT
6
R87 0
R98 0
PC6
PC8
JOY_RIGHT
JOY_UP
MT008-A
C83 100nF
C82 100nF
C80 100nF
C81 100nF
C79 100nF
+3V3
R21
5/4/2012
Date:
B.1(PCB.SCH)
STM320518-EVAL Peripherals
MB965 6 13
STMicroelectronics
Title:
Number: Rev: Sheet of
3
IR_Receiver
100
C13
4.7uF
2
RV3
10K
1 3
2
R65 0
R53 47
C36
R60 0
CN8
two pin header for external analog input
R52
1
0
PC1
Potentiometer
A A
Potentiometer
C92
100nF
VDD_ANA
VDD_ANA
R101
8.2K
R107
VT9ON1
[N/A]
Close to MCU on PCB
R89
PA1
LDR_OUT
B B
0
Photo resistor
38/52 Doc ID 023059 Rev 1
+3V3
IR_LED
12
C C
LD5
SFH409-2
231
U2
TSOP34836
SB3
0
R11
R10
22
T1
9013
321
R14
10K
T2
9013
R16
R17
PB9
IR_OUT
321
10K
R15
1K
0
D D
VDD
R12
100
2
R19
0
PB3
IR_IN
1
Page 39
UM1537 Board schematics
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.1(PCB.SCH)
Date:
3/15/2012
SD5TxD
3
GND
8
Anode (VCC2)1Cathode
2
RxD4VCC16Vlogic
7
U1
TFDU6300
R2
5
R1
47
C1
0.1uF
C2
0.1uF
+3V3
C4
4.7uF
C3
4.7uF
IrDA
STM320518-EVAL RS232 RS485 & IrDA
MB965 7 13
162738495
CN7
DB9-male USART1
USART_TX_3V3
USART_RX_3V3
connector for USART1 & RS485
RO1RE2DE3DI
4
GND
5
A
6
B
7
Vcc
8
U6
ST485ABDR
+5V
RS485_DIR_3V3
R48
10K
R67
22K
R64
22K
SB12
SB11
R56
120
C31
100nF
SB8
Bootloader_BOOT0_3V3
Bootloader_RESET_3V3
C2+1C2-
2
V-
3
R1IN4R2IN5R3IN6R4IN7R5IN
8
T1OUT9T2OUT10T3OUT
11
T3IN12T2IN13T1IN
14
R5OUT15R4OUT16R3OUT
17
R2OUT18R1OUT
19
R2OUTB
20
R1OUTB
21
nSHDN
22
nEN
23
C1-
24
GND
25
VCC
26
V+
27
C1+
28
U3
ST3241EBPR
C22
100nF
C18
100nF
C21
100nF
C23
100nF
C20
100nF
+3V3
+3V3
PA12
RXD
RTS
TXD
CTS
DSR
6 5
4 3
2 1
JP3
Header 3X2
PA9
PA10
R3
0
USART_CTS
USART_RTS
PA12
PA11
SB16

Figure 23. RS-232, RS-485 and IrDA

Doc ID 023059 Rev 1 39/52
Page 40
Board schematics UM1537

Figure 24. Temperature sensor and RF EEPROM

STM320518-EVALTemSendor & RF EEPROM
Title:
4
3/15/2012
Date:
B.1(PCB.SCH)
MB965 8 13
Number: Rev: Sheet of
3
4
STMicroelectronics
3
CN2
SSM-104-L-SH
+5V
44
33
22
11
+5V
RF EEPROM connector
+5V
U8
8
VDD
1
C37
7
SCL2OS/INT3GND
100nF
A25A16A0
4
R54
STLM75M2E
10K
Temperature sensor
VDD
2
1
A A
R61 0
PB7
PB6
PB5
I2C_SMB
I2C_SCL_TempSensor_5V
I2C_SDA_TempSensor_5V SDA
B B
PB7
PB6
I2C_SCL_RF_5V
I2C_SDA_RF_5V
40/52 Doc ID 023059 Rev 1
2
1
C C
D D
Page 41
UM1537 Board schematics
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.1[PCB.SCH]
Date:
5/8/2012
TS_G3_IO1
TS_G3_IO2
R38
0
PB13
PB14
PC5
PB0
<----ESD resistor close to MCU pad
TS_G6_IO2
PB12
C14
47nF(COG)GRM31M5C1H473JA01L
R42
2.2k
PB11
SLD_1
SLD_2
SLD_3
C15
220nF
1
1
2
2
3
3
S1
Linear Sensor 3 pos
R27
10K
R26
10K
R24
10K
STM320518-EVAL Linear Sensor
MB965 9 13
R31
0
TS_G6_IO1
TS_G6_IO3
TS_G6_IO4
Active shiled

Figure 25. Linear sensor

Doc ID 023059 Rev 1 41/52
Page 42
Board schematics UM1537

Figure 26. ST-LINK/V2 (SWD only)

SWD
AIN_1
R141
4K7
STM320518-EVAL ST-LINK/V2 (SWD only)
Title:
4
5/4/2012
Date:
B.1(PCB.SCH)
MB965 10 13
Number: Rev: Sheet of
3
4
R143
4K7
TMS/SWDIO
TCK/SWCLK
VDD
C44
100nF
8
7
5
B26B1
DIR
+3V3 VDD
C59
100nF
VccB
VccA1A12A23GND
U10
T_SWDIO_IN
SN74LVC2T45DCUT
4
LD7
HSMF-A201-A00J1
R136
100
R137
100
3
21
Red Yellow
R129
0
4 3
+3V3
RESET#
T_NRST
T_JTMS
STMicroelectronics
T_JTCK
LED_STLINK
4
GND
D D
R124
0
SHELL0SHELL
USB
2
1.5K
1
USB-typeB connector
T5
+3V3
R117
9013
31
2
10K
R120
U5V_ST_LINK
C52
100nF
5
4
6
I/O2
I/O1
Vbus
I/O11GND2I/O2
U13
3
CN13
U5V_ST_LINK
36K
USBLC6-2P6
1
VCC
USB_DM
USB_DP
R128 22
R131 22
3
2
D-
D+
MCU
+3V3
USB_DM
USB_DP
STM_JTMS_SWDIO
35
36
33
2
R130
100K
C55
100nF
C71
+3V3
100nF
C62
100nF
C43
100nF
1
U14
STM32F103C8T6
STM_JTCK_SWCLK
37 38 39 40 41 42 43 44 45 46 47 48
+3V3
A A
34
JTMS
VSS_2
VDD_2
JTCK
JTDI
JTDO
JNRST PB5 PB6 PB7
BOOT0 PB8 PB9
VSS_3
VDD_3
VBAT1PC132PC143PC154OSC_IN5OSC_OUT6/RST7VSSA8VDDA9PA010PA111U2_TX
+3V3
R138
R146
C67
X3
C68
10K
[N/A]
20pF
1 2
20pF
OSC_IN
SWIM_PU_CTRL
8MHz
T_JTCK
T_JTMS
LED_STLINK
T_SWDIO_IN
T_SWO
MCO
28
26
25
30
PA829PA9
PA1031PA1132PA12
OSC_OUT
R142
PB12
S2_CK
VDD_1
S2_MISO27S2_MOSI
VSS_1 PB11 PB10 PB2/BOOT1 PB1 PB0 S1_MOSI S1_MISO S1_CK U2_CK U2_RX
12
AIN_1
STM_RST
+3V3
C72
100nF
100K
+3V3
B B
+3V3
24 23 22 21 20
T_JRST
19
T_NRST
18
T_JTDI
17 16 15 14 13
R127
100K
T_JTDO T_JTCK
+3V3
1 2
3 4
5
CN12
STM_JTMS_SWDIO
STM_JTCK_SWCLK
C C
U5V_ST_LINK
JTAG
42/52 Doc ID 023059 Rev 1
Page 43
UM1537 Board schematics
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.1(PCB.SCH)
Date:
5/4/2012
R74
[N/A]
R81
[N/A]
R82
[N/A]
VDD
12345678910111213141516171819
20
CN10
SWD
VDD
VDD
R102 10K
R108 10K
R90
10K
RESET#
SWDAT
SWCLK
High Density SWD connector
Standard SWD connector
KEY
PA13
PA14
D5
Z5V1
D6
[N/A]
D4
Z5V1
STM320518-EVAL SWD
MB965 11 13
R109 22
R115 22
R123 22
123456789
10
CN9
FTSH-105-01-L-DV
VDD

Figure 27. SWD

Doc ID 023059 Rev 1 43/52
Page 44
Board schematics UM1537
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.1(PCB.SCH)
Date:
3/15/2012
R6
3.3K
C8
1nF
+3V3
+3V3
+5V
R9
0
C26
100nF
C29
100nF
R46 0
C27
[N/A]
C7
[N/A]
C24
[N/A]
C12
[N/A]
C11
[N/A]
C5
10nF
C9
[N/A]
C10
[N/A]
R5 0
R40 0
R43
0
R7
0
JP2
C6
[N/A]
EMERGENCY STOP1MC-UH3MC_UL5MC_VH7MC_VL9MC_WH11MC_WL13CURRENT A15CURRENT C19CURRENT B17NTC BYPASS RELAY21DISSIPATIVE BRAKE23+5V POWER25PFC SYNC27PFC PWM29Encoder A31Encoder B
33
GND2GND4GND6GND8GND10GND
12
BUS VOLTAGE
14
GND16GND18GND20GND22GND
24
Heatsink Temperature
26
3.3V Power
28
GND30GND
32
Encoder Index
34
CN1
MC_connector
MC_EmergencySTOP
MC_CurrentA
MC_CurrentB
MC_CurrentC
MC_PFCsync1
MC_PFCsync2
MC_WL
MC_VH
MC_VL
MC_UH
MC_UL
MC_WH
MC_NTC
MC_DissipativeBrake
MC_PFCpwm
MC_EnA
MC_EnB
MC_HeatsinkTemperature
MC_BusVoltage
MC_EnIndex
R45
100K
JP1
C17
[N/A]
Motor control connector
Default setting: Open
Default setting: Open
PB12
PA8
PB13
PA9
PB14
PA10
PB15
PB11
PA15
PB3
PB10
PA1
PC4
PA12
PB1
PA6
PB0
PA2
PC5
PC2
STM320518-EVAL Motor control
MB965 12 13
MC_EmergencySTOP2
SB2
MC_CurrentB2
SB1
R8 0
MC_BEMF_A
MC_BEMF_B
MC_BEMF_C
PC0
PC1
PC3
PA3
PA3
R47
0
Open by default
Open by default
R37 [N/A]
R4 [N/A]
R35 [N/A]
R44 [N/A]

Figure 28. Motor control

44/52 Doc ID 023059 Rev 1
Page 45
UM1537 Board schematics
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.1[PCB.SCH]
Date:
3/15/2012
Vin
3
GND
1
Vout
2
U19
LD1086D2M33
SV1SG
2
CV
3
CG14CG25CG3
6
U15
BNX002-01
C58
220uF
E5V
TP5
5V
+5V
R112
1K
1 2
LD6
red
C60
47uF
C61
10uF
C45
10uF[ESR<0.2ohm]
C65
100nF
+5V +3V3
VDD_ADJ
+5V TP1
Ground
TP6
+3V3
TP2
VDD_ADJ
132
CN15
DC-10B
Z1
SMAJ5.0A-TR
C66
100nF
1
2
3
U20
ZEN056V130A24LS
13
2
RV2
3386P-503H[5%]
R125
31.6K[1%]
E5V
D5V
U5V_ST_LINK
C48
[N/A]
Power Supply VDD_ADJ [2.1V to 3.5V]
EN
1
GND
2
VO
4
ADJ
5
GND
EXP
VI
6
PG
3
U11
ST1L05BPUR
+3V3
R121 10K
C53
100nF
R113
59K[1%]
C56
4.7uF
STM320518-EVAL Power
MB965 13 13
6 5
4 3
2 1
JP8
Header 3X2
Vout=1.22*(1+R1/R2)
C47
10uF[ESR<0.2ohm]
+1V8
+5V TP3
1.8V
R122
31.6K[1%]
C51
[N/A]
Power Supply 1.8V
EN
1
GND
2
VO
4
ADJ
5
GND
EXP
VI
6
PG
3
U12
ST1L05BPUR
VDD_ADJ
R119 1K
C54
[N/A]
R114
15K[1%]
C57
4.7uF
Vout=1.22*(1+R1/R2)
123
JP9
VDD_ADJ
+1V8
+3V3
R78
0
R84
[N/A]
321
JP10
R79 [N/A]
R80 0
VDD
VDDA1V8_PG
R111
[N/A]
+1V8
C50
100nF
R91 [N/A]
D1
BAT60JFILM
JP7
VDD_MCU
considering potentiometer error tolerance
C46
100nF
C49
100nF
JP11
VDD_ANA

Figure 29. Power

Doc ID 023059 Rev 1 45/52
Page 46
Board schematics UM1537

Figure 30. 2.4 inch LCD module

46/52 Doc ID 023059 Rev 1
Page 47
UM1537 STM320518-EVAL I/O assignments

Appendix A STM320518-EVAL I/O assignments

Table 26. STM32F051R8T6 MCU pin assignments

Pin number
1 VBAT VBAT
2
3 PC14 - OSC32_IN OSC32_IN
4 PC15 - OSC32_OUT OSC32_OUT
5 PF0 - OSC_IN OSC_IN
6 PF1 - OSC_OUT OSC_OUT
7 NRST NRST
8 PC0 Audio_IN MC_AIN10 (BEMF_A)
9 PC1 Potentiometer MC_AIN11 (BEMF_B)
10 PC2
11 PC3 MC_Ain13 (BEMF_C)
12 VSSA / VREF- VSSA
Pin name STM320518-EVAL general I/O assignment
PC13 - TAMPER1 -
WKUP2
TAMPER_KEY
STM320518-EVAL motor
control I/O assignment
MC_ADC_IN12(headsink
temperature)
13 VDDA / VREF+ VDDA
14
15 PA1 LDR_IN+
16 PA2 MC_ADC_IN2 (current A)
17 PA3
18 PF4 LCD_CS
19 PF5 SD_CS
20 PA4 Audio_OUT
21 PA5 LCD/SD_SCK
22 PA6 MC_IO (NTC_bypass)
23 PA7 LCD/SD_MOSI
24 PC4 MC_AIN14 (current C)
25 PC5 TS_Shield MC_AIN15 (current B)
26 PB0 TS_Shield_CAP MC_ TIM3_CH3 (PFC_sync2)
PA0 - TAMPER2 -
WKUP1
JOY_SEL
MC_AIN1_COMP1_INI+
(bus voltage)
MC_AIN3_COMP2_IN+ (current
B2) / (emergencySTOP2)
Doc ID 023059 Rev 1 47/52
Page 48
STM320518-EVAL I/O assignments UM1537
Table 26. STM32F051R8T6 MCU pin assignments (continued)
Pin name STM320518-EVAL general I/O assignment
Pin number
27 PB1 MC_TIM3_CH4 (PFC PWM)
PB2 or NPOR (1.8V
28
29 PB10 HDMI_CEC MC_TIM2_CH3 (encoder index)
30 PB11 TS_CAP MC_IO (dissipative brake)
31 VSS_2 VSS
32 VDD_2 VDD
33 PB12 TS_CH1
34 PB13 TS_CH2 MC_TIM1_CH1N(UL)
35 PB14 TS_CH3 MC_TIM1_CH2N (VL)
36 PB15 SD_Detection MC_TIM1_CH3N (WL)
37 PC6 JOY_UP
38 PC7 JOY_DOWN
39 PC8 JOY_RIGHT
40 PC9 JOY_LEFT
41 PA8 HDMI_HPD_Source MC_TIM1_CH1 (UH)
mode)
1.8 V POR
STM320518-EVAL motor
control I/O assignment
MC_TIM1_BKIN
(emergency STOP)
42 PA9 RS232/RS485/irDA_TX MC TIM1_CH2 (VH)
43 PA10 RS232/RS485/irDA_RX MC_TIM1_CH3 (WH)
44 PA11 HDMI_HPD_Sink / RS232_CTS
45 PA12 RS485_DIR / RS232_RTS MC_IO (PFC_sync1)
46 PA13 SWDAT
47 PF6 I2C2_SCL_HDMI_Sink
48 PF7 I2C2_SDA_HDMI_Sink
49 PA14 SWCLK
50 PA15 MC_TIM2_CH1 (encoder A)
51 PC10 LED1
52 PC11 LED2
53 PC12 LED3
54 PD2 LED4
55 PB3 IR_IN MC_TIM2_CH2 (encoder B)
56 PB4 LCD/SD_MISO
57 PB5 TempSensor_INT
48/52 Doc ID 023059 Rev 1
Page 49
UM1537 STM320518-EVAL I/O assignments
Table 26. STM32F051R8T6 MCU pin assignments (continued)
Pin name STM320518-EVAL general I/O assignment
Pin number
58 PB6 TempSensor/HDMI/RF_SCL / MC_USART1_TX
59 PB7
60 BOOT0 BOOT0
61 PB8 User_KEY
62 PB9 IR_OUT
63 VSS_1 VSS
64 VDD_1 VDD
TempSensor/HDMI/RF_SDA /
MC_USART1_RX
STM320518-EVAL motor
control I/O assignment
Doc ID 023059 Rev 1 49/52
Page 50
Mechanical dimensions UM1537
(
#
9
8
0
A
1
0IN
0IN
1
-X
-Y
E
0IN
A
,X
-36

Appendix B Mechanical dimensions

Figure 31. Mechanical dimensions

$
0
!
D

Table 27. Mechanical dimensions

Symbol
Dimensions
(mm)
A 68.58 e 77.443 P1 40.64
a1 2.54 H 11 P3 115.247
a3 2.54 Lx 5.715 Q1 25.4
C 36 Ly 5.715 Q3 19.837
D 3.5 Mx 17.02 X 114.3
d 3.2 My 20.32 Y 172.72
,Y
Symbol
Dimensions
(mm)
Symbol
Dimensions
(mm)
50/52 Doc ID 023059 Rev 1
Page 51
UM1537 Revision history

Revision history

Table 28. Document revision history

Date Revision Changes
21-May-2012 1 Initial release.
Doc ID 023059 Rev 1 51/52
Page 52
UM1537
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
© 2012 STMicroelectronics - All rights reserved
STMicroelectronics group of companies
Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan -
Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com
52/52 Doc ID 023059 Rev 1
Loading...