H8sx family / h8sx/1600 series system interface board (50 pages)
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...
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).
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.
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...
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.
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.
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.
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”.
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.
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.
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.
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...
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.
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);...
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.
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();...
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.
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).
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.
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.
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.
Need help?
Do you have a question about the H8SX series and is the answer not in the manual?
Questions and answers