void interrupt1()interrupt 4 using 2
{
if(RI==1) {RI=0;}
else if(TI==1){
TI = 0;
AD_add=1;
delay();
AD_OE=1;
i=P;
SBUF=i;
}
}
main()
{
EA=1;
ES=1;
ET1=1;
SCON=0x50;
PCON=0;
TMOD=0x20;
TH1=253;
TL1=253;
TCON=0x40;
AD_add=1;
delay();
AD_OE=1;
i=P;
SBUF=i;
while(1);
}
如试验OK,送下分哦,谢谢 |
|