谁能告诉我51单片机简单的led数码管时钟程序 24小时制的(c语言版的...答:include "reg52.h"define uint unsigned int define uchar unsigned char uchar code tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};uchar shi,fen,miao;uchar time;void delay(uint x){ uint y;for(;x>0;x--){ for(y=0;y<124;y++);} } void display(uchar s...
单片机 at89c51 6位数码管24小时倒计时程序答:include<reg51.h> define uchar unsigned char define uint unsigned int uchar hour,min,sec;uint count;uchar code tab[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};uchar code add[6]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb};/***延时一毫秒***/ void delay1ms(void...