Renesas H8SX Computer Monitor User Manual


 
Direct Drive LCD Design Guide
2.
2.1
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. For examples of each macro usage, refer to the
demonstration code.
LCD Direct Drive Configuration Macros
Macro Name Description Units Demo Location
System Clock Configuration
ICLK_FREQUENCY Clock frequency of MCU core Hz HWSetup.h
PCLK_FREQUENCY Clock frequency of peripherals Hz HWSetup.h
BCLK_FREQUENCY Clock frequency of external bus Hz HWSetup.h
FRAME_HEIGHT Frame Buffer Configuration Lines DirectLCD_CNF.h
FRAME_WIDTH Frame Buffer Configuration Dots DirectLCD_CNF.h
V_LINES_INVERT Frame Buffer Configuration Select DirectLCD_CNF.h
H_DOT_INVERT Frame Buffer Configuration Select DirectLCD_CNF.h
PANEL_ROTATE Frame Buffer Configuration Select DirectLCD_CNF.h
LCD_FRAMES Frame Buffer Configuration Frames DirectLCD_CNF.h
MAX_FRAME_REGIONS Frame Buffer Configuration Regions DirectLCD_CNF.h
SRAM_DD Driver Mode Selection Select DirectLCD_CNF.h
SRAM_NOMUX_DD Driver Mode Selection Select DirectLCD_CNF.h
SDRAM_DD Driver Mode Selection Select DirectLCD_CNF.h
SDRAM_CLUSTER_DD Driver Mode Selection Select DirectLCD_CNF.h
DOT_CLOCK_FREQUENCY_DATA Driver Mode Configuration Hz DirectLCD_CNF.h
DOT_CLOCK_FREQUENCY_BLANK Driver Mode Configuration Hz DirectLCD_CNF.h
DESIRED_FRAME_RATE Driver Mode Configuration Hz DirectLCD_CNF.h
MINIMUM_MCU_ACCESS_PCT Driver Mode Configuration % DirectLCD_CNF.h
DOT_INVERT LCD Panel Configuration Select DirectLCD_CNF(panel).h
V_LINES_PULSE LCD Panel Configuration Lines DirectLCD_CNF(panel).h
V_LINES_BACK_PORCH LCD Panel Configuration Lines DirectLCD_CNF(panel).h
V_LINES_DISPLAY LCD Panel Configuration Lines DirectLCD_CNF(panel).h
V_LINES_FRONT_PORCH LCD Panel Configuration Lines DirectLCD_CNF(panel).h
H_DOT_PULSE LCD Panel Configuration Dots DirectLCD_CNF(panel).h
H_DOT_BACK_PORCH LCD Panel Configuration Dots DirectLCD_CNF(panel).h
H_DOT_DISPLAY LCD Panel Configuration Dots DirectLCD_CNF(panel).h
H_DOT_FRONT_PORCH LCD Panel Configuration Dots DirectLCD_CNF(panel).h
4