51单片机设计数码管显示时钟的程序怎么写答:include<reg51.h>#define uchar unsigned charuchar code ledtab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x40};//0-9unsigned char sec=0,min=0,hour=12,scanled;unsigned char key,flashbit,mode,time; unsigned char disdat[8];sbit led=P1^0;void delay(...
51单片机汇编语言设计一个数字时钟,要求: a.能够在数码管或者LCD上显 ...答:LOOPLOOP3:CJNE A,#15,LOOP4;“+”暂停CLR TR0CLR ET0CLR PAUSESJMP LOOPLOOP4:CJNE A,#14,LOOP5;“-”清显示暂停MOV 33H,#10HMOV 34H,#10HMOV 35H,#10HMOV 36H,#10HMOV 37H,#10HMOV 38H,#10HCLR TR0CLR ET0CLR PAUSESJMP LOOPLOOP5:CJNE A,#10,LOOP6;数字键LOOP6:...
求一个简单的单片机时钟程序答:include<reg51.h>#define uchar unsigned charuchar code ledtab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};//0-9unsigned char sec=0,min=0,hour=0,scanled;unsigned char key,time; unsigned char disdat[6];sbit K=P1^0;void dischg(){disdat[0]=sec%10;dis...