用c语言编程,用数码管同时显示1-6或自己的学号后六位这6个数字,并让显...答:include<reg52.h> define uint unsigned int define uchar unsigned char sbit dula=P2^6;sbit wela=P2^7;uchar num;uchar code table[]={ 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};void delay(uint z);void main(){ wela=1;//11...
51单片机数码管显示学号答://学号 u8 code Student_Id[18] = { NULL,NULL,NULL,NULL,//不显示 0,8,0,0,2,4,0,1,0,9, //学号 NULL,NULL,NULL,NULL//不显示 };u8 Dispbuf[4];//显示缓冲区 u8 flag = 0;//毫秒延时函数 void Delay_Nms( u16 N ){ u16 i,j;for( i=0; i<N; i++ )for( j=...
单片机C51编程(C语言):用数码管实现学号的显示。我们学号是从704193101...答:动态显示后三位,前六位因数值固定,用数码管直接显示,不于单片机连接。数码管用共阳。main函数部分根据自己情况自行编制 以下为显示部分 uchar code SEG7[10]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};uchar code ACT[8]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}...
单片机数码管动态显示学号80410001,用keil 最好有过程,有连接图...答:include<reg51.h> define uchar unsigned char uchar temp;int key1,key,disbuf;// 此表为 LED 的字模 0 1 2 3 4 5 6 7 8 9 a b c d e f unsigned char code LED7Code[] = {0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F,0x77,0x7C,0x39,0x5E,0x79,0x71};...