极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀! 极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀! 极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀! 极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀! 极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀!极端悲哀!
已经说了,在51里,你那句:P1=0x00;是有问题的!!! 51的端口是准双向的,查查书,看看是什么意思!
sbit d_clk=P1^0; //移位时钟 sbit d_cp=P1^1; //串/并 锁定 sbit d_dat=P1^2; //DATA OUT, P1=0x00; 你就把P1的所有位都拉低了,后面你就只能读回0了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|