background image

Preparation of Demo 

 

10 

Seiko Epson Corporation

 

S5U13781R00C100 Demonstration Manual

 

 

 

(Rev. 2.1)

 

2.3  Unzip Downloaded Files 

(1) Preparation for display demo using STM32 F4-Discovery 

1.

 

Make the project folder “demo_stm32f4_psp” and place the file “stm32f4discovery_fw.zip” into 
this folder. 

2.

 

Unzip the file “stm32f4discovery_fw.zip”. The folder “STM32F4-Discovery_FW _Vx.x.x” will 
be created. 

3.

 

Unzip the file “demo_stm32f4_psp1.zip” described in the Table 2-1, 

ATM0430D5 Download File

The folder “S1D13781”, “STM32F4_s1d13781_Demo” and 
“STM32F4_s1d13781_Demo_embFlash” will be created. 

4.

 

Move folder “S1D13781” to the following folder. 
“\demo_ stm32f4_psp\STM32F4-Discovery_FW_Vx.x.x\Libraries\” 

5.

 

Move folder “STM32F4_s1d13781_Demo” and “STM32F4_s1d13781_Demo_embFlash” to the 
following folder.  
“\demo_STM32 F4_psp\STM32F4-Discovery_FW _Vx.x.x\Project\” 
*Vx.x.x shows version number. 

 

Figure 2-1 Structure of the Project Folder (STM32) 

P

roject folder: 

demo_stm32f4_psp

STM32F4-Discovery_FW_V1.1.0

 

Project

 

STM32F4_s1d13781_Demo

Demo using external SPI flash

… ├

EWARM

│├

STM32F4-Discovery_S1D13781.eww

Project file

readme.txt

Readme for Project

inc

Directory for header files

src

Directory for source files


STM32F4_s1d13781_Demo_embFlash

Demo using internal flash

… ├

EWARM

│├

STM32F4-Discovery_S1D13781.eww

Project file

readme.txt

Readme for Project

inc

Directory for header files

src

Directory for source files


Libraries

CMSIS

 

S1D13781

S1D13781library

│ ├

readme.txt

Readme file for S1D13781library

│ ├

inc

Directory for header files

│ │├

S1D13781.h

│ ├

src

Directory for source files

│ └

image_header_file_generator

Directory for image header file generator


STM32F10x_StdPeripf_Driver

STM32F4 library

Releae_Notes.html

ReleaseNote for STM32 F4

  ├

inc

Directory for header files

  └

src

Directory for source files

Contents provided by Epson are the folders in Bold Italic letters

Summary of Contents for S5U13781R00C100

Page 1: ...Rev 2 1 S5U13781R00C100 Demonstration Manual for STM32 F4 Discovery and XIAMEN ZETTLER ATM0430D5 Panel Document Number X94A G 009 02 1 ...

Page 2: ... make changes to this material without notice Seiko Epson does not assume any liability of any kind arising out of any inaccuracies contained in this material or due to its application or use in any product or circuit and further there is no representation that this material is applicable to products requiring high level reliability such as medical products Moreover no license to any intellectual ...

Page 3: ...ample Software into STM32 F4 Discovery 14 3 1 3 Connect the S5U13781R00C100 with the STM32 F4 Discovery 17 3 1 4 Connect the S5U13781R00C100 with LCD Panel 18 3 1 5 Running Demo 20 3 2 Demo Using External 2MB Standard SPI Flash Memory M25P16 23 3 2 1 Summary 23 3 2 2 Write Image Data into Flash Memory 24 3 2 3 Write Demo Sample Software into STM32 F4 Discovery 28 3 2 4 Connect the S5U13781R00C100 ...

Page 4: ...4 Seiko Epson Corporation S5U13781R00C100 Demonstration Manual Rev 2 1 ...

