void Write_One_Byte(uchar dat)
{
uint i;
uchar j;
bit testb;
for(j=1;j<=8;j++)
{
testb=dat&0x01;
dat=dat>>1;
if(testb)
{
DQ=0;
i++;
i++;
DQ=1;
i=8;
while(i>0)
i--;
}
else
{
DQ=0;
i=8;
while(i>0)
i--;
DQ=1;
i++;
i++;
}
}
}
欢迎光临 (http://www.51hei.com/bbs/) | Powered by Discuz! X3.1 |