关于液晶显示DDRAM的程序问题!
/*************************向DDRAM写中文编码***************************/void write_LCD_word(unsigned int a)
{
unsigned int t=a;
unsigned char b,c;
c = (unsigned char)t;
t = t>>8;//右移
b = (unsigned char)t;
write_LCDdata(b);
write_LCDdata(c);
}
/********************向DDRAM写数据***********************/
void write_LCDdata(unsigned char a)
{
extern int i;
unsigned char t=0,tmp=a;
EA = 0;
ET0 = 0;
Judge_BF();//判断忙
RS = 1;
RW = 0;
LCDE = 1;
P0 = a;
LCDE = 0;
EA = 1;
ET0 = 1;
}
我用的是LCM128645ZK液晶显示模块,控制芯片是ST7920。
我想问向DDRAM写中文编码到底是怎么写进去的……我自己无法确定。
write_LCD_word(0xC7EB);//请
大虾们可以解释下这个请字怎么通过P0口写入进去的。