请求大虾帮助!
#define comm8 XBYTE[0x7ff0]
#define port1 XBYTE[0x7ff1]
#define port2 XBYTE[0x7ff2]
#define port3 XBYTE[0x7ff3]
void funrg1(uchar command)
{
port2=0x08;
port2=0x18;
port1=command;
port2=0x08;
}
void dsdt1(uchar digit)
{
port2=0x08;
port2=0x19;
port1=digit;
port2=0x09;
port2=0x08;
}
这是液晶显示中的两个子函数,哪位做过液晶的大虾帮我指点一下这两个函数为什么这样写,特别是为什么连续向一个端口写两次数据呢?我是菜鸟,刚接触这些东西,希望大虾能说明白点,不胜感激!!
发表时间:2004年9月14日15:11:54