Presentation is loading. Please wait.

Presentation is loading. Please wait.

Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 411L:A Direct Drive LCD Software Solution for Driving.

Similar presentations


Presentation on theme: "Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 411L:A Direct Drive LCD Software Solution for Driving."— Presentation transcript:

1 Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 411L:A Direct Drive LCD Software Solution for Driving a Color TFT-LCD Panel Michael Thomas Applications Engineer 13 October 2010 Version: 1.7

2 2 © 2010 Renesas Electronics America Inc. All rights reserved. Michael Thomas Applications Engineer Customer and market segment projects. Support and Collateral for Renesas solutions: – Direct Drive LCD – USB – IKAP PREVIOUS EXPERIENCE: Engineer at D-Link I hold an MSEE from the University of North Carolina

3 3 © 2010 Renesas Electronics America Inc. All rights reserved. Renesas Technology and Solution Portfolio Microcontrollers & Microprocessors #1 Market share worldwide * Analog and Power Devices #1 Market share in low-voltage MOSFET** Solutions for Innovation ASIC, ASSP & Memory Advanced and proven technologies * MCU: 31% revenue basis from Gartner "Semiconductor Applications Worldwide Annual Market Share: Database" 25 March 2010 **Power MOSFET: 17.1% on unit basis from Marketing Eye 2009 (17.1% on unit basis).

4 4 © 2010 Renesas Electronics America Inc. All rights reserved. 4 Renesas Technology and Solution Portfolio Microcontrollers & Microprocessors #1 Market share worldwide * Analog and Power Devices #1 Market share in low-voltage MOSFET** ASIC, ASSP & Memory Advanced and proven technologies * MCU: 31% revenue basis from Gartner "Semiconductor Applications Worldwide Annual Market Share: Database" 25 March 2010 **Power MOSFET: 17.1% on unit basis from Marketing Eye 2009 (17.1% on unit basis). Solutions for Innovation

5 5 © 2010 Renesas Electronics America Inc. All rights reserved. 5 Microcontroller and Microprocessor Line-up Superscalar, MMU, Multimedia  Up to 1200 DMIPS, 45, 65 & 90nm process  Video and audio processing on Linux  Server, Industrial & Automotive  Up to 500 DMIPS, 150 & 90nm process  600uA/MHz, 1.5 uA standby  Medical, Automotive & Industrial  Legacy Cores  Next-generation migration to RX High Performance CPU, FPU, DSC Embedded Security  Up to 10 DMIPS, 130nm process  350 uA/MHz, 1uA standby  Capacitive touch  Up to 25 DMIPS, 150nm process  190 uA/MHz, 0.3uA standby  Application-specific integration  Up to 25 DMIPS, 180, 90nm process  1mA/MHz, 100uA standby  Crypto engine, Hardware security  Up to 165 DMIPS, 90nm process  500uA/MHz, 2.5 uA standby  Ethernet, CAN, USB, Motor Control, TFT Display High Performance CPU, Low Power Ultra Low Power General Purpose

6 6 © 2010 Renesas Electronics America Inc. All rights reserved. Notes continued from previous page (continued from notes section of previous page) Renesas knows that to best facilitate the further growth and success of ubiquitous computing, we cannot offer just one CPU core or a single family of microcomputers. Thus, taking advantage of the broad span of leading technologies we have built up, we have decided to concentrate our future R&D efforts on five major CPU cores capable of excelling at major elements of the huge task. Each is optimized for addressing the requirements of diverse sets of key applications. With that business plan in mind, allow me to explain the relative positioning of these five architectures within our strong portfolio of MCUs and MPUs. An important design trend in recent years has seen system engineers taking full advantage of all the computing power that IC makers have made available — often right up to the limits of project constraints. As a result, there have been more and more design-ins of chips with 32-bit architectures. Renesas now has three complementary 32-bit microcontroller and microprocessor families aiding that trend. At the top end of the features-and-capability spectrum we offer the devices in the SuperH family, a superscalar RISC architecture that executes two instructions per clock cycle. Devices in the SuperH family deliver up to 1200 DMIPS performance, so they’re ideal for and popular in multimedia, Real-time industrial-control, server, and automotive engine- control applications. We also recommend them for performing video and audio processing on Linux-based systems Our second series of 32-bit system design solutions is the V850 family, which today is the top-selling line of 32-bit microcontrollers, worldwide. The V850 architecture provides high performance (up to 500 DMIPS), yet consumes low power while doing so. System designers have found these devices to be particularly well suited for automotive applications. The lower- frequency V850 chips are optimized for low power. Thus, they are excellent choices for portable medical equipment, for example.

