设计过SED1335夜晶显示的进来帮下忙,好吗?
关于SED1335的屏读问题
就是画点的时候不是要将屏数据读出来再与写入数据或吗,那个读操作怎么写啊?
请指教,先谢谢拉!以下是我写的程序;
#define uchar unsigned char
#define uint unsigned int
#define LcdParame XBYTE[0X6000]
#define LcdCommand XBYTE[0x6001]
unsigned char idata temp;
unsigned char ReadLcd(void )
{
LcdCommand=0x43; // Read Control , A=1; // 读操作
temp=LcdCommand;
return(temp);
}
void Drawdian(uint x,uint y) //写操作
{
uchar a;
LcdAddress.Addrint=0x1000+y*0x28+(uint)(x/8);
LcdCommand=0x46;LcdParame=LcdAddress.Addrchar[1];LcdParame=LcdAddress.Addrchar[0];
LcdCommand=0x4c;
a=0x80> > (x%8);
ReadLcd();
LcdCommand=0x42;LcdParame=a|temp;
}
发表时间:2006年5月22日10:14:07