51单片机设计数码管显示时钟的程序怎么写答: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(unsigned int x){unsigned int i,...
51单片机电子钟程序数码管显示答:sbit dula=P2^6;sbit wela=P2^7;sbit beep=P2^3;unsigned char j,k,a1,a0,b1,b0,c1,c0,s,f,m,key=10,temp,qq;uchar shi20,shi10,fen20,fen10,miao20,miao10,new,ok=1,wei;unsigned int pp;unsigned char code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x...
用C语言编数码管时钟程序答:功能:利用定时器,产生秒计数器,使数码管显示时间和年月日,还有跑表。05-02-01 / include <reg51.h> //LCD的口线 sbit E=P3^5;sbit RW=P3^6;sbit RS=P3^7;//8字LED的连接方法 //P0.7,P0.6,P0.5,P0.4,P0.3,P0.2,P0.1,P0.0 //G, F A E B H ...
求程序用AT89C51单片机...用六位数码管实现数字时钟,显示时分秒,用两个...答:sbit m=P3^0;sbit n=P3^1;uchar code table[]={ //数码管编码表 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};void display(uchar miao,uchar fen,uchar shi);void delay(uint z);void init();void main(){ init();//初始化子程序 miao=0;shi=0;fen=0;while(1){...