background image

Hardware layout and configuration

UM2032

22/40

UM2032 Rev 3

5.8 Audio 

codec

An audio codec U15 connected to the I2S3 interface of the microcontroller 
STM32F412ZGT6 offers the possibility to connect a stereo headphone or headset with a 
mono-analog microphone. A loudspeaker can be connected to the extension connector.

The digital audio output from the microcontroller is handled by the port of the microcontroller 
PB5 called CODEC_I2S3_SD while the other direction is handled by port PB4 called 
CODEC_I2S3ext_SD.

The I

²

C-bus address of the codec is 0b0011010.

5.8.1 Stereo 

headset and headphone jack

A stereo headphone or a stereo headset with analog microphone can be plugged into the 
3.5 mm standard jack socket CN9. 

The stereo digital audio streamed from pin PB5 of the microcontroller STM32F412ZGT6 is 
transformed in a stereo analog output by the codec and is delivered to the headphone or 
headset through the pins 6 and 4 of the jack socket CN9. 

If a headset is plugged into CN9, the bias of the microphone is driven by the output 
MICBIAS1 of the codec and the analog audio enters into the codec by the pin IN1LN.

The corresponding digital audio output from the codec is connected to the microcontroller 
STM32F412ZGT6 by the port PB4.

5.8.2 Loudspeaker 

output

The 32F412GDISCOVERY Discovery kit can deliver a monophonic audio to a loudspeaker 
connected to pins 36 and 38 of the extension connector P2. It is recommended to use the 
codec loudspeaker outputs SPKOUTRN and SPKOUTRP in linear mode called "class AB". 
This mode is compatible with 4-ohm to 8-ohm impedance loudspeakers. Use of the 
switching mode called "class D" requires to use an appropriate filter to maximize rejection of 
unwanted frequencies and efficiency. To select the mode "class AB" of the codec, set to 1 
the bit 8 of the register 0x23.

5.9 Digital 

microphones

Two digital microphones U4 and U5 are available on the 32F412GDISCOVERY Discovery 
kit. The two microphones are located at a distance of 21 mm each other. The microphones 
are connected to the DFSDM of the STM32 by the port PC2 generating the clock and by the 
port PB1 collecting the PDM interleaved data.

5.10 

USB OTG FS

A USB OTG full-speed communication is available at USB Micro-AB receptacle connector 
CN3.

Limitations:

 the USB-related operating supply voltage of STM32F412ZGT6 (VDD_USB 

line) must be within the range from 3.0 V to 3.6 V. Therefore, in case the STM32F412ZGT6 
is supplied with 2 V by JP5 set in +2 V position, the USB of the STM32 works only if the 
VDD_USB power pin is supplied independently by +3.3 V. This is done by closing pins 2 
and 3 of the jumper JP6 (refer to 

Table 4: Power-supply-related jumper settings

).

Summary of Contents for 32F412GDISCOVERY

Page 1: ...ng required for users to get started quickly and develop applications easily A full range of hardware features on the board helps users to evaluate on board peripherals such as USB OTG FS microSD card...

Page 2: ...3 Power supply 14 5 3 1 Power supply sources 14 5 3 2 STM32 power supply options 15 5 3 3 Modification of STM32 voltage 15 5 3 4 Supplying the 32F412GDISCOVERY through the ST LINK V2 1 USB port 16 5...

Page 3: ...access CN7 29 5 17 3 Backlight 30 5 17 4 Touch panel 30 5 18 Joystick and LEDs 30 6 Connectors 32 6 1 I2 C extension connector CN10 32 6 2 USB OTG FS Micro AB connector CN3 32 6 3 microSD connector CN...

Page 4: ...ral Communications Commission FCC and ISED Canada Compliance Statements 37 8 1 FCC Compliance Statement 37 8 1 1 Part 15 19 37 8 1 2 Part 15 21 37 8 1 3 Part 15 105 37 8 2 ISED Compliance Statement 37...

Page 5: ...INO Uno V3 compatible connectors 24 Table 8 Pin assignment for the extension connector P1 26 Table 9 Pin assignment for the extension connector P2 27 Table 10 Pin assignment for connector CN15 28 Tabl...

