includereg51h>sbitsent=P3^7;bitflag=0;sbitp35=P3^5;sbitp34=P3^4;sbitp31=P3^1;sbitp30=P3^0;sbitp17
includereg51h>includeintrinsh>includemathh>defineucharunsignedchardefineuintunsignedintdefi
includereg51h>unsignedcharcodeseg7[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}数码管码表unsi
includereg51h>includedish>**延时1**用于消抖voiddelay1(void){uchari;for(i=0;i200;i++);}****延时2*******
includereg51h>includeintrinsh>defineucharunsignedchardefineuintunsignedintsbitCLK=P1^3;sbitST=