if(previous==0) previous=c;
else
{
order=((unsigned int)
(previous-0xa1)*94+kk-0xa1);
previous=order%8;
aaa=32*previous;
order=order/8;
SCON=0;
SBUF=concode[0x52];
kk=order/128;
while(!TI);
SCON=0;
SBUF=concode[kk]; kk=order%128;
kk<<=1;
while(!TI);
SCON=0;
SBUF=concode[kk]; kk=aaa%256;
while(!TI);
SCON=0;
SBUF=concode[kk]; for(kk=0;kk<4;kk++)
{
while(!TI);
SCON=0;
SBUF=concode[0xff]; }
while(!TI);
SCON=0x10;
for (kk=0;kk<16;kk++)
{
Graph_Address(x,y*8+kk);
while(!RI);
previous=SBUF;
SCON=0x10;
write_lcd(concode[previous]);
ctrl(0xc0);
while(!RI);
previous=SBUF;
SCON=0x10;
write_lcd(concode[previous]);
ctrl(0xc0);
}
previous=0x00;
}
}
结束语
本文介绍的液晶显示模块已成功应用在便携式轨头断面激光检测仪中,由于其具有与MCU接口方便、显示功能强和编程简单等优点,具有广泛的应用价值。