um2135 user manual - stmicroelectronics · april 2017 docid029965 rev 1 1/50 1 um2135 user manual...

50
April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit is a complete demonstration and development platform for the STMicroelectronics ARM ® Cortex ® -M4 core-based STM32F413ZHT6 microcontroller. This microcontroller features up to 18 timers, internal 320-Kbyte SRAM, 1.5-Mbyte Flash memory and the following interfaces: four I 2 Cs, five I 2 Ss two of which are full duplex, one SDIO, four USARTs, six UARTs, three CANs, one 12-bit ADC, two 12-bit DACs, one SAI, six digital filters for Sigma Delta Modulator, twelve PDMs with stereo microphone and beamforming support, one USB OTG FS, one FSMC interface, one Quad- SPI interface and one SWD debugging support. The 32F413HDISCOVERY Discovery kit offers everything required for users to get started quickly and develop applications easily. The full range of hardware features of the 32F413HDISCOVERY Discovery kit helps users to evaluate almost all peripherals (USB OTG FS, microSD card, Wi-Fi ® 802.11 b/g/n, I 2 S Audio DAC stereo with audio jack, ST-MEMS digital microphones, PSRAM, Quad-SPI Flash memory, LCD parallel interface with capacitive multi-touch panel and others) and develop applications. The Arduino Uno V3 connectivity support provides unlimited expansion capabilities with a large choice of specialized add-on boards.The expansion connectors allow easy connection of a daughterboard for specific customer applications. The integrated ST-LINK/V2-1 provides an embedded in-circuit debugger and programmer for the STM32. The 32F413HDISCOVERY Discovery kit comes with the comprehensive free software libraries and examples available with the STM32Cube package. 1. Pictures are not contractual. Figure 1. 32F413HDISCOVERY board (Top view with LCD) Figure 2. 32F413HDISCOVERY board (Bottom view with STM32F413ZHT6) www.st.com

Upload: others

Post on 05-Mar-2021

13 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

April 2017 DocID029965 Rev 1 1/50

1

UM2135User manual

Discovery kit with STM32F413ZH MCU

Introduction

The 32F413HDISCOVERY Discovery kit is a complete demonstration and development platform for the STMicroelectronics ARM® Cortex®-M4 core-based STM32F413ZHT6 microcontroller. This microcontroller features up to 18 timers, internal 320-Kbyte SRAM, 1.5-Mbyte Flash memory and the following interfaces: four I2Cs, five I2Ss two of which are full duplex, one SDIO, four USARTs, six UARTs, three CANs, one 12-bit ADC, two 12-bit DACs, one SAI, six digital filters for Sigma Delta Modulator, twelve PDMs with stereo microphone and beamforming support, one USB OTG FS, one FSMC interface, one Quad-SPI interface and one SWD debugging support. The 32F413HDISCOVERY Discovery kit offers everything required for users to get started quickly and develop applications easily.

The full range of hardware features of the 32F413HDISCOVERY Discovery kit helps users to evaluate almost all peripherals (USB OTG FS, microSD™ card, Wi-Fi® 802.11 b/g/n, I2S Audio DAC stereo with audio jack, ST-MEMS digital microphones, PSRAM, Quad-SPI Flash memory, LCD parallel interface with capacitive multi-touch panel and others) and develop applications. The Arduino™ Uno V3 connectivity support provides unlimited expansion capabilities with a large choice of specialized add-on boards.The expansion connectors allow easy connection of a daughterboard for specific customer applications. The integrated ST-LINK/V2-1 provides an embedded in-circuit debugger and programmer for the STM32.

The 32F413HDISCOVERY Discovery kit comes with the comprehensive free software libraries and examples available with the STM32Cube package.

1. Pictures are not contractual.

Figure 1. 32F413HDISCOVERY board

(Top view with LCD)

Figure 2. 32F413HDISCOVERY board

(Bottom view with STM32F413ZHT6)

www.st.com

Page 2: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Contents UM2135

2/50 DocID029965 Rev 1

Contents

1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

2 Product marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

3 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

4 Development toolchains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

5 Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

6 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

7 Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

7.1 32F413HDISCOVERY Discovery kit layout . . . . . . . . . . . . . . . . . . . . . . . 10

7.2 Embedded ST-LINK/V2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11

7.2.1 Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

7.2.2 ST-LINK/V2-1 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

7.2.3 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

7.3 Programming/debugging when the power supply is not from ST-LINK/V2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

7.4 Clock sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

7.5 Reset sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

7.6 Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

7.7 USB OTG FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

7.8 microSD card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

7.9 PSRAM memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

7.10 Quad-SPI NOR Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

7.11 Virtual COM port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

7.12 LCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

7.13 Capacitive control touch panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

7.14 Wi-Fi 802.11 b/g/n module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

7.15 Buttons and LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

8 Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Page 3: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 3/50

UM2135 Contents

3

8.1 Arduino Uno V3 connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

8.2 USB OTG FS Micro-AB connector CN17 . . . . . . . . . . . . . . . . . . . . . . . . 21

8.3 LCD FRIDA connector CN16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

8.4 Touch panel connector CN10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

8.5 microSD connector CN1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

8.6 ST-LINK/V2-1 USB Micro-AB connector CN2 . . . . . . . . . . . . . . . . . . . . . 25

8.7 TAG connector CN11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

8.8 Audio line output (green jack) connector CN5 . . . . . . . . . . . . . . . . . . . . . 27

8.9 Extension microphone connector CN12 . . . . . . . . . . . . . . . . . . . . . . . . . . 27

8.10 Optional audio stereo speakers CN3 and CN4 . . . . . . . . . . . . . . . . . . . . 28

Appendix A 32F413HDISCOVERY I/O assignment . . . . . . . . . . . . . . . . . . . . . . . 29

Appendix B Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

Appendix C Federal Communications Commission (FCC) and Industry Canada (IC) Compliance . . . . . . . . . . . . . . . . . . . . . . . 46

C.1 FCC Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

C.1.1 Part 15.19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

C.1.2 Part 15.105 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

C.1.3 Part 15.21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

C.2 IC Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

C.2.1 Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

C.2.2 Déclaration de conformité. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

Appendix D CISPR32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

D.1 Warning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

Page 4: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

List of tables UM2135

4/50 DocID029965 Rev 1

List of tables

