用单片机AT89C51 加数码管共阴极的来动态显示学号,比如1234,求用keil...答:include<reg51.h>#define uchar unsigned charuchar tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00}; //0到9uchar num;uchar led[]={1,2,3,4};void t0isr() interrupt 1{TH0=(65536-5000)/256;TL0=(65536-5000)%256;switch(num){case 0:P2=0x01;break...
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...