Page 1
Please note that Cypress is an Infineon Technologies Company. The document following this cover page is marked as “Cypress” document as this is the company that originally developed the product. Please note that Infineon will continue to offer the product to new and existing customers as part of the Infineon product portfolio.
AN204388 Getting Started For FM4 S6E2DH (GAT-D) Associated Part Family: S6E2DH Series The purpose of this guide is to provide a brief introduction of the graphics resolution of S6E2DH designated by Cypress. Contents Preface ..............1 Sprite Special Effect ........30 About This Guide ..........
S6E2D-2DGraphicsDriver-v1.00.798-IAR \01_bin\arm_none_iar\release\basic_graphics.a S6E2D-2DGraphicsDriver-v1.00.798-IAR \01_bin\arm_none_iar\release\util.a Utilization of GAT-D Tool Step by Step The follow steps explain how to use GAT-D Tool to arrange a video (a series of frame) to display on S6E2DH Series based LCD device. Create a new project...
Step1: Open GAT-D Tool, the tool will open as follow. Figure 2. Opened GAT-D Tool Window Step2: Click “Project” menu and click “new” as follows Figure 3. New Project Menu Step3: Input the name and select LCD Size. www.cypress.com Document No. 002-04388 Rev. *B...
Getting Started for FM4 S6E2DH (GAT-D) Figure 4. New Project Step 1 of 2 Step4: Click “Next” and then click “Finish” a new project will create as follow. Figure 5. New Project Import Images Step1: Click “Image Library” www.cypress.com Document No. 002-04388 Rev. *B...
Page 6
Figure 7. Add New Image Menu Step3: Go to the path and select images, image will list as follow. Note: Image’s file type support bmp, png, jpeg, gif, psd. Figure 8. Added Image List www.cypress.com Document No. 002-04388 Rev. *B...
C r e a t e a n e w P a g e Step1: Right click “Page” folder, and click “New Page” in the menu. Figure 9. New Page Menu Then a new page is created as follow. Figure 10. Created New Page www.cypress.com Document No. 002-04388 Rev. *B...
Page 8
Figure 11. Page Property Menu Step2: Check “Enable”, the background color of page could be changed. Select RGB Color, if there is nothing on the page, LCD will display background color. Figure 12. Page Property Window www.cypress.com Document No. 002-04388 Rev. *B...
Page 9
If want to add several window to a layer, you have to set the layer option to multi-window layer, otherwise could only add one window to a layer Figure 13. Add Window Step2: Double click window in work area, window configuration window will displays. Configure them. Figure 14. Window Property www.cypress.com Document No. 002-04388 Rev. *B...
Page 10
Operator” Engine Engine Image in window not set to “Blend Operator” The setting of “Alpha-blending”, will effects blend result of image on the window with background. Figure 16. Window Alpha Blend Illustrations Illustrations A: www.cypress.com Document No. 002-04388 Rev. *B...
Page 11
Getting Started for FM4 S6E2DH (GAT-D) Illustrations B: Illustrations C: Illustrations D: www.cypress.com Document No. 002-04388 Rev. *B...
Page 12
Step1: Select image from “Image Library”, drag it to a selected window and drop, image is added as follow. Figure 17. Added Image to Window Step2: Double click image, image configuration window will displays. Configure them www.cypress.com Document No. 002-04388 Rev. *B...
Page 13
Getting Started for FM4 S6E2DH (GAT-D) Figure 18. Image Property Window For behavior of Alpha Blend configuration, refer to following illustrations. Figure 19. Alpha Blend Illustrations Image used: RGBA : (255, 255, 255, 0) Opaque Illustration A: www.cypress.com Document No. 002-04388 Rev. *B...
Page 14
Getting Started for FM4 S6E2DH (GAT-D) Illustration B: Illustration C: www.cypress.com Document No. 002-04388 Rev. *B...
Figure 21. Edited All Pages View Flow Design Table Creation 3.4.1 Ad d a F l o w D e s i g n Step1: Right click “FlowDesignTable” folder, and click “New Flow Design” in the menu. www.cypress.com Document No. 002-04388 Rev. *B...
Page 19
Figure 23. Flow Design Window Action Table Tab Step3: Click “+” to add actions, and select page for action to display. Note: Action is something like a small video (a series of frame), www.cypress.com Document No. 002-04388 Rev. *B...
Page 20
Step5: Click “Object Timeline Editor”, “Timeline Editor” window will display. Figure 25. Timeline Editor Window Step6: Select the frames where want to display the image, double click then select “Frame Insert.” Note: The head number is frames. Figure 26. Frame Insert Menu www.cypress.com Document No. 002-04388 Rev. *B...
Page 21
Figure 28. Inserted Frame View Step8: Check “Display is Clear in Final Frame” if display nothing after action play over. Change “Frame Rate” to 60fps because frame rate of S6E2DH series is 60fps. Click “▶” can simulate action in Display window.
Select Flow Design if there are any. Click “OK” to generate source with other options default. Figure 31. Source Generation Option Window Step3: Follow window means source generation success, and generated source could be found in selected path in step2. www.cypress.com Document No. 002-04388 Rev. *B...
Step1: Get Graphics Driver package S6E2D-2DGraphicsDriver-v1.00.798-IAR.zip, extract it to any path. Find the S6E2DH-Graphics resolution-Ver1.0-IAR\03. Sample\02. IAR\GAT-D Proj.zip and extract it to 04_sample of Graphics Driver’s extracted path. Figure 33. Sample Path Step2: Open IAR project. Figure 34. Sample Project File www.cypress.com Document No. 002-04388 Rev. *B...
Page 24
Step5: Add all new generated sources (*.c files only are OK) from S6E2D-2DGraphicsDriver-v1.00.798-IAR \04_sample\GAT-D Proj\source\Demeter\GenCode to IAR project. Figure 37. New Source Add Menu Note: The minimum call of API is implemented in main.c. www.cypress.com Document No. 002-04388 Rev. *B...
Step1: Right click IAR project group, select “Rebuild All” in the menu to build project. Figure 39. Rebuild Menu Step2: Confirm no errors. Figure 40. Build Result Step3: Click “Download and Debug” button on IAR EW IDE to down program Figure 41. Debug Button www.cypress.com Document No. 002-04388 Rev. *B...
Page 26
Getting Started for FM4 S6E2DH (GAT-D) Step4: Click “Go” button to run. Figure 42. Run Button Step5: Confirm display on LCD is the same action selected on “Action Table”. Figure 43. Startup Action View www.cypress.com Document No. 002-04388 Rev. *B...
With this, in embedded side only need to implement event confirmation, if one event is triggered, Call GAT-D API: GhcProject_sendEvent_Ex(eGEN_xxxx) the referenced action will be displayed. xxxx: event name. See 5.1.6 also for details. Follows are the sample. Figure 45. Sample of Action Table www.cypress.com Document No. 002-04388 Rev. *B...
For event type, there are three kinds: System, Hardware and Object. In PC side there is no difference actually. User’s Source Code Beside with event management, GAT-D provides a place for user to input standard C source code. As follows: Figure 47. User’s Code View www.cypress.com Document No. 002-04388 Rev. *B...
Page 29
Inputted code will be automatically added with: Figure 49. Edited Code View With the “Sequence” selected “Code > Action”, the code will be implemented before action display. If want to implement after action display, could select “Action > Code” like: www.cypress.com Document No. 002-04388 Rev. *B...
After edited event table and action table, the behavior can be simulated in GAT-D. Click “Simulate” to display “Flow Design Simulator” window. Figure 51. Simulate Button Click “▶” will play “Startup Action”, then select event click “Send”, action will be played according to description of event table. www.cypress.com Document No. 002-04388 Rev. *B...
GAT-D V01 support sprite special effect, follow figure show where to set it. Figure 53. Sprite Special Effect B l i n k 4.4.1 After set special sprite effect mode, the special effect could be set according follow figure. www.cypress.com Document No. 002-04388 Rev. *B...
API, in PC side need to check “Button” and input the “Button name”. The “Button name” must apply to standard C expression which is used in calling API. See 5.1.7 also for details. www.cypress.com Document No. 002-04388 Rev. *B...
Source Generate Option S6E2DH series supply “USB Direct Programmer” to program flash image to internal flash and external flash, with this can program GAT-D’s image data to external flash directly. GAT-D can generate image data to flash image file which apply to “USB Direct Programmer”.
Page 34
“Image Data Offset (Hex)” is the start address of external flash. Value is set to 0xC0000000 by default which is the start address of external flash used by Graphics Driver. The start address must same with setting of “USB Direct Programmer” while download. Figure 58. Setting View of Programme www.cypress.com Document No. 002-04388 Rev. *B...
If there is an action playing, stop the playing. Type Name Description Parameter Void TGhcBool True: success; False: fail Return This calling should be arranged in another routine different with action is playing in. Note www.cypress.com Document No. 002-04388 Rev. *B...
Page 37
Get the current page id displayed on LCD Type Name Description Parameter TGhcU32 a_pCurrentPageId Address to save id of page 1* TGhcBool True: success; False: fail Return 1*: The id is defined of page name in GAT-D Tool. Note www.cypress.com Document No. 002-04388 Rev. *B...
1*: The calling will not return until action playing complete or never return if its endless loop action, in this case, the only method is calling Ghcproject_StopRuningAction () in an interrupt routine. 2*: Assume it is operation in touch panel detection routine. 3*: These sources are implemented by GAT-D user. www.cypress.com Document No. 002-04388 Rev. *B...
Note: Images generate to C source, also be programed to external flash. GAT-D Tool to generate bin file or not could be selected in tool. Refer to user’s manual of GAT-D for details. www.cypress.com Document No. 002-04388 Rev. *B...
Construction Sample project is at: 03. Sample\02. IAR\ 02. S6E2DH_Demo_Washmachine\S6E2DH_Demo_Washmachine Project.zip, but the compiling will not success unless put it to 04_sample of S6E2D-2DGraphicsDriver-v1.00.798-IAR.zip ‘s extract path. Follow figure shows construction of sample project: www.cypress.com Document No. 002-04388 Rev. *B...
Page 41
Compile Link GAT-D Generated source (1*) Tool source.a User Other function source edited GAT-D API.a GAT-D API Library basic_graphics.a Graphics util.a Driver 1*: Include or not include image to external flash is OK www.cypress.com Document No. 002-04388 Rev. *B...
Next event is press “Next” button on LCD Selection: Back event is press “Back” button on LCD Next event is press “Next” button on LCD Washing: Next event is press “Stop” button on LCD www.cypress.com Document No. 002-04388 Rev. *B...
Document Number: 002-04388 Revision Orig. of Submission Description of Change Change Date TOAO 07/01/2015 release Initial Migrated Spansion Application Note “S6E2DH_AN709-00024” to Cypress 5028487 TOAO 12/04/2015 format 5873566 AESATP12 09/06/2017 Updated logo and copyright. www.cypress.com Document No. 002-04388 Rev. *B...
Page 44
Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products.
Need help?
Do you have a question about the S6E2DH Series and is the answer not in the manual?
Questions and answers