Rev.: 01 STM32F4DISCOVERY LCD Interface Expansion Board (EB-STM32F4DISCOVERY-LCD) User Guide 1 EB-STM32F4DISCOVERY-LCD Overview The EB-STM32F4DISCOVERY-LCD is an extension board for the STM32F4DISCOVERY Development Board. Figure 1. LCD connector expansion board for STM32F4VLDISCOVERY The expansion board has build in LED backlight driver circuit and 60pin FPC connector for the Kentec LCDs (3.5 inch: K350QVG-V2-F; 4.3 inch: K430WQC-V3-FF; 5.0 inch: K50DWN2-V1-FF; 7.0 inch: K70DWN2-V1-FF; 9.0 inch: K90DWN2-V1-FF). And also have a micro SD card slot can be interface to STM32F4 by SD interface. 2 EB-STM32F4DISCOVERY-LCD Dimensions Figure 2. Outline Dimensions Rev.: 01 3 EB-STM32F4DISCOVERY-LCD interface Table 1-1. Main Interface Signal P1 (50pin socket connect to STM32F4DISCOVERY MCU board P1) STM32F4DISCOVERY EB-STM32F4DISCOVERY-LCD P1 PIN Symbol P1 Symbol 1-2 GND GND Ground (0V) 3-4 3V3 3V3 Power supply (+3.3V) 5 GND GND Ground (0V) 6 NRST LCD_RST 7 PC1 NC No connection 8 PC0 NC No connection 9 PC3 NC No connection 10 PC2 NC No connection 11 PA1 NC No connection 12 PA0 NC No connection 13 PA3 NC No connection 14 PA2 NC No connection 15 PA5 TOUCH_SCK 16 PA4 NC 17 PA7 TOUCH_SDIN Reserved for touch controller serial data input 18 PA6 TOUCH_SDO Reserved for touch controller serial data output 19 PC5 NC 20 PC4 TOUCH_BUSY 21 PB1 NC No connection 22 PB0 NC No connection 23 NC NC No connection 24 PB2 NC No connection 25 PE7 LCD_D4 LCD parallel data bus bit 4 26 PE8 LCD_D5 LCD parallel data bus bit 5 27 PE9 LCD_D6 LCD parallel data bus bit 6 28 PE10 LCD_D7 LCD parallel data bus bit 7 29 PE11 LCD_D8 LCD parallel data bus bit 8 30 PE12 LCD_D9 LCD parallel data bus bit 9 31 PE13 LCD_D10 LCD parallel data bus bit 10 32 PE14 LCD_D11 LCD parallel data bus bit 11 33 PE15 LCD_D12 LCD parallel data bus bit 12 34 PB10 NC No connection 35 PB11 NC No connection 36 PB12 NC No connection 37 PB13 NC No connection 38 PB14 TOUCH_CS 39 PB15 NC 40 PD8 LCD_D13 LCD parallel data bus bit 13 41 PD9 LCD_D14 LCD parallel data bus bit 14 Pin Description LCD reset signal Reserved for touch controller serial clock input No connection No connection Reserved for touch controller busy signal output Reserved for touch controller chip select signal No connection Rev.: 01 Continued Table 1-1, Main interface signal P1 (50pin socket connect to STM32F4DISCOVERY MCU board P1) 42 PD10 LCD_D15 LCD parallel data bus bit 15 43 PD11 LCD_RS LCD register/data select signal 44 PD12 NC No connection 45 PD13 NC No connection 46 PD14 LCD_D0 LCD parallel data bus bit 0 47 PD15 LCD_D1 LCD parallel data bus bit 1 48 NC NC 49-50 GND GND No connection Ground (0V) Table 1-2. Main Interface Signal P2 (50pin socket connect to STM32F4DISCOVERY MCU board P2) STM32F4DISCOVERY EB-STM32F4DISCOVERY-LCD P1 PIN Symbol P1 PIN Symbol 1-2 GND GND 3-4 5V 5V Power supply for LED driver circuit 5-6 3V NC No connection 7 PH0 NC No connection 8 PH1 NC No connection 9 PC14 NC No connection 10 PC15 NC No connection 11 PE6 NC No connection 12 PC13 Card detect No connection 13 PE4 NC No connection 14 PE5 NC No connection 15 PE2 NC No connection 16 PE3 NC No connection 17 PE0 NC No connection 18 PE1 NC No connection 19 PB8 NC No connection 20 PB9 NC No connection 21 BOOT0 NC No connection 22 GND NC No connection 23 PB6 NC No connection 24 PB7 NC No connection 25 PB4 NC No connection 26 PB5 LCD_BL Reserved for LCD backlight ON/OFF control 27 PD7 LCD_CS LCD chip select signal 28 PB3 NC 29 PD5 LCD_WR 30 PD6 TOUCH_INT 31 PD3 NC 32 PD4 LCD_RD LCD read control signal 33 PD1 LCD_D3 LCD parallel data bus bit 3 Pin Description Ground (0V) No connection LCD write control signal Reserved for touch controller interrupt signal No connection Rev.: 01 Continued Table 1-2, Main interface signal P2 (50pin socket connect to STM32F4DISCOVERY MCU board P2) SD card command signal 34 PD2 SDIO_CMD 35 PC12 SDIO_CK SD card clock signal 36 PD0 LCD_D2 LCD parallel data bus bit 2 37 PC10 SDIO_D2 SD card DAT2 signal 38 PC11 SDIO_D3 SD card DAT3 signal 39 PA14 NC No connection 40 PA15 NC No connection 41 PA10 NC No connection 42 PA13 NC No connection 43 PA8 NC No connection 44 PA9 NC No connection 45 PC8 SDIO_D0 SD card DAT0 signal 46 PC9 SDIO_D1 SD card DAT1 signal 47 PC6 NC No connection 48 PC7 NC No connection 49-50 GND GND Ground (0V) Table 2. LCD Interface Signal (CN1 60pin ZIF connector to LCD module) Pin Symbol Description 1, 2 LED_K LED power supply (-) 3, 4 LED_A LED power supply (+) 5 GND 6 XR 7 YD 8 XL 9 YU 10 GND 11~13 NC 14 Reset 15 CS Chip select for LCD 16~19 NC No Connection 20 D0 Data bit 0, default connected to GND on MCU board 21~25 D1~D5 26, 27 NC 28~30 D6~D8 31 D9 32, 33 D10, D11 34, 35 NC 36~41 D12~D17 42~44 GND 45, 46 AVDD Ground (0V) 4-wire resistor touch screen terminal Ground (0V) No Connection Reset input signal for LCD Data bit 1 ~ bit 5 No Connection Data bit 6 ~ bit 8 Data bit 9, default connected to GND on MCU board Data bit 10 ~ bit 11 No Connection Data bit 12 ~ bit 17 Ground (0V) Power supply (3.3V) Rev.: 01 Continued Table 2, LCD interface signal (CN1 60pin ZIF connect to LCD) Power supply (3.3V) 47, 48 VCC 49 RS Command/Data select signal for LCD 50 RD Read control signal for LCD 51 WR Write control signal for LCD 52 PS0 LCD interface select pin for K350QVG-V2-F, default set to i8080 16-bit parallel. 53 PS1 54 PS2 55 PS3 56, 57 NC 58~60 GND No connection Ground (0V) 4 Schematics CN1 K320QVG GND 60 GND 59 DE 58 NC 57 WSYNC 56 PS3 55 PS2 54 PS1 53 PS0 52 WR 51 RD 50 RS 49 VDD 48 VDD 47 AVDD 46 AVDD 45 DCLK 44 VSYNC 43 HSYNC 42 R5(D17) 41 R4(D16) 40 R3(D15) 39 R2(D14) 38 R1(D13) 37 R0(D12) 36 NC 35 NC 34 G5(D11) 33 G4(D10) 32 G3(D9) 31 G2(D8) 30 G1(D7) 29 G0(D6) 28 NC 27 NC 26 B5(D5) 25 B4(D4) 24 B3(D3) 23 B2(D2) 22 B1(D1) 21 B0(D0) 20 NC 19 NC 18 SDA-SDI 17 SPCLK 16 CS 15 RESET 14 NC 13 NC 12 NC 11 GND 10 YT 9 XL 8 YB 7 XR 6 GND 5 LED_A 4 LED_A 3 LED_K 2 LED_K 1 3V3 10K 10K 10K 10K 10K 0 PD5 PD4 PD11 R1 GND GND GND 0 0 0 0 R45 0 R46 0 R47 0 R44 0 C6 10pF C8 100pF C7 10pF GND GND GND GND TOUCH_XP TOUCH_YP TOUCH_XN TOUCH_YN P1 GND 3V3 PC1 PC3 PA1 PA3 PA5 PA7 PC5 PB1 PE7 PE9 PE11 PE13 PE15 PB11 PB13 PB15 PD9 PD11 PD13 PD15 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 MHDR2X25 GND NRST PC0 PC2 PA0 PA2 PA4 PA6 PC4 PB0 PB2 PE8 PE10 PE12 PE14 PB10 PB12 PB14 PD8 PD10 PD12 PD14 3V3 1 2 3 4 5 6 7 8 +Vcc DCLK X+ CS Y+ DIN XBUSY YDOUT GND PENIRQ Vbat +Vcc AUX Vref GND TP_CLK TP_CS TP_DIN TP_BUSY TP_DOUT TP_INT 16 15 14 13 12 11 10 9 R55 R56 R57 R58 R59 R60 0 0 0 0 0 0 PA5 PB14 PA7 PC4 PA6 PD6 P2 GND 5V 3V Reserved for resistive touch controler LED Backlight Driver Circuit 5V L1 22uH C3 68uF C2 R13 1 VIN 10uF D1 U1 SW 5 SW LED-A LED-A 100K D2 2 GND GND 0 GND PH0 PC14 PE6 PE4 PE2 PE0 PB8 BOOT0 PB6 PB4 PD7 PD5 PD3 PD1 PC12 PC10 PA14 PA10 PA8 PC8 PC6 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 MHDR2X25 GND PB5 R12 NC 3 EN PT4110 FB 4 DAT2 CD/DAT3 CMD VDD CLK VSS DAT0 DAT1 Card-Detect TF-EXT 10K R53 10K R54 C5 10pF U2 GND PC8 PC9 PC13 GND CN2 1 2 3 4 5 6 7 8 9 3V3 C4 10pF GND GND R41 0 R42 0 R43 0 GND1 12 GND1 11 GND1 10 GND1 0 R14 R15 R16 R17 GND GND 3V3 3V3 3V3 LED-A LED-K GND TOUCH_XP TOUCH_YP TOUCH_XN TOUCH_YN C1 100pF PC10 PC11 PD2 3V3 PC12 R52 R51 R50 R49 R48 PD10 PD9 PD8 PE15 PE14 PE13 PE12 PE11 PE10 PE9 PE8 PE7 PD1 PD0 PD15 PD14 PD7 NRST 3V3 R10 R11 LED-K NC LED-K 15R(for 20mA) Figure 3. Expansion board schematic GND 5V PH1 PC15 PC13 PE5 PE3 PE1 PB9 PB7 PB5 PB3 PD6 PD4 PD2 PD0 PC11 PA15 PA13 PA9 PC9 PC7 3V VDD GND Rev.: 01 4 Components Location Figure 4. Expansion board components layout 5 LCD driver code examples Bellow attachment is the source code for the K350QVG-V2-F. NO. Document 1 Source code package Attachment