Renesas H8SX series User Manual
Renesas H8SX series User Manual

Renesas H8SX series User Manual

Direct drive lcd
Hide thumbs Also See for H8SX series:

Advertisement

Quick Links

H8S/H8SX Series
Direct Drive LCD Design Guide Version 2.6
User's Manual
Direct Drive Solution
Renesas Technology America
Rev. 2.60
america.renesas.com
September, 2009

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the H8SX series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Renesas H8SX series

  • Page 1 H8S/H8SX Series Direct Drive LCD Design Guide Version 2.6 User’s Manual Direct Drive Solution Renesas Technology America Rev. 2.60 america.renesas.com September, 2009...
  • Page 2: Table Of Contents

    Direct Drive LCD Design Guide Index INTRODUCTION... 3 LCD O IRECT RIVE VERVIEW 1.1.1 Philosophy ...3 1.1.2 Capabilities...3 DRIVER CONFIGURATION... 4 LCD D IRECT RIVE ONFIGURATION RAME UFFER ONFIGURATION 2.2.1 FRAME_HEIGHT ...6 2.2.2 FRAME_WIDTH ...6 2.2.3 V_LINES_INVERT...6 2.2.4 H_DOT_INVERT...6 2.2.5 PANEL_ROTATE ...6 2.2.6 LCD_FRAMES ...6...
  • Page 3 Direct Drive LCD Design Guide LCD API DEFINITION... 15 4.1.1 Standard Redefines ...15 4.1.2 LCD API Data Types ...15 4.1.3 LCDInit...16 4.1.4 LCDBacklight ...17 4.1.5 LCDSetFrameRate...18 4.1.6 LCDGetFrameRate...19 4.1.7 LCDSetActiveRaster ...20 4.1.8 LCDGetActiveFrame ...21 4.1.9 LCDSetRasterOffset...22 4.1.10 LCDSetLineSource ...23 WEBSITE AND SUPPORT ... 24 REVISION RECORD...
  • Page 4: Introduction

    An overview of the system hardware is also provided Direct Drive LCD Overview The H8S and H8SX device families include several peripherals that enable the direct connection of RGB interface TFT panels directly to the MCU data bus. These peripherals include the ExDMA (external DMA controller unit) and the TPU (Timer Pulse Unit).
  • Page 5: Driver Configuration

    Direct Drive LCD Design Guide Driver Configuration The LCD Direct Driver is configured through the setting of macro definitions. These macros are illustrated in the sample code. The following table briefly describes the location of each of these macros and their location in LCD Direct Drive demonstration code.
  • Page 6 Direct Drive LCD Design Guide Macro Name FRAME_CS FRAME_BUS_CYCLES CAS_LATENCY SDRAM_PAGE_SIZE VSYNC_PORT VSYNC_PIN HSYNC_PORT HSYNC_PIN DOTCLK_PORT DOTCLK_PIN LCD_BACKLIGHT_PORT LCD_BACKLIGHT_PIN EXDMAC_DD EXDMAC_DD_INTC EXDMAC_DD_VECT EXDMAC_DD_REQ_PORT EXDMAC_DD_REQ_PIN DOTCLK_TPU_INTC DOTCLK_TPU_CHANNEL DOTCLK_TPU_PIN DOTCLK_TPU_VECT DOTPER_TPU_CHANNEL DOTPER_TPU_PIN DOTPER_TPU_VECT HPER_TPU_INTC HPER_TPU_CHANNEL HPER_TPU_PIN HPER_TPU_VECT HSYNC_TPU_INTC HSYNC_TPU_CHANNEL HSYNC_TPU_PIN HSYNC_TPU_VECT VSYNC_TPU_INTC VSYNC_TPU_CHANNEL VSYNC_TPU_PIN VSYNC_TPU_VECT...
  • Page 7: 2.2 Frame Buffer Configuration

    Either or both of these macros can be specified at the same time. PANEL_ROTATE (only available on H8SX) is the macro to allow user image to be rotated in transfer to the panel as shown in the Figure 2.
  • Page 8 Direct Drive LCD Design Guide Figure 1. RAM Frame Raster Data Figure 2. PANEL_ROTATE Mode Figure 3. Images from Various Display Settings...
  • Page 9: Driver Mode Selection

    Defining this macro selects a mode of operation that utilizes SRAM (or PSRAM) as the frame buffer. In this operation mode, the TPU supplies the dot clock during data transfer and blanking. This operation mode can currently only be used on the H8SX on panels that do not require driving a “data enable” signal. 2.3.3 SDRAM_DD Defining this macro selects a mode of operation that utilizes SDRAM as the frame buffer.
  • Page 10: Driver Mode Configuration

    Direct Drive LCD Design Guide Note 1: To create the highest LCD Dot Clock frequency on the H8SX requires using cluster mode. In this mode, EDACK is not generated and an equivalent signal must be generated. The above circuit creates the necessary timing.
  • Page 11: 2.6 Lcd Platform Configuration

    Enter the associated port for the requested signal mapping. For example if the LCD_BACKLIGHT is on port PM1, set the pin value to “1”. 2.6.8 Xxxx_INTC Enter the SFR field for the associated interrupt controller peripheral. For example if the H8SX ExDMAC 2 is being used, enter “INTC.IPRJ.BIT._EXDMAC2”. 2.6.9 Xxxx_VECT Enter the interrupt vector number for the associated peripheral.
  • Page 12: Xxxx_Tpu_Channel

    Enter the channel number for the requested TPU signal. 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 signal. For example if the H8SX DOTCLK is mapped to TPU TIOCB0, enter “B”.
  • Page 13: Typical Lcd Panel Connections

    Direct Drive LCD Design Guide Typical LCD Panel Connections This section illustrates typical connections on an LCD panel and how they are interfaced to the MCU in a Direct Drive configuration. LCD panel interface Figure 7 Example Connections for a Kyocera TFT-LCD Panel 3.1.1 Power Supplies Many panels require multiple supplies.
  • Page 14: Data Enable

    48Hz and 120Hz to avoid visible flicker. HSync, VSync and Dot Clock are all generated using TPU channels of the H8S or H8SX microcontrollers. The TPU allows timer compare actions which synchronize these signals to the ExDMA request line. This ensures that the clocks are generated when valid data is available on the bus.
  • Page 15: 3.2 Hardware Design

    Direct Drive LCD Design Guide 3.2 Hardware Design Below is a block diagram of a LCD system which uses Flash and SRAM for respectively storing and buffering the images to be displayed. The following table describes the TPU channels and pins used for direct drive. Note that the TPU synchronization capability is used to create a common time base between the HDEN, HSYNC and VSYNC pins.
  • Page 16: Standard Redefines

    Direct Drive LCD Design Guide LCD API Definition Standard Redefines 4.1.1 These following type have been redefined in order to make the code easier for formatting. typedef unsigned char typedef signed char typedef unsigned short uI16; typedef signed short typedef unsigned long typedef signed long LCD API Data Types 4.1.2...
  • Page 17: Lcdinit

    0 if successful, non-zero if failure. Properties Prototyped in file ”DirectLCD.h” Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family. Description This function is used to initialize the hardware necessary for the Direct Drive LCD to execute. This function uses the configuration macros to set up the TPU and ExDMAC peripherals to transfer data from the frame RAM to the LCD panel.
  • Page 18: Lcdbacklight

    Requested backlight state 0=off, non-0 = on. Return Values None Properties Prototyped in file ”DirectLCD.h” Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family. Description This function is used to control the state of the LCD backlight. Example LCDBacklight(1);...
  • Page 19: Lcdsetframerate

    MCU access time available. Properties Prototyped in file ”DirectLCD.h” Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family. Description This function is used to control the vertical refresh rate of the LCD panel. This function can be used to dynamically adapt the MCU access time based on system conditions.
  • Page 20: Lcdgetframerate

    Return Values Current frame rate in Hz. Properties Prototyped in file ”DirectLCD.h” Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family. Description Request the current vertical refresh rate of the LCD panel. Example sI16 old_rate = LCDGetFrameRate();...
  • Page 21: Lcdsetactiveraster

    Pointer to first pixel of frame raster. Properties Prototyped in file ”DirectLCD.h” Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family. Description Request the current vertical refresh rate of the LCD panel. Note that LCDSetActiveRaster, LCDSetRasterOffset and LCDSetLineSource are similar in function and interact.
  • Page 22: Lcdgetactiveframe

    Index of active frame raster. Properties Prototyped in file ”DirectLCD.h” Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family. Description Request which memory frame is currently displayed. Note that this function only returns valid information when LCDSetActiveRaster is used to control the display content (as opposed to LCDSetLineSource).
  • Page 23: Lcdsetrasteroffset

    0 on success, non-0 on failure Properties Prototyped in file ”DirectLCD.h” Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family. Description LCDSetRasterOffset changes the display position within the raster. The offset is limited to be within area allocated by the FRAME_HEIGHT x FRAME_WIDTH space.
  • Page 24: Lcdsetlinesource

    0 on success, non-0 on failure Properties Prototyped in file ”DirectLCD.h” Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family. Description LCDSetLineSource defines the source regions of the active display window. Note that LCDSetActiveRaster, LCDSetRasterOffset and LCDSetLineSource are similar in function and interact.
  • Page 25: Website And Support

    Direct Drive LCD Design Guide Website and Support Renesas Technology Website http://www.renesas.com/ Inquiries http://www.renesas.com/inquiry csc@renesas.com Revision Record Rev. Date 1.00 Jan.28.08 1.10 Apr.28.08 2.20 Jan.13.09 2.30 Mar.16.09 2.40 May.11.09 2.50 June.8.09 2.60 Sept.25.2009 Description Page Summary — First edition issued Updated —...
  • Page 26 Please be sure to implement safety measures to guard against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other applicable measures.

This manual is also suitable for:

H8s series

Table of Contents