📄 conf_lcd.h
字号:
#define LCD_INTERFACE_ADDR_HOLD_TIME 0
//! --- Access width time ---
//! Read pulse width (in unit ns)
#define LCD_INTERFACE_RD_PULSE_WIDTH 40
//! Write pulse width (in unit ns)
#define LCD_INTERFACE_WR_PULSE_WIDTH 40
//! --- Full access cycle time ---
//! Define the sleep time (inaction time) in the access cycle time
//! Values: - TRUE: Access cycle time fully used (sleep time automatically computed)
//! - FALSE: Sleep time takes the same value than the one of access width
#define LCD_INTERFACE_FULL_ACCESS_CYCLE_TIME TRUE
//! --- Cycle time ---
//! Full access cycle time (in unit ns)
#define LCD_INTERFACE_CYCLE_TIME 100
//! ****** Automatic busy process ******
//!
//! --- Bits of the LCD controller status to check busy states ---
//! Values: 0x00 busy check disabled since no bit selected
//! ...
//! 0xFF all bits of the lcd controller status are to check
#define LCD_INTERFACE_BUSY_MASK 0
//! --- Busy active level ---
//! Define the active level of the busy bits
//! Values: - HIGH_LEVEL: Active level for the busy bits is high
//! - LOW_LEVEL : Active level for the busy bits is low
#define LCD_INTERFACE_BUSY_ACTIVE_LEVEL HIGH_LEVEL
//! ****** Read / write operations ******
//!
//! --- Level on A0/RS pin to select the data and instruction registers ---
//! Values: - HIGH_LEVEL: high level on pin A0/RS to select the instruction register
//! - LOW_LEVEL : low level on pin A0/RS to select the instruction register
#define LCD_INTERFACE_INSTRUCTION_REG_PIN_LEVEL LOW_LEVEL
//! Implement or not the functions to display user pictures JPEG/BMP
//! Values: - ENABLED
//! - DISABLED
#define IMAGE_SUPPORT (ENABLED)
#endif // #ifdef (LCD_CONTROLLER_PART_NUMBER == LCD_CONTROLLER_LGDP4216)
//_____ L C D C O N T R O L L E R R E F : MTF602T022 ____________________
#if (LCD_CONTROLLER_PART_NUMBER == LCD_CONTROLLER_MTF602T022)
//!_____ DEFINITIONS TO CONFIGURE DISPLAY INTERFACE _________________________
//! Input data : timing and interface features form the LCD controller datasheets for VDD=2.7 to 5.5V
//! Output data : values computed and loaded in the 3 display interface registers
//! LCDCON0, LCDCON1, LCDBUM by the function lcd_drv_basic_init_interface()
//!
//! ****** Access cycles ******
//!
//! --- Interface type ---
//! Either following definition is to set active
#define LCD_INTERFACE_TYPE_8080
//! --- Cycle type ---
//! Either following definition is to set active
#define LCD_INTERFACE_CYCLE_NORMALIZED
//! ****** Cycle timings ******
//!
//! --- Address set-up/hold time ---
//! Times to define in unit ns
#define LCD_INTERFACE_ADDR_SETUP_TIME 0
#define LCD_INTERFACE_ADDR_HOLD_TIME 0
//! --- Access width time ---
//! Read pulse width (in unit ns)
#define LCD_INTERFACE_RD_PULSE_WIDTH 50
//! Write pulse width (in unit ns)
#define LCD_INTERFACE_WR_PULSE_WIDTH 50
//! --- Full access cycle time ---
//! Define the sleep time (inaction time) in the access cycle time
//! Values: - TRUE: Access cycle time fully used (sleep time automatically computed)
//! - FALSE: Sleep time takes the same value than the one of access width
#define LCD_INTERFACE_FULL_ACCESS_CYCLE_TIME TRUE
//! --- Cycle time ---
//! Full access cycle time (in unit ns)
#define LCD_INTERFACE_CYCLE_TIME 100
//! ****** Automatic busy process ******
//!
//! --- Bits of the LCD controller status to check busy states ---
//! Values: 0x00 busy check disabled since no bit selected
//! ...
//! 0xFF all bits of the lcd controller status are to check
#define LCD_INTERFACE_BUSY_MASK 0
//! --- Busy active level ---
//! Define the active level of the busy bits
//! Values: - HIGH_LEVEL: Active level for the busy bits is high
//! - LOW_LEVEL : Active level for the busy bits is low
#define LCD_INTERFACE_BUSY_ACTIVE_LEVEL HIGH_LEVEL
//! ****** Read / write operations ******
//!
//! --- Level on A0/RS pin to select the data and instruction registers ---
//! Values: - HIGH_LEVEL: high level on pin A0/RS to select the instruction register
//! - LOW_LEVEL : low level on pin A0/RS to select the instruction register
#define LCD_INTERFACE_INSTRUCTION_REG_PIN_LEVEL LOW_LEVEL
//! Implement or not the functions to display user pictures JPEG/BMP
//! Values: - ENABLED
//! - DISABLED
#define IMAGE_SUPPORT (ENABLED)
#endif // #if (LCD_CONTROLLER_PART_NUMBER == LCD_CONTROLLER_MTF602T022)
//_____ L C D C O N T R O L L E R R E F : SSD1332 ____________________
#if( LCD_CONTROLLER_PART_NUMBER == LCD_CONTROLLER_SSD1332 )
//!_____ DEFINITIONS TO CONFIGURE DISPLAY INTERFACE _________________________
//! Input data : timing and interface features form the LCD controller datasheets for VDD=2.7 to 5.5V
//! Output data : values computed and loaded in the 3 display interface registers
//! LCDCON0, LCDCON1, LCDBUM by the function lcd_drv_basic_init_interface()
//!
//! ****** Access cycles ******
//!
//! --- Interface type ---
//! Either following definition is to set active
#define LCD_INTERFACE_TYPE_8080
//! --- Cycle type ---
//! Either following definition is to set active
#define LCD_INTERFACE_CYCLE_NORMALIZED
//! ****** Cycle timings ******
//!
//! --- Address set-up/hold time ---
//! Times to define in unit ns
#define LCD_INTERFACE_ADDR_SETUP_TIME 0
#define LCD_INTERFACE_ADDR_HOLD_TIME 0
//! --- Access width time ---
//! Read pulse width (in unit ns)
#define LCD_INTERFACE_RD_PULSE_WIDTH 120
//! Write pulse width (in unit ns)
#define LCD_INTERFACE_WR_PULSE_WIDTH 60
//! --- Full access cycle time ---
//! Define the sleep time (inaction time) in the access cycle time
//! Values: - TRUE: Access cycle time fully used (sleep time automatically computed)
//! - FALSE: Sleep time takes the same value than the one of access width
#define LCD_INTERFACE_FULL_ACCESS_CYCLE_TIME TRUE
//! --- Cycle time ---
//! Full access cycle time (in unit ns)
#define LCD_INTERFACE_CYCLE_TIME 300
//! ****** Automatic busy process ******
//!
//! --- Bits of the LCD controller status to check busy states ---
//! Values: 0x00 busy check disabled since no bit selected
//! ...
//! 0xFF all bits of the lcd controller status are to check
#define LCD_INTERFACE_BUSY_MASK 0
//! --- Busy active level ---
//! Define the active level of the busy bits
//! Values: - HIGH_LEVEL: Active level for the busy bits is high
//! - LOW_LEVEL : Active level for the busy bits is low
#define LCD_INTERFACE_BUSY_ACTIVE_LEVEL HIGH_LEVEL
//! ****** Read / write operations ******
//!
//! --- Level on A0/RS pin to select the data and instruction registers ---
//! Values: - HIGH_LEVEL: high level on pin A0/RS to select the instruction register
//! - LOW_LEVEL : low level on pin A0/RS to select the instruction register
#define LCD_INTERFACE_INSTRUCTION_REG_PIN_LEVEL LOW_LEVEL
//! Implement or not the functions to display user pictures JPEG/BMP
//! Values: - ENABLED
//! - DISABLED
#define IMAGE_SUPPORT (ENABLED)
#endif // #ifdef (LCD_CONTROLLER_PART_NUMBER == LCD_CONTROLLER_SSD1332)
//_____ L C D C O N T R O L L E R R E F : ST7628 ____________________
#if( LCD_CONTROLLER_PART_NUMBER == LCD_CONTROLLER_ST7628 )
//!_____ DEFINITIONS TO CONFIGURE DISPLAY INTERFACE _________________________
//! Input data : timing and interface features form the LCD controller datasheets for VDD=2.7 to 5.5V
//! Output data : values computed and loaded in the 3 display interface registers
//! LCDCON0, LCDCON1, LCDBUM by the function lcd_drv_basic_init_interface()
//!
//! ****** Access cycles ******
//!
//! --- Interface type ---
//! Either following definition is to set active
#define LCD_INTERFACE_TYPE_8080
//! --- Cycle type ---
//! Either following definition is to set active
#define LCD_INTERFACE_CYCLE_NORMALIZED
//! ****** Cycle timings ******
//!
//! --- Address set-up/hold time ---
//! Times to define in unit ns
#define LCD_INTERFACE_ADDR_SETUP_TIME 10
#define LCD_INTERFACE_ADDR_HOLD_TIME 10
//! --- Access width time ---
//! Read pulse width (in unit ns)
#define LCD_INTERFACE_RD_PULSE_WIDTH 90
//! Write pulse width (in unit ns)
#define LCD_INTERFACE_WR_PULSE_WIDTH 35
//! --- Full access cycle time ---
//! Define the sleep time (inaction time) in the access cycle time
//! Values: - TRUE: Access cycle time fully used (sleep time automatically computed)
//! - FALSE: Sleep time takes the same value than the one of access width
#define LCD_INTERFACE_FULL_ACCESS_CYCLE_TIME TRUE
//! --- Cycle time ---
//! Full access cycle time (in unit ns)
#define LCD_INTERFACE_CYCLE_TIME 160
//! ****** Automatic busy process ******
//!
//! --- Bits of the LCD controller status to check busy states ---
//! Values: 0x00 busy check disabled since no bit selected
//! ...
//! 0xFF all bits of the lcd controller status are to check
#define LCD_INTERFACE_BUSY_MASK 0
//! --- Busy active level ---
//! Define the active level of the busy bits
//! Values: - HIGH_LEVEL: Active level for the busy bits is high
//! - LOW_LEVEL : Active level for the busy bits is low
#define LCD_INTERFACE_BUSY_ACTIVE_LEVEL HIGH_LEVEL
//! ****** Read / write operations ******
//!
//! --- Level on A0/RS pin to select the data and instruction registers ---
//! Values: - HIGH_LEVEL: high level on pin A0/RS to select the instruction register
//! - LOW_LEVEL : low level on pin A0/RS to select the instruction register
#define LCD_INTERFACE_INSTRUCTION_REG_PIN_LEVEL LOW_LEVEL
//! Implement or not the functions to display user pictures JPEG/BMP
//! Values: - ENABLED
//! - DISABLED
//#define IMAGE_SUPPORT (ENABLED)
#define IMAGE_SUPPORT (DISABLED)
#endif // #ifdef (LCD_CONTROLLER_PART_NUMBER == LCD_CONTROLLER_ST7628)
#endif //! _CONF_LCD_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -