DSP2812读写LCD程序不明白
时间:10-02
整理:3721RD
点击:
//LCD指令
void WriteLcdCode(unsigned int content)
{
unsigned int uTemp;
if(ReadLcdBusy()==FALSE)
return;
EALLOW;
GpioMuxRegs.GPADIR.all|=0xFF00; //设置GPIOA高8位管脚为输出
EDIS;
LcdCtrl&=~(LCD_RW|LCD_RS);
LCDCTRL=LcdCtrl;
//每次写入数据时保持GPIOA的低8位不受高8位影响
uTemp=GpioDataRegs.GPADAT;
uTemp&=0xFF;
uTemp|=(content&0xFF)<<8;
GpioDataRegs.GPADAT.all=uTemp;
LcdCtrl|=LCD_EN;
LCDCTRL=LcdCtrl;
LcdCtrl&=~LCD_EN;
LCDCTRL=LcdCtrl;
}
红色的部分不太懂是什么意思 求大神指导,DSP控制LCD读写的额!
void WriteLcdCode(unsigned int content)
{
unsigned int uTemp;
if(ReadLcdBusy()==FALSE)
return;
EALLOW;
GpioMuxRegs.GPADIR.all|=0xFF00; //设置GPIOA高8位管脚为输出
EDIS;
LcdCtrl&=~(LCD_RW|LCD_RS);
LCDCTRL=LcdCtrl;
//每次写入数据时保持GPIOA的低8位不受高8位影响
uTemp=GpioDataRegs.GPADAT;
uTemp&=0xFF;
uTemp|=(content&0xFF)<<8;
GpioDataRegs.GPADAT.all=uTemp;
LcdCtrl|=LCD_EN;
LCDCTRL=LcdCtrl;
LcdCtrl&=~LCD_EN;
LCDCTRL=LcdCtrl;
}
红色的部分不太懂是什么意思 求大神指导,DSP控制LCD读写的额!