...让四个一位数码管分别显示1.-.2.6,急求(51单片机做的,共阳数码_百 ...答:include<reg51.h>#define uchar unsigned charuchar tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x40}; //0到9uchar num,dat,time;uchar led[]={1,10,2,6};void t1isr() interrupt 3{TH1=(65536-10000)/256;TL1=(65536-10000)%256;switch(num){case 0:P2=...
利用51单片机,通过两位数码管显示秒,按键实现计时和停止计时 具体内容...答:A,R2 CJNE A,#100,T0E MOV R2,#0 INC R0 CJNE R0,#10,T0E MOV R0,#0 INC R1 CJNE A,#10,T0E MOV R1,#0T0E: RETIT004: CLR TR0 RETITABLE: ; 共阴极数码管显示代码表 DB 3FH,06H,5BH,4FH,66H ;01234 DB 6DH,7DH,07H,7FH,6FH ;56789END ...