Page 5: ...y For a detailed specification of the S5U13781R00C100 reference board please refer to the S5U13781R00C100 Reference Board User Manual document number X94A G 004 xx This user manual is updated as appropriate Please check the Seiko Epson Website at http www epson jp device semicon_e product lcd_controllers reference_design index htm for the latest revision of this document before beginning any devel...

Page 6: ...ner diameter 2 1mm 7 DC jack e g General purpose inner diameter 2 1mm 8 Pin header e g General purpose 2x25 2 54mm pitch 9 Jumper pin e g General purpose 2 54mm pitch 10 USB cable A female mini B male General purpose A to mini B 11 Personal computer For programming of STM32 F4 Discovery and UM232H control Required software is available on the internet Demonstrations explained in this manual are co...

Page 7: ...ools are required 1 IAR Embedded Workbench for ARM v 6 30 32K Kickstart Edition from IAR systems 2 STM32F4DISCOVERY board firmware package from ST Microelectronics 3 Visual C 2010 Express from Microsoft 4 Driver and MPSSE SPI library for UM232H from FTDI These tools are available without charge on the web site of each vendor ...

Page 8: ...RL http www st com internet com SOFTWARE_RESOURCES SW_COMPONENT FIRMWARE stm32f 4discovery_fw zip 3 Microsoft Visual C 2010 Express from Microsoft Download Microsoft Visual C 2010 Express from the following URL and install according to the introduction provided by Microsoft http www microsoft com visualstudio en us products 2010 editions visual cpp express 4 Driver and MPSSE SPI library for UM232H...

Page 9: ... files described in Table 2 1 ATM0430D5 Download File are in the downloaded file Table 2 1 ATM0430D5 Download File For ATM0430D5 4 3 inch 480x272 dots 24 bit full color TFT panel from XIAMEN ZETTLER Download File Contents demo_stm32f4_psp1 zip Firmware project file for STM32F4 Discovery Target tool EWARM flash_psp1 zip Project file for data writing to M25P16 SPI flash ROM Target tool Visual C 2010...

Page 10: ... _Vx x x Project Vx x x shows version number Figure 2 1 Structure of the Project Folder STM32 Project folder demo_stm32f4_psp STM32F4 Discovery_FW_V1 1 0 Project STM32F4_s1d13781_Demo Demo using external SPI flash EWARM STM32F4 Discovery_S1D13781 eww Project file readme txt Readme for Project inc Directory for header files src Directory for source files STM32F4_s1d13781_Demo_embFlash Demo using in...

Page 11: ...t SPI Static Copy following three files from the folder libMPSSE SPI Release SPI samples SPI into the project folder flash_psp ftd2xx h libMPSSE a libMPSSE_spi h This completes embedding the MPSSE SPI library into the M25P16 write project folder flash_psp Figure 2 2 Structure of the Project Folder Flash Project folder flash_psp Contents ReadMe txt EPSON_LCDC_REF sln Solution file cpp Source file h...

Page 12: ...I Static Copy following three files from the folder libMPSSE SPI Release SPI samples SPI into the project folder demo_um232h_psp ftd2xx h libMPSSE a libMPSSE_spi h This completes embedding the MPSSE SPI library into the UM232H demo project folder demo_um232h_psp Figure 2 3 Structure of the project folder UM232H Project folder demo_um232h_psp Contents ReadMe txt EPSON_LCDC_REF sln Solution file cpp...

Page 13: ...ce board as display image storage 3 1 Demo using STM32F407 Built in 1MB Flash Memory 3 1 1 Summary The STM32 F4 Discovery is the evaluation board for ARM Cortex M4 on board STM32F4xx microcontroller from ST Microelectronics hereafter STM This board is reasonably priced and includes an ICE feature making it suitable for this evaluation The demo displays a still image on an LCD panel Hardware consis...

Page 14: ...F4 Discovery to the PC via USB Launch the project file for IAR Embedded Workbench Double click STM32F4 Discovery_S1D13781 eww located in the project folder STM32F4 Discovery_FW _Vx x x project STM32F4_s1d13781_Demo_embFlash EWARM Here if the window opens which states Can not open this file then launch IAR Embedded Workbench from the Windows start menu EWARM is launched and project file is opened ...

