51单片机数码管滚动显示答:include <reg52.h> define uchar unsigned char define uint unsigned int uchar code SEG_B_List[11]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xff};//共阳数码管代码表"0-9","空"define StuNumLeng 14 //学号长度,加了2个空格 uchar StuNum[StuNumLeng]={10,2...
请帮忙,这是运用51单片机实现4位8段LED数码管的动态数字显示的c语音程 ...答:include<reg52.h> define uchar unsigned char//宏定义 define uint unsigned int uchar count;uint disnum;sbit dula=P2^6;sbit wela=P2^7;uchar code tabledu[]={//段码表 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};void display(...
用AT89C51单片机控制LED数码管能够显示时间和日期,求电路图和程序代码...答:这是一个朋友做的,你可以参考一下:include <reg52.h>#define uchar unsigned char#define uint unsigned intsbit db=P2^7;char i,sec,min,h,date,month,year,flag;uchar j,k,m,n,o,p;sbit dula=P2^0;sbit wela1=P2^1;sbit wela2=P2^2;sbit key_ch=P3^5;sbit key_add=P3^6;...