#define LLCD_CMD_WR XBYTE[0xf4f0]
#define LLCD_DAT_WR XBYTE[0xf5f0]
#define LLCD_CMD_RD XBYTE[0xf6f0]
#define LLCD_DAT_RD XBYTE[0xf7f0]
#define RLCD_CMD_WR XBYTE[0xf8f0]
#define RLCD_DAT_WR XBYTE[0xf9f0]
#define RLCD_CMD_RD XBYTE[0xfaf0]
#define RLCD_DAT_RD XBYTE[0xfbf0]
void check_busy(uchar right)
{
uchar temp=0xff;
do
{
if(right) temp=RLCD_CMD_RD;//这里为什么要这么做?是传的数据还是地址?
else temp=LLCD_CMD_RD;
}
while ((temp|0x7f)==0xff);
//检测 D7 是否为 1,1 表示 LCD 忙,如果忙,继续检测,直到空闲止
}
忙检测里需不需要对P0下1,然后这个XBYTE[]有点不理解。