7 7 © 2010 Renesas Electronics America Inc. All rights reserved. 7 Microcontroller and Microprocessor Line-up Superscalar, MMU, Multimedia  Up to 1200 DMIPS, 45, 65 & 90nm process  Video and audio processing on Linux  Server, Industrial & Automotive  Up to 500 DMIPS, 150 & 90nm process  600uA/MHz, 1.5 uA standby  Medical, Automotive & Industrial  Legacy Cores  Next-generation migration to RX High Performance CPU, FPU, DSC Embedded Security  Up to 10 DMIPS, 130nm process  350 uA/MHz, 1uA standby  Capacitive touch  Up to 25 DMIPS, 150nm process  190 uA/MHz, 0.3uA standby  Application-specific integration  Up to 25 DMIPS, 180, 90nm process  1mA/MHz, 100uA standby  Crypto engine, Hardware security  Up to 165 DMIPS, 90nm process  500uA/MHz, 2.5 uA standby  Ethernet, CAN, USB, Motor Control, TFT Display High Performance CPU, Low Power Ultra Low Power General Purpose RX Ethernet, CAN, USB, UART, SPI, IIC

8 8 © 2010 Renesas Electronics America Inc. All rights reserved. Innovation

9 9 © 2010 Renesas Electronics America Inc. All rights reserved. My Position Renesas provides a powerful, low cost MCU with FREE but highly capable graphics library. Using this MCU and tools you get get your next project to market faster than the competition!

10 10 © 2010 Renesas Electronics America Inc. All rights reserved. Agenda Introduction to DirectDrive and our Graphical Application Peripheral Interface (GAPI) Lab Session Setup Using Image Viewer The Life of a Screen Using Schemes Lab Create a Scheme Create a new screen Create a font file Q&A

11 © 2010 Renesas Electronics America Inc. All rights reserved. 11 Introduction to Direct Drive and GAPI

12 12 © 2010 Renesas Electronics America Inc. All rights reserved. The Renesas DirectDrive Solution Direct Drive Graphics API (GAPI) Framework freeRTOS Hardware Ext. Bus Driver RTOS GAPI FrameWork USB DriverEthernet Driver USB-APIEthernet-API User Application Direct Drive

13 13 © 2010 Renesas Electronics America Inc. All rights reserved. A few basic concepts. How does an LCD screen work? 480 272 8 8 8 Data (24 bpp) H-SYNC V-SYNC Pixel CLK Control

14 14 © 2010 Renesas Electronics America Inc. All rights reserved. QVGA (320 x 240) pixel placement and sync pulses Vertical Sync (1 per frame) D1,DH1 R5R5 G6G6 B5B5 1 PIXEL (or DOT) 16 BITS THERE ARE 78,600 (= 320 x 240) OF THESE ON THIS PANEL Horizontal Sync (1 per line, 240 lines per frame) L1, P1L1, P2L1, P3L1, P320 1 st LINE L2, P1L2, P2L2, P3L2, P320 2 nd LINE L240, P1L240, P2L240, P3L240, P320 240 th LINE L1,P1 means “Line 1, Pixel 1” L2,P1 means “Line 2, Pixel 1”

15 15 © 2010 Renesas Electronics America Inc. All rights reserved. Painting a TFT Screen Horizontal Sync Dot Clock 16-bit RGB Data Data Enable H BACK PORCH P2 P1 FIRST PIXEL H FRONT PORCH Vertical Sync Horizontal Sync Bursts of Lines ONE LINE STARTS NEXT LINE STARTS LINE 1: BURST OF 320 PIXELS L1 L2L240 P320 LAST PIXEL ONE FRAME STARTS NEXT FRAME STARTS VERTICAL BACK PORCH V FRONT PORCH

