本帖最后由 wwx3425 于 2015-5-17 21:45 編輯
void send(uchar*datl,uchar m)
{ uchar i,j,temp
cs=1; //片選信號
cs=0; 產(chǎn)生下降沿
for(j=0,j<2,j++) //
{temp=datl[2*m+j]; //先送八位高數(shù)據(jù)?這個語句怎么理解,哪位高手指點一下,在下不勝感激
for(i=0,i<8,i++)
clk=0;
if((temp&(0x80)==0x80)
{DAT=1; }
else
{ DAT=0;
}
}
|