Page 6: ...re 5 32F412GDISCOVERY bottom layout 12 Figure 6 32F412GDISCOVERY mechanical drawing dimensions in millimeters 13 Figure 7 Updating the list of drivers in device manager 14 Figure 8 R90 and R92 resisto...

Page 7: ...sion connector ARDUINO Uno V3 expansion connectors 2 54 mm pitch expansion connector for direct access to various features of the STM32F412ZGT6 microcontroller Flexible power supply options ST LINK V2...

Page 8: ...ation The meaning of the codification is explained in Table 2 Table 1 Ordering information Order code Board reference Target STM32 STM32F412G DISCO MB1209 STM32F412ZGT6 Table 2 Codification explanatio...

Page 9: ...ventions Table 3 provides the definition of some conventions used in the present document a Linux is a registered trademark of Linus Torvalds b macOS is a trademark of Apple Inc registered in the U S...

Page 10: ...in components on the Discovery kit Figure 3 Hardware block diagram MSv41795V1 STM32F412ZGT6 TQFP144 package Audio CODEC RTC 3 3 V power supply I2C1 I2S3 I2 C extension connector 1 54 LCD Joystick GPIO...

Page 11: ...2 Extension connector P1 LCD ZZ1 ARDUINO connectors CN1 CN2 Supply source selection JP3 5 V power LED LD6 SWD connector CN4 ST LINK V2 1 Micro B USB connector CN6 ST LINK power switch fault LED LD10 A...

Page 12: ...ayout and configuration UM2032 12 40 UM2032 Rev 3 Figure 5 32F412GDISCOVERY bottom layout MSv43307V2 Capacitive touch panel connector CN14 microSD connector CN13 U16 regulator output voltage adjustmen...

Page 13: ...N1235 5 2 1 Drivers ST LINK V2 1 requires a dedicated USB driver which for Windows 7 Windows 8 and Windows 10 is available from www st com In cases where the STM32F412 Discovery board is connected to...

Page 14: ...ough the ST LINK V2 1 USB port A jumper should be placed in location STLK of JP3 connecting pins 3 and 4 The green LED LD6 is lighted on to confirm the presence of 5 V voltage 5 V DC from the user USB...

Page 15: ...ails on JP5 jumper setting refer to Table 4 Power supply related jumper settings 5 3 3 Modification of STM32 voltage Regulator U16 is dedicated to the 2 0 V supply The output voltage of U16 is by defa...

Page 16: ...informs the ST LINK V2 1 facility of its capability to supply up to 500 mA of current If the answer is positive the ST LINK V2 1 sets the U8 switch to ON position to supply power to the remainder of...

Page 17: ...spected the Discovery kit may be powered by VBUS first from ST LINK V2 1 and the following risks may be encountered 1 If more than 500 mA current is needed by the Discovery kit the PC may be damaged o...

Page 18: ...in 5 or by pins 3 or 4 of the extension connector P2 No jumper in JP3 JP5 Default Setting STM32F412ZGT6 is supplied with a 3 3 V voltage VDD_MCU STM32F412ZGT6 STM32 is supplied with a 2 0 V voltage VD...

Page 19: ...of 3V3 independently of the remainder of supply pins of STM32 JP7 Default Setting JP7 IDD is ON by default to supply the STM32F412ZGT6 and when removed it offers the possibility to insert an ammeter t...

Page 20: ...and PH1 are not available for the extension connector P2 5 4 2 LSE clock source By default the 32 768 kHz crystal X3 is connected to pins PC14 OSC32_IN and PC15 OSC32_OUT of STM32F412ZGT6 for the RTC...

Page 21: ...tem memory boot mode Application note AN2606 details the bootloader mechanism and configurations Boot related solder bridge and resistor settings are reported in Table 6 Table 5 Boot options BOOT0 BOO...

Page 22: ...the port PB4 5 8 2 Loudspeaker output The 32F412GDISCOVERY Discovery kit can deliver a monophonic audio to a loudspeaker connected to pins 36 and 38 of the extension connector P2 It is recommended to...