16 16 © 2010 Renesas Electronics America Inc. All rights reserved. H8S Direct Drive H8S/2456 MCU 32 MHz 64KB SRAM 256KB FLASH Timer (TPU) exDMA Controller SRAM or PSRAM Frame Buffer 128K x 16 or 512K x 16 Flash & SRAM H8S CPU System Peripherals including USB EDREQ Pixel CLK Vsync, Hsync, Enable Address bus RD/ WR/ 16 bit Data Bus RGB (5:6:5) ADDR RGB (5:6:5) Processing * QVGA Refresh rate 50 fps 16 bpp color V sync 20 msec (50Hz refresh rate) CPU cannot access frame buffer (ExDMA moving data from PSRAM to LCD) 42% of Frame (8.5 msec) CPU can access frame buffer (ExDMA finished moving from data PSRAM to LCD) Up to 58% of Frame QVGA TFT-LCD RX62N 100 MHz 96 K RAM 512K ROM RX CPU

17 17 © 2010 Renesas Electronics America Inc. All rights reserved. What is GAPI? Graphics Application Programming Interface: GAPI “A set of routines that allow for the simple creation and manipulation of raster based images in RAM memory frames” Feature rich Transparency using alpha-channel Colorization Gradient generation Selective area manipulation of frames Hardware independent GAPI user manual FREE for solutions that use Renesas MCUs

18 18 © 2010 Renesas Electronics America Inc. All rights reserved. Start the Lab: Running the Demo Keep your dice turned to 1. (Instructions are provided in the lab handout) Please refer to the Lab Handout and let’s get started!

19 19 © 2010 Renesas Electronics America Inc. All rights reserved. Checking Progress of Session 1 We are using the die to keep track of where everyone is in the lab. Make sure to update it as you change sections. When done with the lab session, have the die 6 pointing up as shown here.

20 20 © 2010 Renesas Electronics America Inc. All rights reserved. How would you debug this?

21 21 © 2010 Renesas Electronics America Inc. All rights reserved. Image Viewer Built in HEW Utility View contents of internal or external memory on PC Useful tool to differentiate between hardware and software bugs

22 22 © 2010 Renesas Electronics America Inc. All rights reserved. Structure of a BMP file (r_gapiu_bmp.c) static const BMP_t BMP_header= { {0x42, 0x4D}, /* bfSignature[2]: "BM" */ {0x48, 0x58, 0x02, 0x00}, /* bfFileSize[4]: 0x00025848 */ {0x00, 0x00, 0x00, 0x00}, /* bfReserved[4]: 0x00000000 */ {0x3A, 0x00, 0x00, 0x00}, /* bfDataOffset[4]: 0x0000003A */.... {0xE0, 0x07, 0x00, 0x00}, /* 6 bits of GREEN */ {0x1F, 0x00, 0x00, 0x00}, /* 5 bits of BLUE */ {0x00, 0x00, 0x00, 0x00}, /* 0 bits of ALPHA */ } }; Use R_BMP_Offset( )

23 23 © 2010 Renesas Electronics America Inc. All rights reserved. Start the Lab : Using Image Viewer Keep your dice turned to 2. (Instructions are provided in the lab handout) Please refer to the Lab Handout and let’s get started!

24 24 © 2010 Renesas Electronics America Inc. All rights reserved. Checking Progress of Session 2 We are using the die to keep track of where everyone is in the lab. Make sure to update it as you change sections. When done with the lab session, have the die 6 pointing up as shown here.

25 25 © 2010 Renesas Electronics America Inc. All rights reserved. The Life of a Screen Say you want to display this

26 26 © 2010 Renesas Electronics America Inc. All rights reserved. In the beginning, there was a blank SDRAM… Load Resources Create buffers of “Panel Size” Find background image in Resources.bin (Framework) Copy image into backFrameBuf (GAPI) Find button image in Resources.bin (Framework) Copy to workFrameBuf (GAPI) Find font in Resources.bin (Framework) Write text onto button in workFrameBuf (GAPI) Copy both to displayFrameBuf (GAPI) SDRAM Resources.bin backFrameBuf workFrameBuf displayFrameBuf

27 27 © 2010 Renesas Electronics America Inc. All rights reserved. Schemes Determines the visual behavior of an associated button “General” scheme and Font scheme General scheme determines behavior of the button Font scheme determines behavior of the font Each scheme is a two-dimensional array: [0]: behavior in inactive state [1]: behavior in active state

