FSMC只使用數(shù)據(jù)口地址線沒有用 調試也沒問題
u16 LCD_ReadReg(u8 LCD_Reg)
{
u16 data;
/* Write 16-bit Index (then Read Reg) */
LCD_CS_RST;
LCD_RS_RST;
LCD_WR_RST;
LCD->LCD_REG = LCD_Reg;
LCD_WR_SET;
/* Read 16-bit Reg */
LCD_RS_SET;
LCD_RD_RST;
LCD_RD_SET;
data=LCD->LCD_RAM;
LCD_CS_SET;
return data;
}
評論