Page 23: ...the USB device connected to the USB connector CN3 It is recommended to use PG8 in open drain mode When PG8 is closed to ground the power switch is closed and the green LED LD7 confirms the 5 V to the...

Page 24: ...serial interface USART2 is directly available through a USB Virtual COM port of the ST LINK V2 1 The USB connector is CN6 5 15 ARDUINO Uno V3 connectors CN1 CN2 CN11 and CN12 are female connectors com...

Page 25: ...ON Note 4 Important before using pin 4 of CN2 as 5 V input insure the jumpers and solder bridges are configured according to 5 V DC power input defined in Section 5 3 1 Power supply sources Otherwise...

Page 26: ...signs In Table 8 Table 9 and in the 32F412GDISCOVERY schematics see on www st com the pin numbers corresponding to these ports are annotated with the star symbol In Table 8 Table 9 and in the 32F412GD...

Page 27: ...Name Note Pin No Name Note 1 GND 2 GND 3 5 V 4 5 V 5 3V3 6 3V3 7 PH0 8 PH1 9 PC14 10 PC15 11 PE6 12 PC13 13 PE4 14 PE5 15 PE2 16 PE3 17 PE0 18 PE1 19 PB8 A 20 PB9 A 21 BOOT0 22 VDD_MCU 23 PB6 TC 24 P...

Page 28: ...SB41 must be ON and SB42 OFF The selection of the LCD is performed by FMC_NE1 PD7 write enable signal is FMC_NWE PD5 and read enable is FMC_NOE PD4 The address bit A0 of the FMC Flexible Static Memory...

Page 29: ...nnected to FMC PD0 17 D1 Data connected to FMC PD15 18 D0 Data connected to FMC PD14 19 RD Read of LCD connected to FMC_NOE PD4 20 WR Write of LCD connected to FMC_NWE PD5 21 RS Data Command select co...

Page 30: ...d to port PG5 to be used as an interruption input of the microcontroller Port PF12 is the reset of the capacitive touch panel 5 18 Joystick and LEDs The blue button B2 is a 4 direction joystick with a...

Page 31: ...UM2032 Rev 3 31 40 UM2032 Hardware layout and configuration 39 Table 12 Port assignment to the LED indicators LED Controlled by STM32 port Color LD1 PE0 Green LD2 PE1 Orange LD3 PE2 Red LD4 PE3 Blue...

Page 32: ...ure 10 USB OTG FS Micro AB connector CN3 front view Table 13 I2 C extension connector pinout CN10 Pin number Description Pin number Description 1 I2C1_SDA PB9 5 VDD 2 NC 6 NC 3 I2C1_SCL PB10 7 GND 4 E...

Page 33: ...iew 6 4 ST LINK V2 1 USB Micro B connector CN6 Figure 12 USB Micro B connector CN6 front view Table 15 microSD connector CN13 Pin number Description Pin number Description 1 SDIO_D2 PC10 6 GND 2 SDIO_...

Page 34: ...Connectors UM2032 34 40 UM2032 Rev 3 Table 16 USB Micro B connector CN6 Pin number Description Pin number Description 1 VBUS power 4 GND 2 DM 5 6 Shield 3 DP...

Page 35: ...ot yet qualified and therefore 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 custom...

Page 36: ...It embeds the STM32F412ZGT6 microcontroller with silicon revision code C or 1 The limitations of these silicon revisions are detailed in the errata sheet STM32F412xE xG device errata ES0305 7 3 Board...

Page 37: ...al 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 e...

Page 38: ...arning This device is compliant with Class A of EN55032 CISPR32 In a residential environment this equipment may cause radio interference Avertissement cet quipement est conforme la Classe A de la EN55...

Page 39: ...Added Chapter 7 32F412GDISCOVERY Discovery kit information Updated Figure 3 Hardware block diagram Figure 4 32F412GDISCOVERY top layout Figure 5 32F412GDISCOVERY bottom layout Section 5 2 Embedded ST...

Page 40: ...lection 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 b...

Reviews: