Instruction/ maintenance manual of the product H8S Renesas
Go to page of 26
H8S/H8SX Series Direct Drive LCD Design Guide Version 2.6 User’s Manual Direct Drive Solution Rev. 2.60 September, 2009 Renesas Technology America america.
Direct Drive LCD Design Guide Index 1. INTRODUCTION ................................................................................................................................................ 3 1.1 D IRECT D RIVE LCD O VER VIEW ..................
Direct Drive LCD Design Guide 4. LCD API DEFINITION ............................................................................................................................... ...... 15 4.1.1 S tandar d Redefines ..................................
Direct Drive LCD De sign Guide 1. 1.1 Introduction This document provides technical information of how to configure the LCD p anel parameters re quired by Renesas LCD Dire ct Driver according to the LCD p anel datashe et published by the manufacturers.
Direct Drive LCD De sign Guide 2. 2.1 Driver Configuration The LCD Direct Driver is configur ed through the setting of macro defin itions. These macros are illustrated in the sample code. The followin g table briefly describe s the location of each of these macros and their location in LCD Direct Drive demonst ration code.
Direct Drive LCD De sign Guide Macro Name Description Units Demo Location FRAME_CS Platform Configuration CS # DirectLCD_CNF(platform ). h FRAME_BUS_CYCLES Platform Configuration Bclk DirectLCD_CNF(platform ).h CAS_LATENCY Platform Configuration Bclk DirectLCD_CNF(platform ).
Direct Drive LCD De sign Guide 2.2 Frame Buffer Configuration The frame buf fer is the external memory area that is used to store the 16bpp image dat a that will be presented on the LCD screen.
Direct Drive LCD De sign Guide Figure 1. RAM Frame Raster Dat a Figure 2. P ANEL_ROT A TE Mode Figure 3. Images from V arious Display Settings 7.
Direct Drive LCD De sign Guide 2.3 Driver Mode Selection There are several dif ferent modes of operation current ly supported in the Direct Drive LCD driver . The selection of operation mode depe nds on RAM type selection and LCD panel resolution. 2.3.
Direct Drive LCD De sign Guide Figure 5 H8SX SDRAM in Cluster Mod e Note 1: T o create the highest L CD Dot Clock frequency on th e H8SX requires using cl uster mode. In this mode, EDACK is not generated and an equi valent sign al must be generated. The above circuit creates the necessary timing.
Direct Drive LCD De sign Guide Figure 6 LCD Panel Macro Definitions 2.6 LCD Plat form Configuration The LCD Direct Driver is configured to operate with a given hardware pla tform by setting m acro definitions. These values will have to be determined from the sc hematics on the hardware platform.
Direct Drive LCD De sign Guide 2.6.10 Xxxx_TPU_CHANNEL Enter the channel number for the requested TPU sig nal. For example if the H8SX DOTCLK is mapped to TPU TIOCB0, enter “0 ”. 2.6.11 Xxxx_TPU_PIN Enter the pin letter for the requested TPU sign al.
Direct Drive LCD De sign Guide 3. 3.1 T ypical LCD Panel Connections This section illustrates typical con nections on an LCD panel and how they are interfaced to the MCU in a Direct Drive configuration. LCD p anel interface Figure 7 Example Connections for a Kyocera TFT -LCD Panel 3.
Direct Drive LCD De sign Guide entire panel to fill with valid pixels is the maximum refresh rate. Displa ys in existing media systems usually have refresh rates between 48Hz and 1 20Hz to avoid visible flicker . HSync, VSync and Dot Clock are all generate d using TPU channels of the H8S or H8SX microco ntrollers.
Direct Drive LCD De sign Guide 3.2 Hardware Design Below is a block diagram of a LCD system whi ch uses Flash and SRAM for respectively storing and buffering the i mages to be displayed. The following t able describes the TPU chann els and pi ns used for direct drive.
Direct Drive LCD De sign Guide LCD API Definition 4. 4.1.1 S t andard Redefines These following type have been redefined in order to make the cod e easier for formatting.
Direct Drive LCD De sign Guide 4.1.3 LCDInit Direct Driver Initialization. Format LCDErrorType LCDInit(void); Parameters none Return V alues 0 if successful, non-zero if failure. Properties Prototyped in file ”DirectLCD.h” Implemented in file “DirectLCD_SBF .
Direct Drive LCD De sign Guide 4.1.4 LCDBacklight Direct Driver backlight cont rol. Format void LCDBacklight(int state); Parameters state Requested backlight st ate 0=of f, non -0 = on. Return V alues None Properties Prototyped in file ”DirectLCD.h” Implemented in file “DirectLCD_SBF .
Direct Drive LCD De sign Guide 4.1.5 LCDSetFrameRate Configure the vertical refresh rate of the LCD p anel. Format sI16 LCDSetFrameRate(sI16 rate); Parameters rate Requested refresh rate (in Hz) Return V alues Negative value indicates rate was not able to be ac hieved wit h system configuration.
Direct Drive LCD De sign Guide 4.1.6 LCDGetFrameRate Request the vertical refresh rate of the LCD p a nel. Format sI16 LCDGetFrameRate(void); Parameters none Return V alues Current frame rate in Hz. Properties Prototyped in file ”DirectLCD.h” Implemented in file “DirectLCD_SBF .
Direct Drive LCD De sign Guide 4.1.7 LCDSetActiveRaster Set memory frame to display . Format uI16 * LCDSetActiveRaster(uI16 frame); Parameters frame Requested frame buf fer in dex. Return V alues Pointer to first pixel of frame raster . Properties Prototyped in file ”DirectLCD.
Direct Drive LCD De sign Guide 4.1.8 LCDGetActiveFrame Request which memory frame is currentl y displayed Format uI16 LCDGetActiveFrame(void); Parameters none Return V alues Index of active frame raster . Properties Prototyped in file ”DirectLCD.h” Implemented in file “DirectLCD_SBF .
Direct Drive LCD De sign Guide 4.1.9 LCDSetRasterOffset Request display location wi thin large r raster image Format sI16 LCDSetRasterOffset(sI16 x, sI16 y); Parameters x X offset in pixels within the raster . y Y of fs et in pixels within the raster .
Direct Drive LCD De sign Guide 4.1.10 LCDSetLineSource Defines the source regions of the active display window . Format sI16 LCDSetLineSource (sI16 Region, sI16 LineCount, uI16 *pSource, sI16 LineStep); Parameters Region Region of display (horizont al strip).
Direct Drive LCD De sign Guide Website and Support Renesas Technolo gy Website http://www.renesas.com/ Inquiries http://www.renesas.com/inquiry csc@renesas.com Revision Record Description Rev. Date Page Summary 1.00 Jan.28.08 — First edition issued 1.
Direct Drive LCD De sign Guide 1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use.
An important point after buying a device Renesas H8S (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought Renesas H8S yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data Renesas H8S - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, Renesas H8S you will learn all the available features of the product, as well as information on its operation. The information that you get Renesas H8S will certainly help you make a decision on the purchase.
If you already are a holder of Renesas H8S, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime Renesas H8S.
However, one of the most important roles played by the user manual is to help in solving problems with Renesas H8S. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device Renesas H8S along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center