28 28 © 2010 Renesas Electronics America Inc. All rights reserved. Schemes: General Scheme and Font Scheme typedef struct { BMP_ColorTable_t ct[2]; {0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0x00, 0x00} GAPI_PUT_t font; &pfontTerminal, struct { uint16_t Colorize: 2; 1 uint16_t Text: 1; 1 uint16_t Transparency: 3; GAPI_T_MAGIC } Options; }GAPI_Scheme_t; typedef struct { GAPI_Font_t const **ppFont; BMP_ColorTable_t ct[2]; {0x00, 0xD7, 0xFF,0x00, 0x00, 0x00, 0xA0, 0x00} int16_t SpacingX; 0 int16_t SpacingY; 0 struct { uint16_t Align_H: 2; 0 uint16_t Align_V: 2; 0 uint16_t Hflip: 1; 0 uint16_t Vflip: 1; 0 uint16_t Bgnd_transparent:1; 1 uint16_t Fgnd_transparent:1; 0 } Options; }GAPI_PUT_t; General Scheme Font Scheme

29 29 © 2010 Renesas Electronics America Inc. All rights reserved. Editing the font scheme RRRRR R R RRR Center justifiedForeground colored Right justified Left justified Background transparentForeground transparent Background colored Font change Colorize button: Set in general scheme

30 30 © 2010 Renesas Electronics America Inc. All rights reserved. Start the Lab: Edit a Scheme Keep your dice turned to 3. (Instructions are provided in the lab handout) Please refer to the Lab Handout and let’s get started!

31 31 © 2010 Renesas Electronics America Inc. All rights reserved. Checking Progress of Session 3 We are using the die to keep track of where everyone is in the lab. Make sure to update it as you change sections. When done with the lab session, have the die 6 pointing up as shown here.

32 32 © 2010 Renesas Electronics America Inc. All rights reserved. The button static const ICON_type Icons[]= { // Bit map Address Color Scheme Function call X Pos Y Pos { &pBMP_ButtonS, T_Scheme, PRESS_fn, 110, 210 }, { &pBMP_ButtonS, T_Scheme, DoNotPRESS_fn, 160, 210 }, } Touch Handler Event Queue Event Manager PRESS_fn()DoNotPRESS_fn() Buttonhandler() MSG_PRESS at 120,220 PRESS DO NOT PRESS User Function Framework Call

33 33 © 2010 Renesas Electronics America Inc. All rights reserved. The Event Manager Event Message Structure(screenmgr.h) typedef struct { EVENT_TYPE type; // Event or Message type EVENT_ID id; // Event or Message ID union { struct SCREEN_TYPE const *pS; // Screen pointers sI16 coord[2]; // X/Y coordinate of an event uI32time; // time updated every 1 sec }param; } EVENT_MSG; A few EVENT_ID types(screenmgr.h) MSG_MOVE MSG_PRESS (used in example on previous slide) MSG_RELEASE MSG_DRAW MSG_TIME_UPDATE

34 34 © 2010 Renesas Electronics America Inc. All rights reserved. Start the Lab: Creating a Screen Keep your dice turned to 4. (Instructions are provided in the lab handout) Please refer to the Lab Handout and let’s get started!

35 35 © 2010 Renesas Electronics America Inc. All rights reserved. Checking Progress of Session 4 We are using the die to keep track of where everyone is in the lab. Make sure to update it as you change sections. When done with the lab session, have the die 6 pointing up as shown here.

36 36 © 2010 Renesas Electronics America Inc. All rights reserved. Wrap-up Introduction to DirectDrive and GAPI Using Image Viewer Using Schemes Creating a font file Creating a new screen

37 37 © 2010 Renesas Electronics America Inc. All rights reserved. Questions?

38 38 © 2010 Renesas Electronics America Inc. All rights reserved. Innovation

39 39 © 2010 Renesas Electronics America Inc. All rights reserved. Feedback Form Please fill out the feedback form! If you do not have one, please raise your hand

40 40 © 2010 Renesas Electronics America Inc. All rights reserved. Thank You!

41 Renesas Electronics America Inc.


Download ppt "Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 411L:A Direct Drive LCD Software Solution for Driving."

Similar presentations


Ads by Google