UM1537 STMICROELECTRONICS | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 52

Technical content

Datasheet sections

  • 1 Overview
  • 1.1 Features
  • 1.2 Demonstration software
  • 1.3 Order code
  • 1.4 Delivery recommendations
  • 2 Hardware layout and configuration
  • 2.1 Development and debug support
  • 2.2 Power supply
  • 2.3 Clock source
  • 2.4 Reset source
  • 2.5 Boot option
  • 2.6 Audio
  • 2.7 RS-232, RS-485 and IrDA
  • 2.8 Linear sensor
  • 2.9 MicroSD card
  • 2.10 Analog input
  • 2.11 LDR (light dependent resistor)
  • 2.12 Temperature sensor
  • 2.13 Display and input devices
  • 2.14 RF E2PROM
  • 2.15 HDMI CEC
  • 2.16 IR LED and IR receiver
  • 2.17 Motor control
  • 3 Connector
  • 3.1 Motor control connector CN1
  • 3.2 RF E2PROM connector CN2
  • 3.3 HDMI sink connector CN3
  • 3.4 HDMI source connector CN4
  • 3.5 Daughterboard extension connector CN5 and CN6

sensing, CEC and SWD debugging support. programmer for the STM32 MCU. Figure 1. STM320518-EVAL evaluation board Table 1. Applicable tools

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.

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).

2 Hardware layout and configuration

Figure 2. Hardware block diagram

Figure 3. STM320518-EVAL evaluation board layout

2.1 Development and debug support

third-party debug tools are also supported by the SWD connector CN10. STM32F0 family on www.st.com. TASKING VX-toolset for ARM Cortex-M, support ST -LINK/V2 according to Table 2.

  • 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).

Table 2. Third-party toolchain support Manufacturer Toolchain From version...

2.2 Power supply

supply and to be protected by PolyZen from incorrect power plug-in events.

  • 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 Table 3.

Table 3. Power source related jumpers JP8 selects one of the three possible power supply resources.

the related jumpers JP7, JP9, JP10 and JP11 as described in Table 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. 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 . JP12 The Vbat pin of STM32F051R8T6 is connected to VDD when JP12 is set as shown (default setting): The Vbat pin of STM32F051R8T6 is connected to a 3 V battery when JP12 is set as shown:

Table 4. Power mode related jumpers Table 3. Power source related jumpers (continued)

2.3 Clock source

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.

2.4 Reset source

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.

Table 5. 8 MHz crystal X1 related solder bridges PF0 is connected to an 8 MHz crystal when SB13 is open (default setting). case, C34 and X1 must be removed. PF1 is connected to an 8 MHz crystal when SB14 is open (default setting). case, R59 must be removed to avoid disturbance due to the 8 MHz quartz. Table 6. 32 kHz crystal X2 related solder bridges PC14 is connected to a 32 kHz crystal when SB9 is open (default setting). 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). case, R58 must be removed to avoid disturbance due to the 32 kHz quartz.

2.5 Boot option

  • 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.

2.6 Audio

speaker can be enabled or disabled by setting JP13 (Ta bl e 9). Table 7. Boot related switch

0 STM320518-EVAL boot from Embedded SRAM when SW1

and Bit12 in User OPTION bytes set as shown to the left.

1 STM320518-EVAL boot from System Memory when SW1

and Bit12 in User OPTION bytes set as shown to the left. Table 8. Boot0 related jumpers Table 9. Audio related jumpers Speaker amplifier U17 is enabled when JP13 is open (default setting). Speaker amplifier U17 is disabled when JP13 is closed.

2.7 RS-232, RS-485 and IrDA

(shared with the DSR signal) are added to the RS-232 connector CN7 for ISP support. Table 10. RS-232 and IrDA related jumpers

2.8 Linear sensor

two capacitive sensing channels (PC5 and PB0) in group3. range from 2 V to 3.6 V of VDD on power modes 2 and 3.

2.9 MicroSD card

available on the board. MicroSD card detection is managed by the standard IO port PB15.

2.10 Analog input

2.11 LDR (light dependent resistor)

connected to PA1 (COM1_IN+/ADC IN1) as shown in Figure 4. Table 11. RS-485 related solder bridges SB8 The bus termination is enabled when solder bridge SB8 is closed.

Figure 4. STM320518-EVAL evaluation board band gap and DAC1 OUT, and to connect the LDR output to ADC IN1 for AD conversion.

2.12 Temperature sensor

2.13 Display and input devices

and tamper button (B2) are available as input devices. Table 12. LCD modules

3 SDI PA7 11 GND GND

5 WR - 13 BL_VDD 5 V

IO PB2 (the IO PA7 acts as MOSI when PB2 is high or as MISO when PB2 is LOW).

2.14 RF E2PROM

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.

6 RD - 14 BL_Control 5 V

7 SDO PB4 15 BL_GND GND

8 RESET RESET# 16 BL_GND GND

Table 12. LCD modules (continued)

UM1537 Hardware layout and configuration Doc ID 023059 Rev 1 19/52

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.

Figure 5. STM320518-EVAL evaluation board motor control PCB reworks PA9 and PA10 for the motor control application.

Note: The solder bridges SB1 and SB2 cannot be closed at the same time. Table 13. Motor control related jumpers by the daughterboard when JP2 is not fitted.

3 Connector

3.1 Motor control connector CN1

Figure 6. Motor control connector CN1 Table 14. Motor control connector CN1

12 G N D

3.2 RF E2PROM connector CN2

Figure 7. RF EEPROM daughterboard connector CN2

3.3 HDMI sink connector CN3

Figure 8. HDMI sink connector CN3 Table 15. RF E2PROM connector CN2

1 SDA (PB7) 3 +5 V