Page 15: ...on Manual Seiko Epson Corporation 15 Rev 2 1 Build the project file Select Project from the menu Rebuild All from the sub menu Download the code to the STM32 F4 Discovery and write it into Flash Select Project from the menu Download from the sub menu Download active application ...

Page 16: ...Explanation of the Demo using STM32 F4 Discovery 16 Seiko Epson Corporation S5U13781R00C100 Demonstration Manual Rev 2 1 The red LED LD1 blinks and the code will be written LD1 ...

Page 17: ...ION S5U13781 JP PIN名 JP1 1 JP1 2 IDD IDD IDD IDD CN3 1 CN3 2 SWD SWD SWD SWD FUNCTION STM32 F4 Discovery JP PIN名 FUNCTION STM32 F4 Discovery JP PIN名 FUNCTION P1 15 PA5 SPI1_SCK SPI1_MOSI SPI1_MISOI SPI1_NSS P1 17 PA7 P1 18 PA6 P1 16 PA4 J4 27 SCS SPI CS IN J4 28 SCK SPI SCK IN J4 29 MOSI SPI DATA IN J4 30 MISO SPI DATA S5U13781 JP PIN名 FUNCTION J4 3 VDDIO J3 4 3 3V IN VDDDCDC 3 3V IN J4 1 GND GND ...

Page 18: ...nection example between the S5U13781R00C100 reference board and the ATM0430D5 is shown in Figure 3 2 ATM0430D5 Connection Example Table 3 1 ATM0430D5 Connection Example 1 of 2 and Table 3 2 ATM0430D5 Connection Example 2 of 2 show detailed connection information for each signal Figure 3 2 ATM0430D5 Connection Example LDO OSC S1D13781 14x14mm QFP 1 2 49 50 2 1 50 49 FLASH 55 1 2 49 50 J1 J2 J3 J4 J...

Page 19: ...G2 15 PDT11 J5 20 J9 16 G3 16 PDT12 J5 21 J9 17 G4 17 PDT13 J5 22 J9 18 G5 18 PDT14 J5 23 J9 19 G6 19 PDT15 J5 24 J9 20 G7 20 PDT16 J5 25 J9 5 R0 5 PDT17 J5 26 J9 6 R1 6 PDT18 J5 27 J9 7 R2 7 PDT19 J5 28 J9 8 R3 8 PDT20 J5 29 J9 9 R4 9 PDT21 J5 30 J9 10 R5 10 PDT22 J5 31 J9 11 R6 11 PDT23 J5 32 J9 12 R7 12 VDDIO J5 39 J9 4 VDD 4 VDDIO J5 39 J9 31 DISP 31 LED J5 46 J9 2 VLED 2 LED J5 48 J9 1 VLED 1...

Page 20: ...ect the S5U13781R00C100 with LCD Panel for further information Power ON Starts the Demo Supplying power to the STM32 F4 Discovery from USB or 5V external power supply and to the S5U13781R00C100 from 3 3V external power supply starts the demo automatically Connection image The demo proceeds as shown in figure 3 3 Demo Flow Diagram The alphanumeric image PIP window and photo image Main window will a...

Page 21: ...e data formats enables the S1D13781 to process the display with its built in 384kbytes of SRAM Additional Information on Display Image Data Allocation of demo image data The image data which will be displayed in the demo are in following directory Directory name STM32F4 Discovery_FW_V1 1 0 Project STM32F4_s1d13781_Demo_embFlash inc File name image_001 h Image data 1 for main window 480x272 dot 16b...

Page 22: ... Procedure 1 Prepare bitmap files Following three files can be made by software such as GIMP by storing file in 16bit RGB565 format image_001 bmp Bitmap file 1 for main window 480x272 dot 16bpp RGB565 image_002 bmp Bitmap file 2 for main window 480x272 dot 16bpp RGB565 image_003 bmp Bitmap file 3 for main window 480x272 dot 16bpp RGB565 The following file can be made with software such as Windows ...

