TMS320F28335 - SSD1963 7" TFT LCD테스트 (SD Card를 이용한 BMP이미지 출력)
TMS320F28335 TFT-LCD드라이버 코드
extern volatile Uint16 gExinf0Buff[100];
//-----------------------------------------------------------------------------
// TFT LCD Driver
#define _USE_EXINF 1
#define TFT_DRV_HD66791 0
#define TFT_DRV_COM44 0
#define TFT_DRV_AT070 1
#define TFT_DRV_LMS700K 0
#define LCD_LAT_BIT BIT2 //-> GPIO34
#define LCD_LAT_PORT PORTB
#define LCD_LAT_ON() //Sbi(LCD_LAT_PORT, LCD_LAT_BIT);NOP();
#define LCD_LAT_OFF() //Cbi(LCD_LAT_PORT, LCD_LAT_BIT);NOP();
#define LCD_DATA_LATCH() LCD_LAT_ON();LCD_LAT_OFF();
#define LCD_EN_BIT BIT4 //GP36
#define LCD_EN_PORT GPIOB
#define LCD_ENABLE() //cbi(LCD_EN_PORT, LCD_EN_BIT);
#define LCD_DISABLE() //sbi(LCD_EN_PORT, LCD_EN_BIT);
#define LCD_RST_BIT BIT25
#define LCD_RST_PORT GPIOA
#define LCD_RST_ON() sbi(LCD_RST_PORT, LCD_RST_BIT);
#define LCD_RST_OFF() cbi(LCD_RST_PORT, LCD_RST_BIT);
#define _LCD_CMD_OUT(Data) gExinf0Buff[0] = Data
#define _LCD_DAT_OUT(Data) gExinf0Buff[1] = Data
#define TFTGpioInit() EALLOW;\
GpioCtrlRegs.GPAMUX2.bit.GPIO25 = 0;\
GpioCtrlRegs.GPADIR.bit.GPIO25 = 1;\
GpioCtrlRegs.GPAMUX2.bit.GPIO24 = 0;\
GpioCtrlRegs.GPADIR.bit.GPIO24 = 1;\
EDIS;
//-----------------------------------------------------------------------------
TMS320F28335 7" TFT-LCD 출력 테스트