int key1,key,disbuf;// 此表为 LED 的字模 0 1 2 3 4 5 6 7 8 9 a b c d e f unsigned char code LED7Code[] = {0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F,0x77,0x7C,0x39,0x5E,0x79,0x71};unsigned char ledx[8];bit s0,s1;void delay(uchar z...
if(INT0==0){sz++; if(sz>2){sz=0;}}} void T0_int()interrupt 1{ TH0=(65535-50000)/256;//设置初值 TL0=(65535-50000)%256;s++;if(s>20){s=0; if(sz==1)time++; if(time>999){time=0;} if(sz==0){time=0;//清零 } ...
if(INT0==0){sz++; if(sz>2){sz=0;}}} void T0_int()interrupt 1{ TH0=(65535-50000)/256;//设置初值 TL0=(65535-50000)%256;s++;if(s>20){s=0; if(sz==1)time++; if(time>999){time=0;} if(sz==0){time=0;//清零 } ...