Page 23: ...5 from XIAMEN ZETTLER 4 3 inch 480x272 dots 24 bit full color TFT LCD panel Display image data on the PC will be written into the 16Mbit SPI NOR Flash standard memory M25P16 on the S5U13781R00C100 reference board by using UM232H The UM232H Single Channel USB Hi Speed FT232H Development Module is a one chip USB serial conversion IC from Future Technology Devices International This board is reasonab...

Page 24: ...781 14x14mm QFP 1 2 49 50 2 1 50 49 FLASH 55 1 2 49 50 Connect to PC FT232H 8x8mm QFN Mini USB J2 J1 J1 J2 J3 J4 J5 J6 J7 J8 J9 J10 1 3 1 14 14 1 51 52 2 1 8 7 J2 7 AD0 J2 8 AD1 J2 9 AD2 J2 10 AD3 J2 3 3V3 J2 2 VIO J2 6 GND J1 2 5V0 J1 3 USB UM232 JP PIN Name FUNCTION S5U13781 JP PIN Name J1 2 J1 3 5V0 USB 5 0V OUT VREGIN J2 2 J2 3 3 3V OUT VIO 3V3 VCCIO IN FUNCTION UM232 JP PIN Name FUNCTION UM23...

Page 25: ...rt connect the S5U13781R00C100 reference board to the UM232H via SPI and connect the UM232H to the PC via USB See Section 3 2 2 1 Connection with UM232H Control S1D13781 via SPI for connection information Unzip and apply the UM232H driver prepared in Section 2 1 Instruction for Tool Download and Install Note the S5U13781R00C100 requires an external power supply Launch the project file for Visual C...

Page 26: ...elect Debug from the menu Start Debugging from the sub menu Here if the window opens which asks This project is changed Will you build select Yes A command window is opened and the data write starts It may take several minutes up to 10 to write the alphanumeric image and the four photo images Once writing completes the command window will be closed automatically ...

Page 27: ...four photograph images data are on the PC have a color depth of 24bpp The stored folder is flash_psp pix The software writes each image to the M25P16 in the format used for the demo Alphanumeric image PIP window Written as 8bpp gray scale and by using the Look Up Table LUT the S1D13781 expands this to a color image Four photo images Main window Written as 16bpp image data ...

Page 28: ...M32 F4 Discovery to the PC via USB Launch the project file for IAR Embedded Workbench Double click STM32F4 Discovery_S1D13781 eww located in the project folder STM32F4 Discovery_FW _Vx x x project STM32F4_s1d13781_Demo EWARM Here if the window opens which states Can not open this file then launch IAR Embedded Workbench from the Windows start menu EWARM is launched and project file is opened ...

Page 29: ...on Manual Seiko Epson Corporation 29 Rev 2 1 Build the project file Select Project from the menu Rebuild All from the sub menu Download the code to the STM32 F4 Discovery and write it into Flash Select Project from the menu Download from the sub menu Download active application ...

Page 30: ...Explanation of the Demo using STM32 F4 Discovery 30 Seiko Epson Corporation S5U13781R00C100 Demonstration Manual Rev 2 1 The red LED LD1 blinks and the code will be written LD1 ...

Page 31: ...N STM32 F4 Discovery JP PIN名 FUNCTION STM32 F4 Discovery JP PIN名 FUNCTION P1 15 PA5 SPI1_SCK SPI1_MOSI SPI1_MISOI SPI1_NSS P1 17 PA7 P1 18 PA6 P1 16 PA4 J4 27 SCS SPI CS IN J4 28 SCK SPI SCK IN J4 29 MOSI SPI DATA IN J4 30 MISO SPI DATA S5U13781 JP PIN名 FUNCTION J4 3 VDDIO J3 4 3 3V IN VDDDCDC 3 3V IN J4 1 GND GND J4 2 GND GND J4 47 SCS FLASH CS IN J4 48 SCK FLASH SCK IN J4 49 MOSI FLASH DATA J4 5...