2 SCL (PB6) 4 GND

3.4 HDMI source connector CN4

Figure 9. HDMI source connector CN4

3.5 Daughterboard extension connector CN5 and CN6

daughterboards for several evaluation boards. standard has been implemented on the majority of evaluation boards. provided in Ta bl e 1 8 and Table 19. Table 16. HDMI sink connector CN3

13 CEC (PB10) 2,5,8,11,17 GND

14 NC 18 HDMI_5V_Sink

15 SCL (PF6) 19 HPD (P A11 through transistor)

Table 17. HDMI source connector CN4

14 NC 18 HDMI_5V_Source from power

15 SCL (PB6) 19 HPD (PA8)

Table 18. Daughterboard extension connector CN5

3 PC6 JOY_Up Remove R87

5 PC8 JOY_Right Remove R98

9 PA10 USART_RX/ MC_TIM1_CH3 (WH) Keep JP3 open

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

25 PB5 TempSensor_INT Remove R61

27 PB7 TempSensor/HDMI/RF_SDA /

29 PB8 User_KEY Remove R99

31 PB9 IR_OUT Remove R17

33 PC15 OSC32_OUT Close SB10

2 PB15 SD_Detection Remove R83

4 PC7 JOY_DOWN Remove R86

6 PC9 JOY_LEFT Remove R85

10 GND - -

12 PA12 RS485_DIR / RS232_RTS/ MC_IO

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

26 PB6 TempSensor / HDMI/RF_SCL /

28 BOOT0 BOOT0 Keep JP5 open

30 GND - -

32 PC14 OSC32_IN Remove R57

Table 18. Daughterboard extension connector CN5 (continued) Table 19. Daughterboard extension connector CN6

3 PB13 TS_CH2/ MC_TIM1_CH1N(UL) -

5 PB11 TS_CAP/ MC_IO (dissipative brake) Remove R31

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 MC_AIN3_COMP2_IN+ (Current B2) /

25 PA1 LDR_IN+ / MC_AIN1_COMP1_INI+

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

2 PB14 TS_CH3/ MC_TIM1_CH2N (VL) Disconnect MC power board from CN1

4 PB12 TS_CH1/ MC_TIM1_BKIN

6 PB10 HDMI_CEC/ MC_TIM2_CH3

3.6 RS-232 and RS-485 connector CN7

Figure 10. RS-232 and RS-485 connector

8 PB1 MC_TIM3_CH4 (PFC PWM) Disconnect MC power board from CN1

12 PB0 TS_Shield_CAP/ MC_ TIM3_CH3

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

32 VDDA - -

34 PF1 OSC_OUT Remove R59

Table 19. Daughterboard extension connector CN6 (continued) Table 20. RS-232 and RS-485 connector CN7

2 RS232_RX (PA10) 7 RS232_RTS(PA12)

3 RS232_TX (PA9) 8 RS232_CTS(PA11) /

4 RS485_A 9 RS485_B

3.7 Analog input connector CN8

Figure 11. Analog input-output connector CN8

3.8 High density SWD connector CN9

Figure 12. High density SWD debugging connector CN9 Table 21. Analog input-output connector CN8

1 Analog input-output

Table 22. High density SWD debugging connector CN9

7 KEY 8 -

9 GND 10 RESET#

3.9 Standard SWD connector CN10

Figure 13. Standard SWD debugging connector CN10

3.10 Audio jack CN11

3.11 ST-LINK/V2 programming connector CN12

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

Table 23. Standard SWD debugging connector CN10

1 VDD 2 VDD

15 RESET# 16 GND

Figure 14. USB type B connector CN13

3.13 MicroSD connector CN14

Figure 15. MicroSD connector CN14 Table 24. USB type B connector CN13

1 VBUS (power) 4 GND

Table 25. MicroSD connector CN14

15 MicroSDcard_CLK

2 MicroSDcard_CS (PF5) 6 Vss/GND

3 MicroSDcard_DIN

10 MicroSDcard_detect

3.14 Power connector CN15

Figure 16. Power supply connector CN15

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

Figure 17. STM320518-EVAL

Figure 18. MCU

0 C35

Figure 19. Audio

1 U16

25 U18

Figure 20. HDMI_CEC

Figure 21. LCD and micro SD card

Figure 22. Peripherals

2 RV3

100 COMMON5

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

Figure 24. Temperature sensor and RF EEPROM

Figure 25. Linear sensor

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

Figure 27. SWD

Figure 28. Motor control

Figure 29. Power

Figure 30. 2.4 inch LCD module

Table 26. STM32F051R8T6 MCU pin assignments

1 VBAT VBAT

2 PC13 - TAMPER1 -

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 MC_ADC_IN12(headsink

11 PC3 MC_Ain13 (BEMF_C)

12 VSSA / VREF- VSSA

13 VDDA / VREF+ VDDA

14 PA0 - TAMPER2 -

15 PA1 LDR_IN+ MC_AIN1_COMP1_INI+

16 PA2 MC_ADC_IN2 (current A)

17 PA3 MC_AIN3_COMP2_IN+ (current

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)

27 PB1 MC_TIM3_CH4 (PFC PWM)

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 MC_TIM1_BKIN

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)

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

Table 26. STM32F051R8T6 MCU pin assignments (continued)

58 PB6 TempSensor/HDMI/RF_SCL / MC_USART1_TX

59 PB7 TempSensor/HDMI/RF_SDA /

60 BOOT0 BOOT0

61 PB8 User_KEY

62 PB9 IR_OUT

63 VSS_1 VSS

64 VDD_1 VDD

Figure 31. Mechanical dimensions Table 27. Mechanical dimensions

Revision history

Table 28. Document revision history 21-May-2012 1 Initial release.