| 我的一个程序段如下: for(i = 0;i < 8;i++)
 {
 /*    if((Vdatain & 0x01)==1)
 P02 = 1;
 else
 P02 = 0;*/
 P02 = (Vdatain & 0x01);
 delay(10);
 P01 = 1;
 delay(10);
 P01 = 0;
 if (i == 7)
 break;
 Vdatain >>=1;
 }
 delay(10);
 delay(10);
 P24 = 1;
 P03 = 1;
 delay(10);
 P03 = 0;
 但是运行后P24引脚监测不到高电平,请高手指教,万分感谢!
 |