Page 32: ...nnect the S5U13781R00C100 with LCD Panel for further information Power ON starts the demo Supplying power to the STM32 F4 Discovery from USB or 5V external power supply and to the S5U13781R00C100 from 3 3V external power supply starts the demo automatically Connection image The demo proceeds as shown in figure 3 6 Demo Flow Diagram The alphanumeric image PIP window and photo image Main window will...

Page 33: ...re the display image data of the alphanumeric image is 8bpp gray scale and by using the Look Up Table LUT the S1D13781 expands this to a color image The photo image is 16bpp Using the above data formats enables S1D13781 to process display with its built in 384kbytes SRAM START へ START Fade in Fade out Fade in Fade in Fade in Fade out Fade out Fade out ...

Page 34: ...tem consists of the following hardware PC LCD controller S5U13781R00C100 reference board USB SPI conversion board UM232H ATM0430D5 from XIAMEN ZETTLER 4 3 inch 480x272 dots 24 bit full color TFT LCD panel The demo is as follows 1 Color gradation bar display demo using the S1D13781 2D BitBLT feature 2 Still image display In this demo a PPM format image stored in a PC will be used as the demo still ...

Page 35: ... FLASH 55 1 2 49 50 FT232H 8x8mm QFN Mini USB J2 J1 J1 J2 J3 J4 J5 J6 J7 J8 J9 J10 1 3 1 14 14 1 51 52 2 1 8 7 J2 7 AD0 J2 8 AD1 J2 9 AD2 J2 10 AD3 J2 6 GND UM232 JP PIN Name FUNCTION S5U13781 JP PIN Name J1 2 J1 3 5V0 USB 5 0V OUT VREGIN J2 2 J2 3 3 3V OUT VIO 3V3 VCCIO IN FUNCTION UM232 JP PIN Name FUNCTION UM232 JP PIN Name FUNCTION J2 6 GND GND J2 7 AD0 MPSSE SK MPSSE DO MPSSE DI MPSSE CS J2 8...

Page 36: ...r TFT panel from XIAMEN ZETTLER Connect the S5U13781R00C100 reference board and the UM232H via SPI and connect the UM232H to PC via USB See Section 4 1 Connection with UM232H Control S1D13781 via SPI for connection information Unzip and apply the UM232H driver prepared in Section 2 1 Instruction for Tool Download and Install Connection image Launch project file for Visual C 2010 Express Double cli...

Page 37: ...ration Manual Seiko Epson Corporation 37 Rev 2 1 The Visual C 2010 Express window is opened Start the demo by selecting Debug from the menu Start Debugging from the sub menu Here if the window opens which asks This project is changed Will you build select Yes ...

Page 38: ...Explanation of the Demo using a PC 38 Seiko Epson Corporation S5U13781R00C100 Demonstration Manual Rev 2 1 A command window is opened and the data write starts Connection image ...

Page 39: ...tration Manual Seiko Epson Corporation 39 Rev 2 1 This demo displays the images on the LCD in the following order 1 Color gradation bar image using 2D BitBLT feature 2 Displays the image image1_480x272 ppm located in the folder demo_um232h_psp pix Return to 1 ...

Page 40: ...ch 30 2018 Updated address contact page Updated Epson email address Minor formatting changes X94A G 009 02 Revision 2 0 Issued February 21 2013 Added explanation on the sample software which uses STM32 F4 built in 1MB flash memory as a display image data storage X94A G 009 01 Revision 1 0 Issued December 21 2012 Re format and edit document ...

Page 41: ...pport For Sales and Technical Support contact the Epson representative for your region https global epson com products_and_drivers semicon information support html For more information on Epson Display Controllers visit the Epson Global website https global epson com products_and_drivers semicon products display_controllers ...

Reviews: