用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...
(单片机求助)用数码管显示自己的学号(例如2830850407),要求用汇编语言...答:AJMP MAIN ORG 30H MAIN: MOV 20H,#2 ;把你的学号的10位送到相应单元 MOV 21H,#8 MOV 22H,#3 MOV 23H,#0 MOV 24H,#8 MOV 25H,#5 MOV 26H,#0 MOV 27H,#4 MOV 28H,#0 MOV 29H,#7 LCALL DISP ;显示子程序 AJMP MAIN DISP: MOV A,20H ;送最高位到A ACALL SEG...
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=...