Table 1. Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8Table 2. Assignment of the control ports to the LED indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18Table 3. Pinout of the Arduino connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Table 4. USB OTG Micro-AB pinout (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Table 5. USB OTG FS power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Table 6. Pinout of the LCD connector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Table 7. Backlight power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Table 8. Pinout of the touch panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24Table 9. Pinout of the microSD connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Table 10. USB Micro-AB connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26Table 11. Pinout of the TAG connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26Table 12. Audio jack connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Table 13. Extension microphone connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Table 14. 32F413HDISCOVERY I/O assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Table 15. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

Page 5: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 5/50

UM2135 List of figures

5

List of figures

Figure 1. 32F413HDISCOVERY board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Figure 2. 32F413HDISCOVERY board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Figure 3. Hardware block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Figure 4. 32F413HDISCOVERY Discovery kit (top side). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Figure 5. 32F413HDISCOVERY Discovery kit (bottom side). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Figure 6. USB composite device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Figure 7. JP3: 5V_ST_LINK selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13Figure 8. JP3: 5V_ARD selection from CN7 (VIN_5V_ARD). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13Figure 9. JP3: 5V_USB_FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13Figure 10. JP3: 5V_USB_CHARGER selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Figure 11. Wi-Fi module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Figure 12. Arduino connector (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Figure 13. USB OTG FS Micro-AB connector (front view). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Figure 14. LCD connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Figure 15. Touch panel connector pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Figure 16. microSD connector (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24Figure 17. USB Micro-AB connector (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Figure 18. TAG connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26Figure 19. TC2050-IDC-NL cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26Figure 20. Audio jack connector (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Figure 21. Extension microphone connector (front view). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Figure 22. Top . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Figure 23. MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36Figure 24. PSRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37Figure 25. Quad-SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38Figure 26. Audio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39Figure 27. LCD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40Figure 28. USB OTG FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41Figure 29. Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42Figure 30. Arduino Uno V3 connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43Figure 31. ST-LINK with support of SWD only. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44Figure 32. Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

Page 6: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Features UM2135

6/50 DocID029965 Rev 1

1 Features

• STM32F413ZHT6 microcontroller featuring 1.5 Mbytes of Flash memory and 320 Kbytes of SRAM, in LQFP144 package

• 240x240-pixel TFT LCD with touch screen

• 8-Mbit PSRAM; 512K word x 16bits

• 128-Mbit Quad-SPI Flash memory

• I2S audio codec

• 2 on-board ST-MEMS microphones

• Integrated Wi-Fi® module compliant with 802.11 b/g/n

• 2 push-buttons (user and reset)

• 2 user LEDs: one green and one red

• Jack connector for Audio line with microphone input and stereo output

• Connector for microSD™ card

• USB OTG FS with Micro-AB connector

• Expansion connectors:

– Audio daughterboard (5 ST-MEMS microphones)

– Arduino Uno V3

• Flexible power supply options:

– ST LINK USB VBUS or external sources

• On-board ST-LINK/V2-1 debugger/programmer with USB re-enumeration capability: mass storage, virtual COM port, debug port

• Comprehensive free software libraries and examples available with the STM32Cube package

• Support of wide choice of Integrated Development Environments (IDEs) including IAR™, Keil®, GCC-based IDEs

Page 7: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 7/50

UM2135 Product marking

49

2 Product marking

Evaluation tools marked as "ES" or "E" are not yet qualified and therefore they are not ready to be used as reference design or in production. Any consequences deriving from such usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering sample tools as reference design or in production.

"E" or "ES" marking examples of location:

• On the targeted STM32 that is soldered on the board (for illustration of STM32 marking, refer to the section “Package characteristics” of the STM32 datasheet at www.st.com).

• Next to the evaluation tool ordering part number, that is stuck or silk-screen printed on the board.

3 System requirements

• Windows® OS (XP, 7, 8 and 10), Linux® or MacOS™

• USB Type-A to Micro-B cable

4 Development toolchains

• ARM® Keil®: MDK-ARM(a)

• IAR™: EWARM(a)

• GCC-based IDEs: free SW4STM32 from AC6

5 Demonstration software

The demonstration software is preloaded in the STM32F413ZH Flash memory for easy demonstration of the device peripherals in standalone mode. The latest versions of the demonstration source code and associated documentation can be downloaded from the www.st.com/stm32f4-discovery webpage.

a. On Windows® only.

Page 8: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Ordering information UM2135

8/50 DocID029965 Rev 1

6 Ordering information

To order the 32F413HDISCOVERY Discovery kit, refer to Table 1:

Table 1. Ordering information

Order code Target STM32

STM32F413H-DISCO STM32F413ZHT6

Page 9: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 9/50

UM2135 Hardware layout and configuration

49

7 Hardware layout and configuration

The 32F413HDISCOVERY Discovery kit is designed around the STM32F413ZH (144-pin in LQFP package). The hardware block diagram (see Figure 3) illustrates the connection between the STM32 and the peripherals (PSRAM, Quad-SPI Flash memory, LCD connector, USB OTG connectors, USART, Audio, microSD™ card, Arduino™ Uno V3 shields and embedded ST-LINK/V2-1). Refer to Figure 4 and Figure 5 to locate these features on the 32F413HDISCOVERY board.

Figure 3. Hardware block diagram

Page 10: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Hardware layout and configuration UM2135

10/50 DocID029965 Rev 1

7.1 32F413HDISCOVERY Discovery kit layout

Figure 4. 32F413HDISCOVERY Discovery kit (top side)

Arduino_D[8..15]: CN6

Arduino_D[0..7]: CN8

Arduino_A[0..5]: CN9

Arduino_PWR: CN7

PSRAM: U14

ST LINK STM32: U6Audio ack: CN5

QSPI: U9

Audio Codec: U11

SD CARD: CN1

USB_STLINK: CN2

MEMS MP23: U1/U2

5V PWR: U3

3 V PWR: U4

IDD JP: JP2

MCU_PWR: JP3

STM32F413ZHT6

Page 11: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 11/50

UM2135 Hardware layout and configuration

49

Figure 5. 32F413HDISCOVERY Discovery kit (bottom side)

7.2 Embedded ST-LINK/V2-1

The ST-LINK/V2-1 programming and debugging tool is integrated on the 32F413HDISCOVERY Discovery kit. The new features supported on ST-LINK/V2-1 and not present on ST-LINK/V2 are listed below:

• USB software re-enumeration

• Virtual COM port interface on USB

• Mass storage interface on USB

• USB power management request for more than 100 mA power on USB

These features are no more supported on ST-LINK/V2-1:

• SWIM interface

• Application voltage lower than 3 V

For all general information concerning debugging and programming features common between V2 and V2-1 versions, refer to ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32 User manual (UM1075) at the www.st.com website.

Touch screen CN10

MEMS MP34 U16/U17

LCD-PSRAM Data probing CN15

Ext MEMS module mb1299

ST-LINK UART CN13

User USB : CN17

CN16: LCD connector

TAG footprint: CN11

User LED GREEN: LD3

User LED RED: LD4

LCD BackLight fct

LCD 240x240

5V PWR: LD6

ST-LINK LED: LD2

STLINK_DFU: CN14

ARD LED GREEN: LD5

User lue utton : B1

RESET black Button : B2M1: Wi-Fi Module

Page 12: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Hardware layout and configuration UM2135

12/50 DocID029965 Rev 1

7.2.1 Drivers

Before connecting the 32F413HDISCOVERY Discovery kit to a Windows® PC (XP, 7, 8 or 10) through a USB, a driver for the ST-LINK/V2-1 must be installed. It is available at the www.st.com website.

In case the 32F413HDISCOVERY Discovery kit is connected to the PC before the driver is installed, some 32F413HDISCOVERY interfaces may be declared as "unknown" in the PC device manager. To recover from this situation the user must install the driver files, and update the driver of the connected device from the device manager (see Figure 6).

Note: Prefer using the "USB Composite Device" handle for a full recovery.

Figure 6. USB composite device

7.2.2 ST-LINK/V2-1 firmware upgrade

The ST-LINK/V2-1 embeds a firmware upgrade mechanism for in-situ upgrade through the USB port. As the firmware may evolve during the life time of the ST-LINK/V2-1 product (for example new functionalities, bug fixes, support for new microcontroller families), it is recommended to visit www.st.com before starting to use the 32F413HDISCOVERY Discovery kit and periodically, to stay up-to-date with the latest firmware version.

7.2.3 Power supply

The 32F413HDISCOVERY Discovery kit is designed to be powered by 5 V DC power supply. It is possible to configure the 32F413HDISCOVERY board to use any of the following four sources for the power supply:

• 5V_ST_LINK: DC power from USB ST-LINK connector.The power source is the USB Micro-B connector of the ST-LINK/V2-1 (CN2). A jumper needs to be placed on pins 1 and 2 of JP3 (5V_ST_LINK on silkscreen) to enable this power source (see Figure 7). It is the default setting. In this configuration only the ST-LINK MCU is powered before the USB enumeration, because the host PC only provides 100 mA to the board at that time. During the USB enumeration, the 32F413HDISCOVERY board asks for the 500 mA power to the host PC. If the host is able to provide the required power, the enumeration succeeds and, the power transistor ST890 (U10) is switched ON, the entire board is powered and the LED LD1 remains turned OFF, thus the 32F413HDISCOVERY board consumes up to 500 mA current, but no more. If the host is not able to provide the requested current, the enumeration fails. Therefore the ST890 remains OFF and the MCU part including the extension board is not powered. As a

Page 13: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 13/50

UM2135 Hardware layout and configuration

49

consequence the red LED LD1 is turned ON. In this case it is mandatory to use an external power supply.

Figure 7. JP3: 5V_ST_LINK selection

• 5V_ARD: 7-12V DC power from Arduino Uno V3 connector. The power source is CN7 pin 8 named VIN on Arduino connector silkscreen. A jumper needs to be placed on pins 3 and 4 of JP3 (5V_ARD on silkscreen) to enable this power source (see Figure 8).

Figure 8. JP3: 5V_ARD selection from CN7 (VIN_5V_ARD)

• 5V_USB_FS: DC power from USB user connector.The power source is the USB Micro-AB connector (CN17). In this case, the 32F413HDISCOVERY board is powered by an external USB host without current limitation on board. A jumper needs to be placed on pins 5 and 6 of JP3 (5V_USB_FS on silkscreen) to enable this power source (see Figure 9).

Figure 9. JP3: 5V_USB_FS

Page 14: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Hardware layout and configuration UM2135

14/50 DocID029965 Rev 1

• 5V_USB_CHARGER: DC power charger from USB ST-LINK. The power source is the USB Micro-B connector of the ST-LINK/V2-1 (CN2). In this case, if the 32F413HDISCOVERY Discovery kit is powered by an external USB charger the debug is not available. If the PC is connected instead of the charger, the limitation is no more effective, in this case the PC could be damaged. A jumper has to be placed on pins 7 and 8 of JP3 (5V_USB_CHARGER on silkscreen) to enable this power source (see Figure 10).

Figure 10. JP3: 5V_USB_CHARGER selection

Note: In case the board is powered by a USB charger, there is no USB enumeration, so the led LD1 remains set to OFF permanently and the board is not powered. In this specific case only, the jumper JP3 should be set in position 7-8, to allow the board to be powered anyway.

Caution: Do not connect the PC to the ST-LINK (CN2) when R45 is soldered. The PC may be damaged or the board may not be powered correctly.

STM32F413ZH IDD current measurement: JP2

The STM32F413ZH current measurement can be done on JP2. By default a jumper is placed on JP2.

For current measurement configuration, the jumper on JP2 should be removed and an amp meters should be place on JP2.

Note: The 32F413HDISCOVERY Discovery kit must be powered by a power supply unit or by an auxiliary equipment complying with the standard EN-60950-1: 2006+A11/2009, and must be Safety Extra Low Voltage (SELV) with limited power capability.

7.3 Programming/debugging when the power supply is not from ST-LINK/V2-1

It is mandatory to power the 32F413HDISCOVERY Discovery kit first using CN7 (VIN) or CN17 (USB_FS_OTG), then connecting the USB cable to the PC. Proceeding this way ensures that the enumeration succeeds thanks to the external power source.

The following power sequence procedure must be respected:

1. Connect the jumper JP3 on (5V_ARD) or (5V_USB_FS)

2. Connect the external power source to CN7 in case of an Arduino shield or CN17 in case of an USB FS host interface

Page 15: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 15/50

UM2135 Hardware layout and configuration

49

3. Check that the GREEN LED LD6 is turned ON

4. Connect the PC to USB connector CN2

If this order is not respected, the board may be powered by VBUS first from ST-LINK, and the following risks may be encountered:

1. If more than 500 mA current is needed by the board, the PC may be damaged or current can be limited by the PC. As a consequence the board is not powered correctly.

2. 500 mA is requested at the enumeration, so there is a risk that the request is rejected and enumeration does not succeed if the PC cannot provide such current.

7.4 Clock sources

Three clock sources are described below:• MCO, 8 MHz clock from ST-LINK MCU for the STM32F413ZHT6

• X2, 8 MHz oscillator for the STM32F413ZHT6

• X1, 32.768 KHz crystal for the STM32F413ZHT6 embedded RTC

7.5 Reset sources

The reset signal of the 32F413HDISCOVERY Discovery kit is active low and the reset sources include:

• Reset button B2

• Arduino Uno V3 shield board from CN7

• Embedded ST-LINK/V2-1

7.6 Audio

An audio codec WM8994ECS/R from CIRRUS with four DACs and two ADCs is connected to the I2S interface of the STM32F413ZH. It communicates with the STM32 via the I2C bus shared with the touch panel of the FRIDA LCD.

• The analog-line output is connected to the DAC of WM8994ECS/R via audio jack CN5.

• The microphone input is connected from the audio jack to the input line of WM8994ECS/R

• Two optional external speakers can be connected to WM8994ECS/R through CN3 for left speaker and through CN4 for right speaker.

• Two digital microphones (ST-MEMS microphone) MP34DT01TR-M are on 32F413HDISCOVERY Discovery kit. They are connected to the digital input microphones of the STM32F413ZH and are managed by the DFSDM functionality.

• The connector CN12 offers the possibility to connect a microphone module with up to five ST-MEMS microphones (see Figure 26: Audio). They are connected to the digital input microphones of the STM32F413ZH and are managed by the DFSDM functionality.

Page 16: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Hardware layout and configuration UM2135

16/50 DocID029965 Rev 1

7.7 USB OTG FS

The 32F413HDISCOVERY Discovery kit supports the USB OTG FS communication via a USB Micro-AB connector.

A USB power switch (U15) is also connected on VBUS and provides power to CN17. The green LED LD7 is lit when either:

• Power switch is ON and the 32F413HDISCOVERY works as a USB host

• VBUS is powered by another USB host when the32F413HDISCOVERY works as a USB device.

The red LED LD8 is lit when an overcurrent occurs.

Note:1 When the 32F413HDISCOVERY board is powered by the ST-LINK, the OTG function provides up to 100 mA.

Note:2 When the 32F413HDISCOVERY board is powered by an external power supply, the OTG function can provide more than 100 mA, according to the external power supply capability.

Note:3 When the 32F413HDISCOVERY board is powered by an external power supply through the USB FS connector (CN17), in device mode, do not use a PC as power source.

7.8 microSD card

The 32F413HDISCOVERY Discovery kit supports the microSD card connected to the SDIO port of the STM32F413ZH.

The microSD card has to be compatible with the MMC 4.1 specification, or with the microSD card memory specification version 2.0

7.9 PSRAM memory

The 8-Mbit PSRAM (IS66WV51216EBLL-55BLI from ISSI: Integrated Silicon Solution Inc) is connected to the FSMC interface of the STM32F413ZH. This memory is organize as 512K words by 16 bits.

7.10 Quad-SPI NOR Flash memory

The 128-Mbit Quad-SPI NOR Flash memory (N25Q128A13EF840F from MICRON) is connected to the Quad-SPI interface of the STM32F413ZH.

7.11 Virtual COM port

The serial interface USART6 is directly available as a virtual COM port of the PC connected to the ST-LINK/V2-1 USB connector CN13. The virtual COM port settings are configured as:

• 115200 b/s

• 8 bits data

• no parity

• 1 stop bit

• no flow control

Page 17: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 17/50

UM2135 Hardware layout and configuration

49

7.12 LCD

The 240x240-pixel TFT LCD (FRD154BP2902 from Frida) is connected to the FSMC data interface of the STM32F413ZH.

It uses the Sitronix ST7789H2 controller for 262K-color and TFT-LCD graphic type. Display data are stored into the on-chip display data RAM of 240x320x18 bits. It performs display data RAM read/write operation with no external operation clock, to minimize power consumption.

An external SRAM is also used to store display data.

LCD_RS signal is used to determine whether the bus is carrying data or control/command registers.

7.13 Capacitive control touch panel

The Capacitive Control Touch Panel (Frida LS015GF614A) is controlled by the STM32F413ZH through the I2CFMP shared with audio codec.

7.14 Wi-Fi 802.11 b/g/n module

A Wi-Fi module from INVENTEK Systems ISM43362_M3x_l44 is integrated in the 32F413HDISCOVERY Discovery kit (see Figure 11).

The Inventek ISM43362-M3G-L44 is an embedded (eS-WiFi) wireless Internet Connectivity device. The Wi-Fi hardware module consists of an ARM®-M3 Cortex® host processor, an integrated antenna and a Broadcom Wi-Fi device.

The module is driven by an SPI interface enabling the connection to the STM32F413ZH.

The Wi-Fi module requires no operating system and has a completely integrated TCP/IP stack that only requires AT commands to establish connectivity.

Figure 11. Wi-Fi module

Page 18: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Hardware layout and configuration UM2135

18/50 DocID029965 Rev 1

7.15 Buttons and LEDs

The black button B2 located on LCD side, is the reset of the microcontroller STM32F413ZH (refer to the Figure 4: 32F413HDISCOVERY Discovery kit (top side)).

When the button is depressed the logic state is "0", otherwise the logic state is "1".

The blue button B1, located on the LCD side, is available to be used as a digital input or as alternate function Wake-up.

When the button is depressed the logic state is "1", otherwise the logic state is "0".

Two LEDs (LD4 red and LD3 green) located on the LCD side, are available for the user (refer to the Figure 5: 32F413HDISCOVERY Discovery kit (bottom side)). To light a LED a high logic state "1" should be written in the corresponding GPIO register.

Table 2 gives the assignment of the control ports to the LED indicators.

Table 2. Assignment of the control ports to the LED indicators

LED Color Name Comment

B1 BLUE USER_B Alternate function Wake-up PA0

B2 BLACK RESET NRST

LD1 RED Fault Power Current upper than 750 mA

LD2 RED/GREEN ST-LINK COM Green when communication

LD3 GREEN LED2_GREEN PC5

LD4 RED LED1_RED PE3

LD5 GREEN ARDUINO PB12

LD6 GREEN 5 V Power 5 V available

LD7 GREEN VBUS OK 5 V USB available

LD8 RED VBUS OCRCR PG7

Page 19: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 19/50

UM2135 Connectors

49

8 Connectors

8.1 Arduino Uno V3 connectors

CN6, CN7, CN8 and CN9 are female connectors compatible with Arduino Uno V3. Most shields designed for Arduino Uno V3 are also supported by the 32F413HDISCOVERY Discovery kit.

Since the I/Os of the STM32F413ZH microcontroller are 5 V tolerant, there is no issue for Arduino compatibility.

Example for the connector references (see Figure 12):

• CN6: Fisher BL 1-10 G

• CN7: Fisher BL 1-8 G

• CN8: Fisher BL 1-8 G

• CN9: Fisher BL 1-6 G

Figure 12. Arduino connector (top view)

Table 3. Pinout of the Arduino connector

Connector Pin number Pin name Signal name STM32 pin Function

CN7

1 NC - -

2 IOREF - 3.3 V reference

3 NRST NRST NRST RESET

4 3.3 V - 3.3 V input/output

5 5 V - 5 V output

6 GND - GND

7 GND - GND

8 VIN - Power input

Page 20: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Connectors UM2135

20/50 DocID029965 Rev 1

CN9

1 A0 ADC PC0 ADC1_IN10

2 A1 ADC PA1 ADC1_IN1

3 A2 ADC PA2 ADC1_IN2

4 A3 ADC PA5 ADC1_IN5

5 A4 ADC PB1 ADC1_IN9

6 A5 ADC PC4 ADC1_IN14

CN6

10 SCL/D15 ARD_D15 PB10 I2C2_SCL

9 SDA/D14 ARD_D14 PB11 I2C2_SDA

8 AVDD VREF - VREF

7 GND - - Ground

6 SCK/D13 ARD_D13 PB12 SPI3_SCK

5 MISO/D12 ARD_D12 PB4 SPI3_MISO

4PWM/MOSI/

D11ARD_D11 PB5

TIM3_CH2/SPI3_MOSI

3 PWM/CS/D10 ARD_D10 PA15TIM2_CH1/SPI3_N

SS

2 PWM/D9 ARD_D9 PB8 TIM4_CH3

1 D8 ARD_D8 PA4 IO

CN8

8 D7 ARD_D7 PC13 IO

7 PWM/D6 ARD_D6 PB0 TIM3_CH3

6 PWM/D5 ARD_D5 PE6 TIM9_CH2

5 D4 ARD_D4 PB6 EXT_IT_6

4 PWM/D3 ARD_D3 PF10 TIM5_CH4

3 D2 ARD_D2 PG13 I/O

2 TX/D1 ARD_D1 PF7 UART7_TX

1 RW/D0 ARD_D0 PF6 UART7_RX

Table 3. Pinout of the Arduino connector (continued)

Connector Pin number Pin name Signal name STM32 pin Function

Page 21: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 21/50

UM2135 Connectors

49

8.2 USB OTG FS Micro-AB connector CN17

Example of connector reference (see Figure 13):

• Molex 475900001

Figure 13. USB OTG FS Micro-AB connector (front view)

Table 4. USB OTG Micro-AB pinout (front view)

ConnectorPin

numberPin names Signal name STM32 pin Function

CN15

1 VBUS USB_OTG_5V_VBUS PA95V power and

detection

2 DM (D-) USB_OTG_FS_N PA11 USB diff pair M

3 DP (D+) USB_OTG_FS_P PA12 USB diff pair P

4 ID USB_OTG_FS_ID PA10 USB Identification

5 GND - - GND

Table 5. USB OTG FS power management

Pin number Pin names Signal names STM32 pin Function

U12-3 FAULTn USB_OTG_FS_OVRCR PG7 Over Current IT

U12-4 ENn USB_OTG_FS_PWR_EN PG8 USB Power enable

Page 22: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Connectors UM2135

22/50 DocID029965 Rev 1

8.3 LCD FRIDA connector CN16

Example of connector reference (see Figure 14):

• Hirose FH26-29S-0.3SHW

Figure 14. LCD connector

Table 6. Pinout of the LCD connector

ConnectorPin

numberPin name Signal name STM32 pin Function

CN16

1 GND - - Ground

2 FMARK LCD_TE PB14 Tearing Effect

3 DB15 LCD-PSRAM_D15 PD10 FSMC_D15

4 DB14 LCD-PSRAM_D14 PD9 FSMC_D14

5 DB13 LCD-PSRAM_D13 PD8 FSMC_D13

6 DB12 LCD-PSRAM_D12 PE15 FSMC_D12

7 DB11 LCD-PSRAM_D11 PE14 FSMC_D11

8 DB10 LCD-PSRAM_D10 PE13 FSMC_D10

9 DB9 LCD-PSRAM_D9 PE12 FSMC_D9

10 DB8 LCD-PSRAM_D8 PE11 FSMC_D8

11 DB7 LCD-PSRAM_D7 PE13 FSMC_D7

12 DB6 LCD-PSRAM_D6 PE9 FSMC_D6

13 DB5 LCD-PSRAM_D5 PE8 FSMC_D5

14 DB4 LCD-PSRAM_D4 PE7 FSMC_D4

15 DB3 LCD-PSRAM_D3 PD1 FSMC_D3

16 DB2 LCD-PSRAM_D2 PD0 FSMC_D2

17 DB1 LCD-PSRAM_D1 PD15 FSMC_D1

18 DB0 LCD-PSRAM_D0 PD14 FSMC_D0

19 /RD LCD-PSRAM_NOE PD4 FSMC_NOE

20 /WR LCD-PSRAM_NWE PD5 FSMC_NWE

21 RS LCD-RS_A0 PF0 FSMC_RS

Page 23: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 23/50

UM2135 Connectors

49

The Table 7 shows LCD connection for Backlight management:

8.4 Touch panel connector CN10

Example of connector reference (see Figure 15):

• Hirose DF37NB-10DS-0.4V

Figure 15. Touch panel connector pinout

CN16

22 /CS LCD_NE3 PG10 FSMC_NE

23 RESET LCD-CTP_RST PB13 RESET

24 IM - - 8/16 bit mode select

25 IOVCC 3.3 V - Power

26 VCI 3.3 V - Power

27 GND GND - Ground

28 LEDA LEDA - LED anode

29 LEDK LEDK - LED cathode

Table 7. Backlight power management

Pin number Pin name Signal name STM32 pin Function

U18-7 EN LCD_BL_CTRL PE5 Backlight enable

Table 6. Pinout of the LCD connector (continued)

ConnectorPin

numberPin name Signal name STM32 pin Function

Page 24: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Connectors UM2135

24/50 DocID029965 Rev 1

8.5 microSD connector CN1

Example of connector reference (see Figure 16):

• Yamaichi PJS008-2003-1

Figure 16. microSD connector (front view)

Table 8. Pinout of the touch panel

ConnectorPin

numberPin name Signal name STM32 pin Function

CN10

1 GND - - Ground

2 INT CTP_INT PC1 Interrupt

3 GND - - Ground

4 SDA I2CFMP1_SDA PC7 I2CFMP1_SDA

5 SCL I2CFMP1_SCL PC6 I2CFMP1_SDA

6 GND - - Ground

7 RESET LCD-CTP_RST PB13 RESET

8 GND - - Ground/ VCC for rev2

9 VDD 3.3 V - Power

10 GND - - Ground

Page 25: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 25/50

UM2135 Connectors

49

T

8.6 ST-LINK/V2-1 USB Micro-AB connector CN2

The USB connector is used to connect the embedded ST-LINK/V2-1 to a PC for programming and debugging of the STM32F413ZH microcontroller.

Example of connector reference (see Figure 17):

• Molex 1050170001

Figure 17. USB Micro-AB connector (front view)

Table 9. Pinout of the microSD connector

ConnectorPin

numberPin name Signal name STM32 pin Function

CN1

1 SDIO_D2 SD_D2 PC10 SD DATA 2

2 SDIO_D3 SD_D3 PC11 SD DATA 3

3 SDIO_CMD SD_CMD PA6 SD CMD

4 3.3 V - POWER

5 SD_CLK SD_CLK PC12 SD CLOCK

6 GND - GND

7 SDIO_D0 SD_D0 PC8 SD DATA 0

8 SDIO_D1 SD_D1 PC9 SD DATA 1

9 SW2 / GND - GND

10 SW1 SD_Dectect PF11 SD CARD DETECT

Page 26: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Connectors UM2135

26/50 DocID029965 Rev 1

8.7 TAG connector CN11

The TAG connector is implemented on the 32F413HDISCOVERY Discovery kit. The TAG connector is a 10-pin footprint supported by the SWD mode. It shares the same signals with the ST-LINK (see Figure 18).

The TC2050-IDC-NL cable is used to link ST-LINK and the TAG connector on the 32F413HDISCOVERY, so that users can easily program and debug the STM32F413ZH (see Figure 19).

Table 10. USB Micro-AB connector

ConnectorPin

numberPin name Signal name

STM32F103 pin

Function

CN2

1 VBUS 5V_USB_ST_LINK -5 V power and

detection

2 DM (D-) USB_STLK_N PA11 USB diff pair M

3 DP (D+) USB_STLK_P PA12 USB diff pair P

4 ID USB_STLK_ID - USB Identification

5 GND - - GND

Figure 18. TAG connector Figure 19. TC2050-IDC-NL cable

Table 11. Pinout of the TAG connector

ConnectorPin

numberPin name Signal name STM32 pin Function

CN11

1 3.3 V 3V3_ST_LINK - Power

2 SWD STLINK_JTMS_SWDIO PA13 SW DATA

3 GND - - Ground

4 SWCLK STLINK_JTCK_SWCLK PA14 SW CLOCK

5 GND - - Ground

6 SWO STLINK_JTDO_SWO PB3 SWO

Page 27: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 27/50

UM2135 Connectors

49

8.8 Audio line output (green jack) connector CN5

A 3.5 mm stereo audio green jack output is available to support the headphone.

Example of connector reference (see Figure 20):

• PJ3028B-3_4P

Figure 20. Audio jack connector (front view)

8.9 Extension microphone connector CN12

Example of connector reference (see Figure 21):

• Amphemol-FCI 20021311-00020T4LF

CN11

7 NC - - -

8 NC - - -

9 NC - - -

10 NRST NRST NRST RESET

Table 11. Pinout of the TAG connector (continued)

ConnectorPin

numberPin name Signal name STM32 pin Function

Table 12. Audio jack connector

Connector Pin number Pin nameSignal name

Audio codec pin Function

CN5

1 1 NA NA NA

2 2 MIC_IN MICBIAS1 Microphone

3 3 GND HPOUT1FB/GND GND

4 4 HP_OUT_R HPOUT1R HP right

5 5 NA NA NA

6 6 HP_OUT_L HPOUT1L HP left

Page 28: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Connectors UM2135

28/50 DocID029965 Rev 1

Figure 21. Extension microphone connector (front view)

8.10 Optional audio stereo speakers CN3 and CN4

The stereo audio outputs are available to support stereo speakers (CN3 for left channel and CN4 for right channel).

Table 13. Extension microphone connector

Connector Pin number Pin name Signal name STM32 pin Function

CN12

1 GND GND - Power

2 VCC_0 3.3 V - Ground

3 CLK_1 EXT_DFSDM2_CKOUT PD2 DFSDM2 CLOCK

4 CLK_0 EXT_DFSDM1_CKOUT PA8 DFSDM1 CLOCK

5 DATA_1 EXT_DFSDM2_DATIN1 PA7 DFSDM2 DATA1

6 DATA_0 EXT_DFSDM1_DATIN1 PD6 DFSDM1 DATA1

7 DATA_3 EXT_DFSDM2_DATIN7 PB7 DFSDM2 DATA7

8 - - -

9 - - - -

10 DETECTN DETECTN - -

11 - - - -

12 MEMS_LED MEMS_LED PE4 -

CN12

13 - - - -

14 - - - -

15 - - - -

16 - - - -

17 - - - -

18 - - - -

19 VCC_1 3.3 V - Power

20 GND GND - Ground

Page 29: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 29/50

UM2135 32F413HDISCOVERY I/O assignment

49

Appendix A 32F413HDISCOVERY I/O assignment

Table 14. 32F413HDISCOVERY I/O assignment

Pin No. Pin Name Signal or Label Feature / Comment

1 PE2 QSPI_BK1_IO2 QSPI

2 PE3 LED1_RED User LED

3 PE4 MEMS_LED Microphones MEMS Module

4 PE5 LCD_BL_CTRL LCD and CTP

5 PE6 ARD_D5 ARD_TIM9_CH2

6 VBAT VBAT 3.3V

7 PC13-ANTI_TAMP ARD_D7 ARD_IO

8 PC14-OSC32_IN OSC_32K_IN RTC CLK

9 PC15-OSC32_OUT OSC_32K_OUT RTC CLK

10 PF0 PSRAM_A0/LCD-RS_A0Shared between LCD and

PSRAM

11 PF1 PSRAM_A1 PSRAM

12 PF2 PSRAM_A2 PSRAM

13 PF3 PSRAM_A3 PSRAM

14 PF4 PSRAM_A4 PSRAM

15 PF5 PSRAM_A5 PSRAM

16 VSS_5 VSS_5 GND

17 VDD_5 VDD_5 3.3 V

18 PF6 ARD_D0_URX ARD_UART7

19 PF7 ARD_D1_UTX ARD_UART7

20 PF8 QSPI_BK1_IO0 QSPI

21 PF9 QSPI_BK1_IO1 QSPI

22 PF10 ARD_D3_PWM ARD_TIM5_CH4

23 PH0-OSC_IN HSE_OSC_IN 8 MHz clock

24 PH1-OSC_OUT WIFI_RST Wi-Fi

25 NRST NRST_BUTTON RESET

26 PC0 ARD_A0 ARD_ADC1_IN10

27 PC1 CTP_INT Touch Panel INT

28 PC2 CODEC_I2Sext_SD I2S2

29 PC3 CODEC_I2S_SD I2S2

30 VDD_12 VDD_12 3.3 V

31 VSSA VSSA GND

32 VREF+ VREF 3.3 V

Page 30: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

32F413HDISCOVERY I/O assignment UM2135

30/50 DocID029965 Rev 1

33 VDDA VDDA 3.3 V

34 PA0-WKUP B_USER USER BUTTON

35 PA1 ARD_A1 ARD_ADC1_IN1

36 PA2 ARD_A2 ARD_ADC1_IN2

37 PA3 CODEC_I2S_MCLK AUDIO_I2S2

38 VSS_4 VSS_4 GND

39 VDD_4 VDD_4 3.3 V

40 PA4 ARD_D8_IO ARD

41 PA5 ARD_A3 ARD_ADC1_IN5

42 PA6 SD_CMD SD CARD

43 PA7 DFSDM2_DATIN1 ST-MEMS microphones

44 PC4 ARD_A5 ARD_ADC1_IN14

45 PC5 LED2_GREEN User LED

46 PB0 ARD_D6_PWM ARD_TIM3_CH3

47 PB1 ARD_A4 ARD_ADC1_IN9

48 PB2 QSPI_CLK QSPI

49 PF11 SD_Detect SD CARD_IT_11

50 PF12 PSRAM_A6 PSRAM

51 VSS_6 VSS_6 GND

52 VDD_6 VDD_6 3.3 V

53 PF13 PSRAM_A7 PSRAM

54 PF14 PSRAM_A8 PSRAM

55 PF15 PSRAM_A9 PSRAM

56 PG0 PSRAM_A10 PSRAM

57 PG1 PSRAM_A11 PSRAM

58 PE7 LCD-PSRAM_D4 LCD-PSRAM

59 PE8 LCD-PSRAM_D5 LCD-PSRAM

60 PE9 LCD-PSRAM_D6 LCD-PSRAM

61 VSS_7 VSS_7 GND

62 VDD_7 VDD_7 3.3 V

63 PE10 LCD-PSRAM_D7 LCD-PSRAM

64 PE11 LCD-PSRAM_D8 LCD-PSRAM

65 PE12 LCD-PSRAM_D9 LCD-PSRAM

66 PE13 LCD-PSRAM_D10 LCD-PSRAM

67 PE14 LCD-PSRAM_D11 LCD-PSRAM

Table 14. 32F413HDISCOVERY I/O assignment (continued)

Pin No. Pin Name Signal or Label Feature / Comment

Page 31: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 31/50

UM2135 32F413HDISCOVERY I/O assignment

49

68 PE15 LCD-PSRAM_D12 LCD-PSRAM

69 PB10 ARD_D15_SCL ARD_I2C2

70 PB11 ARD_D14_SDA ARD_I2C2

71 VCAP1_0 VCAP1_0 PWR

72 VDD_1_0 VDD_1_0 3.3 V

73 PB12 ARD_D13_SCK SPI3 (ARD & WIFI)

74 PB13 LCD-CTP_RST LCD-CTP

75 PB14 LCD_TE LCD

76 PB15 WIFI_WKUP Wi-Fi

77 PD8 LCD-PSRAM_D13 LCD-PSRAM

78 PD9 LCD-PSRAM_D14 LCD-PSRAM

79 PD10 LCD-PSRAM_D15 LCD-PSRAM

80 PD11 PSRAM_A16 PSRAM

81 PD12 PSRAM_A17 PSRAM

82 PD13 QSPI_BK1_IO3 QSPI

83 VSS_8 VSS_8 GND

84 VDD_8 VDD_8 3.3 V

85 PD14 LCD-PSRAM_D0 LCD-PSRAM

86 PD15 LCD-PSRAM_D1 LCD-PSRAM

87 PG2 PSRAM_A12 PSRAM

88 PG3 PSRAM_A13 PSRAM

89 PG4 PSRAM_A14 PSRAM

90 PG5 PSRAM_A15 PSRAM

91 PG6 QSPI_BK1_NCS QSPI

92 PG7 USB_OTG_FS_OVRCR USB_INT_7

93 PG8 USB_OTG_FS_PWR_EN USB

94 VSS_9 VSS_9 GND

95 VDD_2_USB33 VDD_2_USB33 3.3 V

96 PC6 CTP_I2C_SCL CTP_I2CFMP1

97 PC7 CTP_I2C_SDA CTP_I2CFMP1

98 PC8 SD_D0 SD CARD

99 PC9 SD_D1 SD CARD

100 PA8 DFSDM1_CKOUT ST-MEMS microphones

101 PA9 USB_OTG_FS_VBUS USB

102 PA10 USB_OTG_FS_ID USB

Table 14. 32F413HDISCOVERY I/O assignment (continued)

Pin No. Pin Name Signal or Label Feature / Comment

Page 32: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

32F413HDISCOVERY I/O assignment UM2135

32/50 DocID029965 Rev 1

103 PA11 USB_OTG_FS_DM USB

104 PA12 USB_OTG_FS_DP USB

105 PA13 DBG_SWDIO STLINK

106 VCAP2_0 VCAP2_0 PWR

107 VSS 2_0 VSS 2_0 GND

108 VDD_2_0 VDD_2_0 3.3 V

109 PA14 DBG_SWCLK ST-LINK

110 PA15 ARD_D10_PWM_CS ARD_TIM2_CH1_SPI3

111 PC10 SD_D2 SD CARD

112 PC11 SD_D3 SD CARD

113 PC12 SD_CLK SD CARD

114 PD0 LCD-PSRAM_D2 LCD-PSRAM

115 PD1 LCD-PSRAM_D3 LCD-PSRAM

116 PD2 DFSDM2_CKOUT Microphones MEMS

117 PD3 CODEC_I2S_CK AUDIO_I2S2

118 PD4 LCD-PSRAM_NOE LCD-PSRAM

119 PD5 LCD-PSRAM_NWE LCD-PSRAM

120 VSS_10 VSS_10 GND

121 VDD_10 VDD_10 3.3 V

122 PD6 DFSDM1_DATIN1 ST-MEMS microphones

123 PD7 PSRAM_NE1 PSRAM

124 PG9 UART_VCP_RX STLINK_UART6

125 PG10 LCD_NE3 LCD

126 PG11 WIFI_SPI_CSN WIFI_SPI_CS

127 PG12 WIFI_DRDY Wi-Fi

128 PG13 ARD_D2_IO ARD

129 PG14 UART_VCP_TX STLINK_UART6

130 VSS_11 VSS_11 GND

131 VDD_11 VDD_11 3.3 V

132 PG15 CODEC_INT AUDIO_INT15

133 PB3 DBG_SWO ST-LINK

134 PB4 ARD_D12_MISO SPI3 (ARD & WIFI)

135 PB5 ARD_D11_PWM_MOSI SPI3 (ARD & WIFI)

136 PB6 ARD_D4_INT ARD_INT_6

137 PB7 DFSDM2_DATIN7 ST-MEMS microphones

Table 14. 32F413HDISCOVERY I/O assignment (continued)

Pin No. Pin Name Signal or Label Feature / Comment

Page 33: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 33/50

UM2135 32F413HDISCOVERY I/O assignment

49

138 BOOT0 BOOT0 BOOT

139 PB8 ARD_D9_PWM ARD_TIM4_CH3

140 PB9 CODEC_I2S_WS AUDIO_I2S2

141 PE0 PSRAM_NBL0 PSRAM

142 PE1 PSRAM_NBL1 PSRAM

143 PDR_ON PDR_ON PDR

144 VDD_3 VDD_3 3.3 V

Table 14. 32F413HDISCOVERY I/O assignment (continued)

Pin No. Pin Name Signal or Label Feature / Comment

Page 34: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Schematics UM2135

34/50 DocID029965 Rev 1

Appendix B Schematics

This section provides the design schematics for the 32F413HDISCOVERY Discovery kit:

• Overall schematics for the 32F413HDISCOVERY, see Figure 22

• 32F413HDISCOVERY MCU, see Figure 23

• PSRAM, see Figure 24

• Quad-SPI, see Figure 25

• Audio, see Figure 26

• LCD, see Figure 27

• USB OTG FS, see Figure 28

• Peripherals, see Figure 29

• Arduino Uno V3 connector, see Figure 30

• ST-LINK with support of SWD only, see Figure 31

• Power, see Figure 32

Page 35: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

UM

21

35S

chem

atics

DocID

029965 R

ev 1

35/50

Figure 22. Top

1 11

MB1274-TOP

MB1274 D-01

12/19/2016

Title:

Size: Reference:

Date: Sheet: of

A3 Revision:

STM32F413H-DISCOProject:

PSRAM_A[0..17]

LCD-PSRAM_D[0..15]

NRST

QSPI_BK1_IO3QSPI_BK1_IO2

QSPI_BK1_IO0QSPI_BK1_IO1

QSPI_CLKQSPI_BK1_NCS

USB_OTG_FS_OVRCRUSB_OTG_FS_PWR_EN

B_USER

STLK_MCO

CODEC_INT

LCD_TE

LCD_BL_CTRL

PSRAM_A[0..17]

LCD-PSRAM_D[0..15]

LCD-PSRAM_NWELCD-PSRAM_NOE

PSRAM_NE1

PSRAM_NBL0PSRAM_NBL1

LCD_NE3

LCD-CTP_RST

CTP_INT

LED1_REDLED2_GREEN

USB_OTG_FS_VBUSUSB_OTG_FS_ID

I2CFMP1_SDAI2CFMP1_SCL

USB_OTG_FS_NUSB_OTG_FS_P

STLINK_JTMS_SWDIOSTLINK_JTCK_SWCLK

STLINK_JTDO-SWO

LCD-RS_A0

SD_D2

WIFI_SPI_CSN

DFSDM2_DATIN7

WIFI_DRDY

SD_D3

SD_CLK

DFSDM1_DATIN1

DFSDM2_DATIN1

DFSDM1_CKOUT

SD_DetectSD_CMD

SD_D0SD_D1

DFSDM2_CKOUT

CODEC_WSCODEC_CK

CODEC_SDCODEC_MCK

CODEC_ext_SD ARD_A[0..5]

ARD_D[0..15]

VCP_TXVCP_RX

WIFI_WKUP

MEMS_LED

WIFI_RST

U_00_MCU00_MCU.SchDoc

PSRAM_A[0..17]

LCD-PSRAM_D[0..15]

LCD-PSRAM_NWELCD-PSRAM_NOE

PSRAM_NE1

PSRAM_NBL0PSRAM_NBL1

U_01_PSRAM01_PSRAM.SchDoc

QSPI_BK1_IO0

QSPI_BK1_IO2QSPI_BK1_IO1

QSPI_BK1_IO3

QSPI_CLKQSPI_BK1_NCS

U_02_QSPI02_QSPI.SchDoc

LCD_BL_CTRL

CTP_INT

LCD_TE

LCD-CTP_RST

LCD_NE3

LCD-PSRAM_D[0..15]

LCD-PSRAM_NWELCD-PSRAM_NOE

LCD-RS_A0

I2CFMP1_SDAI2CFMP1_SCL

U_04_LCD04_LCD.SchDoc

CODEC_INT

I2CFMP1_SCLI2CFMP1_SDA

DFSDM1_DATIN1DFSDM1_CKOUT

DFSDM2_CKOUTDFSDM2_DATIN1DFSDM2_DATIN7

CODEC_CKCODEC_WS

CODEC_SDCODEC_ext_SD

CODEC_MCK

MEMS_LED

U_03_Audio03_Audio.SchDoc

USB_OTG_FS_VBUSUSB_OTG_FS_ID

USB_OTG_FS_PWR_ENUSB_OTG_FS_OVRCR

USB_OTG_FS_NUSB_OTG_FS_P

U_05_USB_OTG_FS05_USB_OTG_FS.SchDoc

LED1_REDLED2_GREEN

NRST

B_USER

SD_CLKSD_CMD

SD_D0SD_D1SD_D2SD_D3

SD_Detect

WIFI_SPI_CSNWIFI_DRDY

WIFI_RST

WIFI_WKUP

ARD_D11ARD_D12ARD_D13

U_06_Peripherals06_Peripherals.SchDoc

NRST

ARD_A[0..5]

ARD_D[0..15]

U_07_Arduino_ Connectors07_Arduino_ Connectors.SchDoc

NRST

NRST

NRST

NRST

Note: Text in BLUE placed on a wire is not the net name. It just aCOMMENT to give more details about the function, or it is the MCUport information.

REVISION D01Add U21 for USB_VBUS ESD protection.

REVISION C01:Released 22 - November- 2016- USB ESD: U19 update (rotation).

REVISION B01:Released 05 - October- 2016- Update WIFI module with new reference- Update IO assignment for PA0, PC0, PC1 and PC13.- Update USB ESD protection.- LD2: Correction of LD2, LD2 was mirrored on revA- HW5: Update Capacitive touch Panel to rev B instead of revision A

REVISION A01Released : 09 - June - 2016- First version

PCB

HW1

STM32F413H-DISCO PCB 4L

BLISTER

HW2

STM32F413H-DISCO BLISTER

BLISTER CARD

HW3

STM32F413H-DISCO BLISTER CARD

HW PART

NRST

STLINK_JTDO-SWO

STLK_MCOSTLINK_JTMS_SWDIOSTLINK_JTCK_SWCLK

VCP_RXVCP_TX

U_08_ST_LINK_V2-108_ST_LINK_V2-1.SCHDOC

U_09_Power09_Power.SchDoc

H3 H1

H2 H4

HW8

Spacer 14mm

HW9

Spacer 14mm

HW10

Spacer 14mm

HW11

Spacer 14mm

HW7

Plastic Screw M3x6mm

HW6

Plastic Screw M3x6mm

HW13

Plastic Screw M3x6mm

HW12

Plastic Screw M3x6mm

ARD_D11ARD_D12ARD_D13

ARD_D[0..15]

mb1274 B-01Serial Number

HW17ES

HW18

Page 36: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Sc

he

ma

tics

UM

213

5

36/5

0D

ocID029

965 Re

v 1

Figure 23. MCU

2 11

MCU

MB1274 D-01

12/16/2016

Title:

Size: Reference:

Date: Sheet: of

A3 Revision:

STM32F413H-DISCOProject:

SD_D0SD_D1SD_D2SD_D3

SD_CLK

LCD-PSRAM_D13LCD-PSRAM_D14LCD-PSRAM_D15

SD_CMD

LCD-PSRAM_D4LCD-PSRAM_D5LCD-PSRAM_D6LCD-PSRAM_D7LCD-PSRAM_D8LCD-PSRAM_D9LCD-PSRAM_D10LCD-PSRAM_D11LCD-PSRAM_D12

NRST

BOOT0

VDD_MCU

VREF+

VDD_MCU

Ceramic capacitor (Low ESR)

VDD_MCU

VDD_MCU VDD_MCU

3V3 3V3

VDD_USB33

QSPI_BK1_IO3

CODEC_WS

QSPI_BK1_IO2

QSPI_BK1_IO0QSPI_BK1_IO1

SD_Detect

QSPI_CLK

CODEC_CKCODEC_SDCODEC_MCK

QSPI_BK1_NCSUSB_OTG_FS_OVRCR

USB_OTG_FS_PWR_EN

VCP_TX

VCP_RX

B_USER

STLK_MCO

One 100nF placed close to each VDD_x pin of MCU

CODEC_ext_SD

CODEC_INTLCD_TE

LCD_BL_CTRL

Close to MCU

Close to MCU

PDR ON by default

VDD_MCU

INTERRUPTION SOURCES

EXT_IT_0: User Wake-Up Button connected to PA0-WKUP1EXT_IT_1: Capacitive Touch Panel: CTP_INT connected to PC1: (WKUP3)EXT_IT_6: ARD_INT connected to PB6EXT_IT_7: USB Overcurrent: USB_OTG_FS_OVRCR connected to PG7:EXT_IT_11: MicroSD detection: uSD_Detect connected to PF11:EXT_IT_12: WIFI DATA RDY connected to PG12EXT_IT_14: LCD Tearing Effect: LCD_TE connected to PB14:EXT_IT_15: Audio CODEC interruption: CODEC_INT connected to PG15:

OSC32_IN

OSC32_OUT

PH0-OSC_IN

PH1-OSC_OUTPDR_ON

PSRAM_A[0..17]

LCD-PSRAM_D[0..15]

LCD-PSRAM_NWELCD-PSRAM_NOE

PSRAM_NE1

PSRAM_NBL0PSRAM_NBL1

PSRAM_A[0..17]

LCD-PSRAM_D[0..15]

LCD-PSRAM_D0LCD-PSRAM_D1

LCD-PSRAM_D2LCD-PSRAM_D3

PSRAM_A0PSRAM_A1PSRAM_A2PSRAM_A3PSRAM_A4PSRAM_A5

PSRAM_A6PSRAM_A7PSRAM_A8PSRAM_A9

PSRAM_A10PSRAM_A11PSRAM_A12PSRAM_A13PSRAM_A14PSRAM_A15

PSRAM_A16PSRAM_A17

LCD_NE3

LCD-CTP_RST

I2C2_PULL-UP

ARD_D15

ARD_D14

3V3

DECOUPLING CAPACITORS

EXT_IT_1 CTP_INT

EXT_IT_7

EXT_IT_15

EXT_IT_11

MCU GPIO BANK D, E, F, G

STLK_MCO

MCU PWR

I2CFMP1_SDAI2CFMP1_SCL

X3NX3215SA-32.768K

R1042K7

R1022K7

R562K7

R572K7

C54100nF

C53100nF

C59100nF

C61100nF

C63100nF

C65100nF

C67100nF

C66100nF

C62100nF

C60100nF

C56100nF

C554.7uF

I2CFMP1_SCL

I2CFMP1_SDA

FCM1608KF-601T03

L1

100uH C491uF

C52100nF

C68100nF

C481uF

C701uF

C51100nF

C692.2uF

C642.2uF

R5156R

32.768KHz CLOCK

8MHz CLOCK

MCU GPIO BANK A, B, C, and SYSTEM

DFSDM2_CKOUT

3V3

Fitted: NO

R5410K

VDDA

LED1_RED

LED2_GREEN

USB_OTG_FS_VBUSUSB_OTG_FS_ID

I2CFMP1_SDAI2CFMP1_SCL I2CFMP1 shared between

Audio Codec and touch screenDFSDM1_DATIN1

DFSDM1_CKOUT

I2CFMP1_PULL-UP

USB_OTG_FS_NUSB_OTG_FS_P

STLINK_JTMS_SWDIOSTLINK_JTCK_SWCLK

STLINK_JTDO-SWO

LCD-RS_A0

R5510K

R5210K

Fitted: NO

R5310K

R48 0R

R47 0R

Fitted: NOR45 0R

Fitted: NOR44 0R

Fitted: NO

C44 8.2pF

Fitted: NO

C43 8.2pF

PH0-OSC_IN 23

PH1-OSC_OUT 24

NRST25

PA0-WKUP134

PA135

PA236

PA337

PA440

PA541

PA642

PA743

PB046

PB147

PB2-BOOT148

PB1069

PB1170

PB1273

PB1374

PB1475

PB1576

PA8100

PA9101

PA10102

PA11103

PA12104

PA13105

PA14109

PA15110

PB3133

PB4134

PB5135

PB6136

PB7137

BOOT0138

PB8139

PB9140

PC13-ANTI_TAMP 7

PC14-OSC32_IN 8

PC15-OSC32_OUT 9

PC0 26

PC1 27

PC2 28

PC3 29

PC4 44

PC5 45

PC6 96

PC7 97

PC8 98

PC9 99

PC10 111

PC11 112

PC12 113

PDR_ON143

U13A

STM32F413H

PE21

PE32

PE43

PE54

PE65

PE758

PE859

PE960

PE1063

PE1164

PE1265

PE1366

PE1467

PE1568

PD877

PD978

PD1079

PD1180

PD1281

PD1382

PD1485

PD1586

PD0114

PD1115

PD2116

PD3117

PD4118

PD5119

PD6122

PD7123

PE0141

PE1142

PF2 12

PF3 13

PF4 14

PF5 15

PF6 18

PF7 19

PF8 20

PF9 21

PF10 22

PF11 49

PF12 50

PF13 53

PF14 54

PF15 55

PF0 10

PF1 11

PG2 87

PG3 88

PG4 89

PG5 90

PG6 91

PG7 92

PG8 93

PG9 124

PG10 125

PG11 126

PG12 127

PG13 128

PG14 129

PG15 132

PG0 56

PG1 57

U13B

STM32F413H

Fitted: NO

12

X2NX3225GD-8.00M

VBAT 6

VSS_5 16VDD_517

VSSA_VREF- 31

VDD_1230

VREF+32

VDDA33

VSS_4 38

VDD_439

VCAP1 71

VDD_172

VSS_2 107

VDD_2108

VDD_3144

VDD_10121

VDD_USB95

VDD_652

VDD_762

VDD_884

VDD_11131

VSS_10 120

VSS_9 94

VSS_6 51

VSS_7 61

VSS_8 83

VSS_11 130

VCAP2 106

U13C

STM32F413H

R58

0R_0603

VDD_MCU

R43

0R_0603

C50100nF

R46

0R

R50 0R

Should be place closed to the MCU

C47 5.1pF

C46 5.1pF

WIFI_WKUP

DFSDM2_DATIN1

DFSDM2_DATIN7

WIFI_DRDYWIFI_SPI_CSN

WIFI_RST

ARD_A[0..5] ARD_A[0..5]

ARD_A0ARD_A1ARD_A2

ARD_A3

ARD_A4

ARD_A5

ARD_D[0..15] ARD_D[0..15]

ARD_D6

ARD_D12ARD_D11ARD_D4

ARD_D9

ARD_D15ARD_D14ARD_D13

ARD_D7

ARD_D8

ARD_D2

ARD_D0ARD_D1

ARD_D3

ARD_D5

ARD_D10

EXT_IT_0 / WKUP1

MEMS_LED

NRST

R49 0R

Page 37: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

UM

21

35S

chem

atics

DocID

029965 R

ev 1

37/50

Figure 24. PSRAM

3 11

PSRAM

MB1274 D-01

12/16/2016

Title:

Size: Reference:

Date: Sheet: of

A4 Revision:

STM32F413H-DISCOProject:

LCD-PSRAM_D[0..15]

PSRAM_A[0..17]

PSRAM

3V3

3V3

Place close to PSRAM

PSRAM_A0PSRAM_A1PSRAM_A2PSRAM_A3PSRAM_A4PSRAM_A5PSRAM_A6PSRAM_A7PSRAM_A8PSRAM_A9PSRAM_A10PSRAM_A11PSRAM_A12PSRAM_A13PSRAM_A14PSRAM_A15PSRAM_A16PSRAM_A17

PSRAM_A[0..17]

LCD-PSRAM_D[0..15]

LCD-PSRAM_NWELCD-PSRAM_NOE

PSRAM_NE1

PSRAM_NBL0PSRAM_NBL1

R6010K

R59 0R

R61 0R C72100nF

C71100nF

LCD-PSRAM_D0LCD-PSRAM_D1LCD-PSRAM_D2LCD-PSRAM_D3LCD-PSRAM_D4LCD-PSRAM_D5LCD-PSRAM_D6LCD-PSRAM_D7LCD-PSRAM_D8LCD-PSRAM_D9LCD-PSRAM_D10LCD-PSRAM_D11LCD-PSRAM_D12LCD-PSRAM_D13LCD-PSRAM_D14LCD-PSRAM_D15

iPSRAM_DMatched Net Lengths [Tolerance = 5mm]Impedance Constraint [Min = 40.00 Max = 60.00 ]

iPSRAM_AMatched Net Lengths [Tolerance = 5mm]Impedance Constraint [Min = 40.00 Max = 60.00 ]

iPSRAM_A

iPSRAM_A i

PSRAM_Ai

PSRAM_A

iPSRAM_A

PSRAM Data, NWE & NOE shared with LCD

PD7

PD5PD4PE0PE1

A4B4

A3B3

A2A5

A1A4

A0A3

CS1B5

I/O0 B6I/O1 C5I/O2 C6I/O3 D5

VDD D6

GND D1

I/O4 E5I/O5 F5I/O6 F6I/O7 G6

WEG5

A16E4

A15F4

A14F3

A13G4

A12G3

A11H5

A10H4

A9H3

A8H2

I/O8 B1I/O9 C1I/O10 C2I/O11 D2

VDD E1

I/O12 E2I/O13 F2I/O14 F1I/O15 G1

LBA1

UBB2

OEA2

A7D4

A6C4

A5C3

A17D3 A18H1

GND E6

NCG2

CS2A6

NCH6

NC E3

U14

IS66WV51216EBLL-55BLI

R6210K

Page 38: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Sc

he

ma

tics

UM

213

5

38/5

0D

ocID029

965 Re

v 1

Figure 25. Quad-SPI

4 11

QSPI

MB1274 D-01

12/16/2016

Title:

Size: Reference:

Date: Sheet: of

A4 Revision:

STM32F413H-DISCOProject:

QSPI_BK1_IO0

QSPI_BK1_IO2QSPI_BK1_IO1

QSPI_BK1_IO3

3V3

QSPI_CLKQSPI_BK1_NCS

Exposed central pad should not be connected to any voltage on PCB

3V3

3V3Optional PU and PD to set PB2 when use in BOOT1 alternate function

R3110K

C28100nF

QSPI

iQSPI

Matched Net Lengths [Tolerance = 5mm]

iQSPI

iQSPI

iQSPI

iQSPI

iQSPI

DQ3/HOLD#7

VCC 8S#1

DQ12

C6

DQ05

VSS 4DQ2/Vpp/W#3

DQ3/HOLD#

VCCS#

DQ1

C

DQ0

VSSDQ2/Vpp/W#

U9

N25Q128A13EF840F

Fitted: NOR21 10K

Fitted: NOR20 10K

PG6PB2

PF8PF9PE2PD13

QSPI_CLKTP4

QSPI_BK1_IO0TP3

QSPI_BK1_IO1TP6

Page 39: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

UM

21

35S

chem

atics

DocID

029965 R

ev 1

39/50

Figure 26. Audio

5 11

Audio

MB1274 D-01

12/16/2016

Title:

Size: Reference:

Date: Sheet: of

A3 Revision:

STM32F413H-DISCOProject:

CODEC_CK

ADCDAT1F2

ADCLRCLK1/GPIO1G3

AGND D6

CPVDDG9

CPVOUTN H7

CPVOUTP G7

CS/ADDR G2

DACDAT1E4

CPGND H9

DCVDDF1

DBVDDD2 DGND E2

CPCB H8

AVDD1D9

BCLK1G1

CIFMODE A4

CPCA G8

DMICCLKC6

AGND E7

AGND E8

AVDD2D8

GPIO2/MCLK2 E1

GPIO3/BCLK2H2

GPIO4/LRCLK2F4

GPIO5/DACDAT2H3

GPIO6/ADCLRCLK2G4 GPIO7/ADCDAT2E5

GPIO8/DACDAT3H4

GPIO9/ADCDAT3F5

GPIO10/LRCLK3H5 GPIO11/BCLK3F6

HP2GND F7

HPOUT1FB G5

HPOUT1L H6HPOUT1R G6

HPOUT2N F9

HPOUT2P F8

IN1LND7 IN1LPC8

IN1RNB7 IN1RPC7

IN2LN/DMICDAT1B9 IN2LP/VRXNB8

IN2RN/DMICDAT2A9 IN2RP/VRXPA8

LDO1ENAD4

LDO1VDDE9

LDO2ENAD5

LDO2VDDD1

LINEOUT1N C5

LINEOUT1P B5

LINEOUT2N C4

LINEOUT2P B4

LINEOUTFB A6

LRCLK1E3

MCLK1 D3

MICBIAS1 A7

MICBIAS2 B6

REFGND A5

SCLK H1SDA F3

SPKGND1 A1

SPKGND2 C1

SPKMODE A3

SPKOUTLN B1

SPKOUTLP A2

SPKOUTRN C3

SPKOUTRP B3

SPKVDD1B2

SPKVDD2C2

VMIDC C9

VREFCE6

U11

WM8994ECS/R

1V8

3V3

CODEC_WSCODEC_SD

CODEC_INT

CODEC_MCK

3V3

3V3

3V3

Operating range: 1.62<VDD<3.6V

GND

21mm distance between a pair of microphones

CODEC_ext_SD

DFSDM1_DATIN1

1V83V3

DMIC1_DFSDM1_CKOUTDMIC1_DFSDM1_DATIN1

DMIC1_DFSDM1_DATIN1

DFSDM1_CKOUT

DMIC1_DFSDM1_CKOUT

SPEAKER OUT RIGHT

CODEC PWR 1V8 / 150mACODEC WOLFSON

MEMS

R23 0R_0603R28 0R_0603R33 0R_0603R22 0R_0603R29 0R_0603

R26 0R_0603

R39 2K2

R12 0R_0603

C4510nF

WM8994 I2C Address : 0011 0100

3V3

21mm distance between a pair of microphones

51

2

GND3

4

BYPASSINH

Vin Vout

U12 LD3985M18R

C35

100nF

C24

4.7uF

C25

100nF

C82

100nF

C26

100nF

I2CFMP1_SDAI2CFMP1_SCL

Fitted: NOR25 0R_0603

HP_OUT_L

HP_OUT_RMIC_IN

C38 4.7uF

C37

4.7uF

C394.7uF

C324.7uF

C22 1uF

C23

1uFC41 1uF

C34 1uF

C29100nF

C31100nF

C1 100nF

C2 100nF

C80 100nF

C79 100nF

C36 2.2uF

C40 2.2uF

C33 2.2uF

R30 10K

R1 10K

R80 10K

R3220R

R3520R

Fitted: NO

GND3

LR 2

CLK 4VDD5

DOUT 1

U1

MP23DB01MMTR

Fitted: NO

GND3

LR 2

CLK 4VDD5

DOUT 1

U2

MP23DB01MMTR

GND5

LR 2

CLK 3VDD1

DOUT 4

U17

MP34DT01TR-M

GND5

LR 2

CLK 3VDD1

DOUT 4

U16

MP34DT01TR-M

PC6PC7

PG15

PA3

PD3PB9PC3PC2

PA8

PD6

SPEAKER OUT LEFT

Extension microphones module

DMIC1_DFSDM1_CKOUT

DMIC1_DFSDM1_DATIN1

Microphone switch

EXT_DFSDM1_CKOUT

EXT_DFSDM1_DATIN1

EXT_DFSDM1_CKOUTEXT_DFSDM1_DATIN1

DFSDM2_CKOUT PD2

DFSDM2_DATIN1 PA7

DFSDM2_DATIN7

DETECTn 3V3

3V3

PB7

COM114

COM22

IN1-216

COM36

COM410

NC1 15NO1 13

NC2 3NO2 1

NC3 7NO3 5

NC4 11NO4 9

VCC12 GND 4

IN3-48

U8

TS3A44159PWRR1310K

C161uF

3V3

NC = Normally Closed / NO Normally Open

IN = L => COM TO NC / NC TO COM (NO OFF)IN = H =>COM TO NO / NO TO COM (NC OFF)

DETECTn

Fitted: NO

12

CN3

Fitted: NO

12

CN4

20021311-00020T4LF

135791113151719

2468

101214161820

CN12

Receptacle 10X2 TH VT 1.27mm

CODEC_CKTP14

CODEC_WSTP11

CODEC_SDTP7

CODEC_INTTP8

CODEC_ext_SDTP5

TP16TP1

TP10

DFSDM1_CKOUTTP2

DFSDM1_DATIN1TP13

DFSDM2_CKOUTTP15

DFSDM2_DATIN1TP12

Receptacle connector pin 1 connected toheader connector pin 2

DFSDM2_DATIN7TP9

DMIC2_DFSDM2_CKOUT

DMIC2_DFSDM2_CKOUT

DMIC2_DFSDM2_DATIN1

DMIC2_DFSDM2_DATIN1

DMIC2_DFSDM2_CKOUT

DMIC2_DFSDM2_DATIN1

EXT_DFSDM2_CKOUT

EXT_DFSDM2_DATIN1

EXT_DFSDM2_CKOUTEXT_DFSDM2_DATIN1

MEMS_LEDPE4

. . .. .HW16

mb1299_A02

2

6

4

3

PJ3028B-3_4P

CN5

Page 40: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Sc

he

ma

tics

UM

213

5

40/5

0D

ocID029

965 Re

v 1

Figure 27. LCD

6 11

LCD

MB1274 D-01

12/16/2016

Title:

Size: Reference:

Date: Sheet: of

A3 Revision:

STM32F413H-DISCOProject:

LCD_BL_CTRL

BLGND

BLGNDBLGND

BLGND

VL

Backlight driver & PFC connector for LCD panel

BLGND

5V

LCD-PSRAM_D8LCD-PSRAM_D7 LCD-PSRAM_D6LCD-PSRAM_D5 LCD-PSRAM_D4LCD-PSRAM_D3LCD-PSRAM_D1 LCD-PSRAM_D0

LCD-CTP_RST

LEDALEDK

LCD_NE3LCD-PSRAM_NWELCD-PSRAM_NOE

3V3 3V3

Common mode supply filter

LEDA

LEDK

Backlight control: ON/OFF or dimmer by low frequency (1 to 10kHz typ.)

current regulated at 15mA

Layout: parts close to STLD40D and grouped in same area with BLGND as local ground plane

BLGND

3V3

3V3

I2C max clock: 400kHz

CTP_INT

GND1 FMARK 2

DB153 DB14 4

DB135 DB12 6

DB117 DB10 8

DB99 DB8 10

DB711 DB6 12

DB513 DB4 14

DB315 DB2 16

DB117 DB0 18

/RD19 /WR 20

RS21 /CS 22

RESET23 IM 24

IOVCC25 VCI 26

GND27 LEDA 28

LEDK29

CN16

FH26-29S-0.3SHW

LCD-PSRAM_D9LCD-PSRAM_D10LCD-PSRAM_D11LCD-PSRAM_D12LCD-PSRAM_D13LCD-PSRAM_D14LCD-PSRAM_D15

Top side: layout of CN16

1

29

LCD FRIDA FRD154BP2901

FPC

CN

16

HW4

FRIDA LCD FRD154BP2902

HW5

CTP LS015GF614A

LCD_TELCD_TE

LCD-CTP_RSTLCD_NE3

3V3

Capacitive Touch Panel

240x240 pixels TFT LCD

pixel (0,0) * X

Y

*: standard orientation. Rotations by 90, 180, 270 degrees possible by registers.

3V3

3V3

SB41 open and SB42 closed = IM high: LCD in 16bits modeSB41 closed and SB42 opened = IM low : LCD in 8bits mode

VDD_MCU operating voltage range: 3V0 to 3V6

LCD-PSRAM_D0 LCD-PSRAM_D1LCD-PSRAM_D2LCD-PSRAM_D3

LCD-PSRAM_D4 LCD-PSRAM_D5LCD-PSRAM_D6 LCD-PSRAM_D7

LCD-PSRAM_D9LCD-PSRAM_D10 LCD-PSRAM_D11LCD-PSRAM_D12

LCD-PSRAM_D8

LCD-PSRAM_D13LCD-PSRAM_D14 LCD-PSRAM_D15

LCD_TE LCD-CTP_RST

LCD-RS_A0LCD-PSRAM_NWE

LCD-PSRAM_NOELCD_NE3

LCD_BL_CTRL

GND

3V3

LCD signals access (2mm pitch)

LCD-PSRAM_D[0..15]

LCD-PSRAM_NWE

LCD-PSRAM_D[0..15]

LCD-PSRAM_D2

LCD-RS_A0

PWM using TIM9_CH1

LCD RST and CTP RST share the same PIO for RST. Active LOW

FRIDA LCD

LCD Backlight

LCD-PSRAM_NOE

Solder: NOSB23

Solder: YESSB22

R105100K

R103100K

Fitted: NO

R88100K

C81

100nF

FCM1608KF-601T03Fitted: NOL8 100uH

FCM1608KF-601T03

L6 100uH

FCM1608KF-601T03

L5 100uH

C87100nF

FCM1608KF-601T03

L7 100uH

C89100nF

C854.7uF

C8610nF

L4

4.7uH 1A 180R

FCM1608KF-601T03

L2 100uH

R98100K

D5

STPS1L40M

Vi1

Rset 2GND3 FB 4

NC 5Vo 6

EN7

SW8

PGND9

U18

STLD40DPUR R100100K

R10110R

C844.7uF

C8310nF

FCM1608KF-601T03

L3 100uH

BLGND

LCD-RS_A0

3V3

LCD-CTP_RST

LCD_BL_CTRL

I2CFMP1_SDAI2CFMP1_SCL

PB14

Fitted: NO

R99100K

C8810uF

PD4PF0PB13

PD5PG10

PC1

PC6PC7

PE5

Fitted: NO

135791113151719

2468

101214161820

212325

222426

CN15

TMMH-113-01-F-DV

Solder: YESSB14Solder: NOSB13

3V3

To support CTP rev A- CN4 PIN8 should be connected to GNDto support CTP rev B- CN4 PIN8 shoud be conencted to IOVCC

GND10

VDD9

GND8

RESET7

GND6

GND 1

INT 2

GND 3

SDA 4

SCL 5

CN10

DF37NB-10DS-0.4V (5x)

Page 41: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

UM

21

35S

chem

atics

DocID

029965 R

ev 1

41/50

Figure 28. USB OTG FS

7 11

USB_OTG_FS

MB1274 D-01

12/16/2016

Title:

Size: Reference:

Date: Sheet: of

A4 Revision:

STM32F413H-DISCOProject:

5V

3V3

USB_OTG_FS_VBUS

5V_USB_FS

USB_OTG_FS_N

USB_OTG_FS_P

USB_OTG_FS_ID

USB_OTG_FS_PWR_EN

3V3

USB Full Speed operating range voltage: 3.0V<VDDUSB<3.6V

GND2

IN5

EN4 OUT 1FAULT 3U15

STMPS2141STROpen Drain

R6447K

R6647K

C764.7uF

LD8

LED, Red, 0603

R63

0R

VBUS1

DM2

DP3

ID4

GND5

Shield6

USB

_Mic

ro-A

Bre

cept

acle

Shield7

Shield8

Shield9

EXP10

CN17

475900001

3

1

2

T39013-SOT23

LD7

LED, Green, 0603

R107

330R

R69

47K

R70100K

R670R_0603

VBUS OK LED

USB_OTG_FS

3V3

USB_OTG_FS_OVRCR EXT_IT_7 R65

0R

3V3

VBUS OVRCR LED

VBUS_OVRCR

R108

1K

ESD PROTECTION SHOULD BE CLOSE TO THE CONNECTOR

PG7

PG8

PA9

PA11

PA12

PA10

12

U20ESDALC6V1-1U2

IO23 GND2 IO11 IO_1 6

VBUS 5

IO_2 4

U19

USBLC6-2P6

12

U21ESDA7P60-1U1M

USB_NUSB_P

Page 42: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Sc

he

ma

tics

UM

213

5

42/5

0D

ocID029

965 Re

v 1

Figure 29. Peripherals

8 11

Peripherals

MB1274 D-01

12/16/2016

Title:

Size: Reference:

Date: Sheet: of

A4 Revision:

STM32F413H-DISCOProject:

MICRO SD CARD

SD_CLK

SD_CMD

SD_D0SD_D1

SD_D2SD_D3

SD_Detect

LED1_RED

LED2_GREEN

NRST

The 2 LEDs are top side

3V33V3

3V3

USER LEDRESET BUTTONUSER WAKE-UP Button

B_USER

3V3

Solder: YESld

SB7

Solder: YESld

SB6

C57100nF

C58100nF

R109100K

R79

0R_0603

R8147K

R8247K

R8347K

R8447K

R8547K

12345678

SW2 9

SW1 10

CN1

PJS008-2003-1

LD3

LED, Green, 0603

LD4

LED, Red, 0603

R94

1K

PC10PC11PA6

PC12

PC8PC9

PF11

PA0

PE3

PC5C9010pF

C7810pF

R106

1K

R73

1K

100nF should be place close to the MCU10pF and 1K should be place close to the button

100nF should be place close to the MCU10pF and 1K should be place close to the button

WIFI MODULE

R93

330R

PERIPHERALS

PG12PG11

WIFI_RST PB15

R7410K

R7110K

3V3

R7510K

Fitted: NOR78 10K

Fitted: NOR77 10K

Fitted: NO

R7210K

TDO 7

GN

D1

VD

D2

TDI 6

TCK 5

GN

D3

TDO

GN

D

VD

D

TDITCK

GN

D

TMS 4

TRSTN 8

GPIO0 23

CFG129 CFG028

GN

D35

GPIO4 27

GPIO3 26

GPIO2 25

GPIO1 24

ADC1/SSN12 ADC2/SCK11 ADC3/MISO10 ADC4/MOSI9

ADC0/DATARDY13

GN

D17

WKUP16

VB

AT

15

VD

D14

DP18

RX21

GN

D20

DM19

TX22

BOOT033

RES 32

RES 31

RES 30

RSTN34

GN

D40

GN

D38

GN

D37

GN

D36

GN

D39

GN

D43

GN

D42

GN

D41

GN

D44

M1

ISM43362-M3G-L44-E-SPI-Cxx

TP21 TRSTNTP18 TDOTP17 TDITP19 TCKTP20 TMS

C77 100nFC75 100nF

C74 2.2uFC73 2.2uF

3V3

3V3

3V3

Fitted: NO

R7610K

Solder: NOSB11Solder: NOSB12

WIFI_SPI_CSNWIFI_DRDY

R68

47K

Solder: YESSB8Solder: YESSB9

PG11 and PG12 can be use asUART for debug purpose.

WIFI_WKUP

PH1

SPI3_MOSIPB5PB4PB12 SPI3_SCK

SPI3_MISOARD_D12ARD_D11

ARD_D13

UART/SPI interface selectionUART: CFG0 = CFG1 = 1 (PU)SPI: CFG0 = 1 (PU) / CFG1 = 0 (PD)

134

2

B2

BLACK_CMS_BUTTON

134

2

B1

BLUE_CMS_BUTTON

Solder: NOSB10

NRST

NRST

TP22WIFI_BOOT0

Page 43: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

UM

21

35S

chem

atics

DocID

029965 R

ev 1

43/50

Figure 30. Arduino Uno V3 connector

9 11

Arduino Uno connector

MB1274 D-01

12/16/2016

Title:

Size: Reference:

Date: Sheet: of

A4 Revision:

STM32F413H-DISCOProject:

ARDUINO UNO connector

A0A1A2A3A4A5

RX/D0TX/D1D2

D4PWM/D3

PWM/D5PWM/D6

D7

D8PWM/D9

PWM/CS/D10

SDA/D14SCL/D15

VIN

NRSTSCK/D13MISO/D12

PWM/MOSI/D11

AVDDGND

VREF+

ADC1_IN5ADC1_IN2ADC1_IN1ADC1_IN10

USART7_RXUSART7_TX

TIM5_CH4

TIM9_CH2

TIM4_CH3TIM2_CH1, SPI3_NSSTIM3_CH2, SPI3_MOSI

IOREFNRST3V35VGNDGNDVIN PO

WER

AIN

TIM3_CH3

R96

510R

Solder: YESSB5

3V35V

SDA/D14

SCL/D15

ADC1_IN9

ADC1_IN14

123456

CN9

BL 1-6 G

12345678

CN7

BL 1-8 G

123456789

10

CN6

BL 1-10 G

12345678

CN8

BL 1-8 G

WARNING voltage applied to VIN <11.5V

EXT_IT_6

Fitted: NO

C42100nF

Solder: YESSB19

Solder: YESSB21

Solder: NOSB24

Solder: NOSB20ARD_D14

ARD_D15

R40 0R

5V_ARD

NRST

PC0PA1PA2PA5

PB1

PC4

PB10PB11

PF6PF7PG13PF10PB6PE6PB0PC13

PA4PB8PA15PB5PB4PB12

ARD_D15ARD_D14

IO

IO

IO

R95

1K

ARD_A[0..5] ARD_A[0..5]

ARD_A0ARD_A1ARD_A2ARD_A3

ARD_A4

ARD_A5

ARD_D[0..15] ARD_D[0..15]

ARD_D0ARD_D1ARD_D2ARD_D3ARD_D4ARD_D5ARD_D6ARD_D7

ARD_D8ARD_D9ARD_D10ARD_D11ARD_D12ARD_D13SPI3_SCK

SPI3_MISO

I2C_SCLI2C_SDA

(DAC1_OUT available)

(DAC2_OUT available)

3V3

3

1

2

T29013-SOT23

LD5

LED, Green, 0603

R42 47K

R41100K

Page 44: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Sc

he

ma

tics

UM

213

5

44/5

0D

ocID029

965 Re

v 1

Figure 31. ST-LINK with support of SWD only

10 11

ST-LINK/V2-1 with support of SWD only

MB1274 D-01

12/16/2016

Title:

Size: Reference:

Date: Sheet: of

A4 Revision:

STM32F413H-DISCOProject:

STM_RST

T_JT

CK

T_JTCKT_JTMS

STM_JTMS

STM_JTCK

OSC_INOSC_OUT

T_N

RST

AIN_1

3V3_ST_LINK

3V3_ST_LINK

USB_STLK_NUSB_STLK_P

ST-LINK USB CONNECTOR STLINK_LED

ST-LINK POWER 3V3 / 150mA

3V3_ST_LINK

Board Ident: PC13=0

T_JTCKT_JTMS

SWD INTERFACE

3V3_ST_LINK

Fitted: NO

1 2 3 4

CN14 Header 4 pins

STM_JTMSSTM_JTCKSWCLK SWDIO

3V3_ST_LINK

T_SWDIO_IN

T_SWOLED_STLINK

LED_STLINK

3V3_ST_LINK

Red

_Green

21

34

LD2

LD_BICOLOR_CMS

NRSTT_NRST

51

2

GND3

4

BYPASSINH

Vin Vout

U7 LD3985M33R

VCP_RX

VCP_TX

STLINK_TX

STLINK_RX

3V3_ST_LINK

USB_RENUMn

PWR

_EXT

PWR_ENn

3

1

2

T19013-SOT23

3V3_ST_LINK

USB_RENUMn

PWR_ENn

3V3_ST_LINK

3V3_ST_LINK

3V3_ST_LINK

VBAT1

PA7

17

PC132

PA12 33PC143

PB0

18

PC154 JTMS/SWDIO 34

OSCIN5

PB1

19

OSCOUT6

VSS_2 35

NRST7

PB2/

BO

OT1

20

VSSA8

VDD_2 36

VDDA9

PB10

21

PA010

JTC

K/S

WC

LK37

PA111

PB11

22

PA212

PA15

/JTD

I38

PA3

13

VSS

_123

PA4

14

PB3/

JTD

O39

PA5

15

VD

D_1

24

PA6

16

PB4/

JNTR

ST40

PB12 25

PB5

41

PB13 26

PB6

42

PB14 27

PB7

43

PB15 28

BO

OT0

44

PA8 29

PB8

45

PA9 30

PB9

46

PA10 31

VSS

_347

PA11 32

VD

D_3

48

U6STM32F103CBT6

5V_USB_ST_LINK

D4

BAT60JFILM

IN1

IN2

ON3 GND 4

SET 5

OUT 6

OUT 7

FAULT8

U10

ST890CDR

R9

4K7

R14

100K

Fitted: NO

R18100K

R10

2K7

T_SWOSolder: YESSB18Solder: YESSB15

Solder: YESSB16

Ilim = 625mA1.2Ilim = 750mA < Isc1.5Ilim = 938mA > Isc

Must be on a border or the PCB.

5V_ST_LINK

D1 BAT60JFILM

D2 BAT60JFILM5V_USB_ST_LINK

5V

Solder: YESSB17

VBUS 1

DM 2

DP 3

ID 4

GND 5

Shield 6

USB

_Mic

ro-B

rece

ptac

le

Shield 7

Shield 8

Shield 9

EXP 10

EXP 11

CN2

1050170001

USB_STLK_NUSB_STLK_P

STLINK_JTDO-SWO

C10100nF

C9100nF

C15100nF

C19100nF

R16 10K

Fitted: NOR17 10K

C2110pF

C2010pF

C18100nF

Sold

er:N

O

SB3R87 4K7

R86 4K7

R150R_0603

R190R_0603

R8 100R

Fitted: NOR11 0R

R38

330R

R34

330R

R3100K

R41K5

5V_USB_ST_LINKR2 10K

R5 36K

R6 100R

R2710K

R371K

Solder: NO

SB4

C27100nF

5V_ARD

Solder: YESSB2

C171uF

C11100nF

C14

10nF

C131uF

C12100nF

ST-LINK MCU

MCO STLK_MCOR7 56RFitted: NO

C820pF

ST LINK USB Power switch 5V / 1.2A

ST-LINK DFU

5V_USB_FS D3 BAT60JFILM

STLINK_JTMS_SWDIOSTLINK_JTCK_SWCLK

R242K2

R36100KC30

1uF

LD1

LED, Red, 0603

1 2X1

NX3225GD-8.00M

USB_STLK_ID

ESD PROTECTION SHOULD BE CLOSE TO THE CONNECTOR

PG9

PG14

PH0

PA14PA13

PB3NRST

3V3_ST_LINK

Only footprint with Cable: TC2050-IDC-NL

TAG

_NR

STTA

G_SW

O

TAG

_SWC

LKTA

G_SW

DIO

R8922R

R9022R

R9222R

R9122R

Fitted: NO

1 102 93 84 75 6

CN11

TC2050-IDC-NL

Fitted: NO 12

CN13

5V_USB_CHARGER

IO23 GND2 IO11 IO_1 6

VBUS 5

IO_2 4

U5

USBLC6-2P6

Page 45: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

UM

21

35S

chem

atics

DocID

029965 R

ev 1

45/50

Figure 32. Power

11 11

Power

MB1274 D-01

12/16/2016

Title:

Size: Reference:

Date: Sheet: of

A4 Revision:

STM32F413H-DISCOProject:

5V_ARD

5V

5V 3V3

5V_ARD

5V_ST_LINK

VDD_MCU

VINFrom Arduino power pin

5V_USB_FS

Open solder bridge if Discovery is suppliedfrom +3V3 of extension connector

Jumper to measure IDD of the MCUVDD_MCU= supply of MCU Power pins

IDD

LD6

LED, Green, 0603

Output: 5V / Up to 800mA

Output: 3V3 / Up to 800mA

Solder: YES

SB1

C7100nF

5V PWR SELECTION FROM EXTERNAL SOURCES

GND PROBE

5V PWR FROM ARDUINO (VIN < 11.5V)

3V3 PWR

1 23 45 67 8

JP3

TSM-104-01-x-DV

PWR TREE

Vin3 Vout 2

Gnd

1

Tab 4

U3 LD1117S50TR

Vin3 Vout 2

Gnd

1

Tab 4

U4LD1117S33TR

C310uF

C410uF

C510uF

C610uF

Connect only one jumper to supply the DISCO from one of the external 5V.If the DK board is connected to an external 220/5V USB Charger, used Jumper on pin 7/8.

5V_USB_CHARGER

JP1

JP2

5V_ARD

5V_USB_ST_LINK

5V_ST_LINK

5V_USB_FS

ARD_VIN ARDUINO5V_ARD

3V3_ST_LINK

5V

JUMPER

LDO 5V/800mA

LDO 3V3/800mA

SWITCH

STM32F103 ST LINK

ST LINK DEBUG

TAG

LED ST LINK

3V3

LCD_BACKLIGHT

USB_FS

SWITCH

5V_USB_FS

JUMPER VDD_MCUMCU_STM32F413H

VDD

VDDAVREF+VBATVDD_USB

PSRAM

QSPI

Audio WM8994

Microphones

LCD_FRIDA

CTP

SD-CARD

WIFI ISM43362-M3G-L44

LDO 1V8/150mA

USB_ST_LINK5V_USB_ST_LINK

5V

5V

5V

3V3

3V3

3V3

3V3

3V3

3V3

3V3

3V3

3V3

3V3

3V3

BAT60

LDO_3V3

1V8

R97

330R

5V_USB_CHARGER

HW14

SHUNT_BK

HW15

SHUNT_BK

Page 46: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

Federal Communications Commission (FCC) and Industry Canada (IC) Compliance UM2135

46/50 DocID029965 Rev 1

Appendix C Federal Communications Commission (FCC) and Industry Canada (IC) Compliance

C.1 FCC Compliance Statement

Contains FCC ID: O7P-362

C.1.1 Part 15.19

This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.

C.1.2 Part 15.105

This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense.

C.1.3 Part 15.21

Any changes or modifications to this equipment not expressly approved by STMicroelectronics may cause harmful interference and void the user's authority to operate this equipment.

C.2 IC Compliance Statement

Contains/Contient IC: 10147A-362

This device complies with FCC and Industry Canada RF radiation exposure limits set forth for general population for mobile application (uncontrolled exposure). This device must not be collocated or operating in conjunction with any other antenna or transmitter.

C.2.1 Compliance Statement

Notice: This device complies with Industry Canada licence-exempt RSS standard(s). Operation is subject to the following two conditions: (1) this device may not cause interference, and (2) this device must accept any interference, including interference that may cause undesired operation of the device.

Industry Canada ICES-003 Compliance Label: CAN ICES-3 (A)/NMB-3(A)

Page 47: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 47/50

UM2135 Federal Communications Commission (FCC) and Industry Canada (IC) Compliance

49

C.2.2 Déclaration de conformité

Avis: Le présent appareil est conforme aux CNR d'Industrie Canada applicables aux appareils radio exempts de licence. L'exploitation est autorisée aux deux conditions suivantes : (1) l'appareil ne doit pas produire de brouillage, et (2) l'utilisateur de l'appareil doit accepter tout brouillage radioélectrique subi, même si le brouillage est susceptible d'en compromettre le fonctionnement

Étiquette de conformité à la NMB-003 d'Industrie Canada : CAN ICES-3 (A)/NMB-3(A)

Page 48: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

CISPR32 UM2135

48/50 DocID029965 Rev 1

Appendix D CISPR32

D.1 Warning

Warning: This device is compliant with Class A of CISPR32. In a residential environment, this equipment may cause radio interference.

Avertissement: Cet équipement est conforme à la Classe A de la CISPR 32. Dans un environnement résidentiel, cet équipement peut créer des interférences radio.

Page 49: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

DocID029965 Rev 1 49/50

UM2135 Revision history

49

Revision history

Table 15. Document revision history

Date Revision Changes

05-Apr-2017 1 Initial version

Page 50: UM2135 User manual - STMicroelectronics · April 2017 DocID029965 Rev 1 1/50 1 UM2135 User manual Discovery kit with STM32F413ZH MCU Introduction The 32F413HDISCOVERY Discovery kit

UM2135

50/50 DocID029965 Rev 1

IMPORTANT NOTICE – PLEASE READ CAREFULLY

STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.

Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers’ products.

No license, express or implied, to any intellectual property right is granted by ST herein.

Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.

ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.

Information in this document supersedes and replaces information previously supplied in any prior versions of this document.

© 2017 STMicroelectronics – All rights reserved