unsigned char ReadOneChar (unsigned char pposx,unsigned char pposy)
{
unsigned char readdata;
Uchar temp;
temp = pposx & 0xf;
pposy &= 0x3;
if ( pposy==0x01 )temp |= 0x40;
else if ( pposy==0x02 )temp |= 0x10;
else if ( pposy==0x03 )temp |= 0x50;
else ;
temp |= 0x80;
LcdWriteCommand(temp,0);
Delay5Ms();INT0=~INT0;
RS =1; RW = 1; Elcm = 1;;;;;;Elcm = 0;
readdata=DataPort;
;Elcm = 0;
return(readdata);
}
白写,要先写地址再定数据!!!!!!!
发表时间:2005年7月4日19:07:08