long maikuan() { TMOD=0x90; EA=1; ET1=1; IT1=1; TH1=0; TL1=0; m=0; TR1=1; while(P3_3==1...long maikuan(){TMOD=0x90;EA=1;ET1=1;IT1=1;TH1=0;TL1=0;m=0;TR1=1;while(P3_3==1);while(P3_3==0);TR1=1;while(P3_3==1);TR1=0;return((m*65536+TH1*256+TL1));} 那几
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 07:29:28
long maikuan() { TMOD=0x90; EA=1; ET1=1; IT1=1; TH1=0; TL1=0; m=0; TR1=1; while(P3_3==1...long maikuan(){TMOD=0x90;EA=1;ET1=1;IT1=1;TH1=0;TL1=0;m=0;TR1=1;while(P3_3==1);while(P3_3==0);TR1=1;while(P3_3==1);TR1=0;return((m*65536+TH1*256+TL1));} 那几
long maikuan() { TMOD=0x90; EA=1; ET1=1; IT1=1; TH1=0; TL1=0; m=0; TR1=1; while(P3_3==1...
long maikuan()
{
TMOD=0x90;
EA=1;
ET1=1;
IT1=1;
TH1=0;
TL1=0;
m=0;
TR1=1;
while(P3_3==1);
while(P3_3==0);
TR1=1;
while(P3_3==1);
TR1=0;
return((m*65536+TH1*256+TL1));
}
那几个while怎么回事?
long maikuan() { TMOD=0x90; EA=1; ET1=1; IT1=1; TH1=0; TL1=0; m=0; TR1=1; while(P3_3==1...long maikuan(){TMOD=0x90;EA=1;ET1=1;IT1=1;TH1=0;TL1=0;m=0;TR1=1;while(P3_3==1);while(P3_3==0);TR1=1;while(P3_3==1);TR1=0;return((m*65536+TH1*256+TL1));} 那几
TR1=1; //计时开始 是不是放错位置了?
while(P3_3==1);//等待P3的3号接脚变成低电平
while(P3_3==0);//等待P3的3号接脚变成高电平
TR1=1;
while(P3_3==1);//等待P3的3号接脚变成低电平
TR1=0;//停止计时