51单片机数码管从1加到60然后置0,每次加1led灯流水一次。用kill编_百...答:include<reg51.h>#define uchar unsigned charuchar code ledtab[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e};//共阳级数码管码表0-9uchar led;uchar num=0;uchar dis=0;void delay(uchar a){uchar i;while(a--)for(i=0;i<120...
AT89c51单片机编程实现9–0循环显示数码管显示,求图求程序答:include<reg51.h>#define uchar unsigned charuchar table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f};void delay(){uchar i,j;for(i=0;i<200;i++)for(j=0;j<250;j++);}main(){uchar i;i=9;while(1){if(i>9)i=9;P1=table[i];delay();i--;}} ...
关于单片机数码管显示的程序。看不太懂,求大神帮忙分析一下每一步在...答:code uchar table[]={0x3f,0x06,0x5b,//数码管显示的数值 0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};code uchar key_tab[17]={ //此数组为键盘编码 0xed,0x7e,0x7d,0x7b, // 0,1,2,3,0xbe,0xbd,0xbb,0xde, // 4,5,6,7...
51单片机(四位数码管的显示)程序答:下面这个程序是4x4距阵键盘,LED数码管显示,一共可以到0-F显示,你可以稍微改一下就可以实现你的功能了,如还有问题请发信息,希望能帮上你!include<at89x52.h> unsigned char code Dig[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e}; ...
52单片机的四位共阳极的数码管从0至99的显示程序答:include<reg52.h> define uint unsigned int define uchar unsigned char uchar num,num2,shi,ge,aa;uint num1;sbit dula=P2^6;sbit wela=P2^7;uchar code table[]={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};void display(uchar,uchar);void delay(uint);void main()...
用AT89C51单片机,4位共阴极数码管,显示出1234 程序怎么写??? 请各位...答:MOV 31H,#01H MOV 32H,#02H MOV 33H,#03H MOV 34H,#04H MOV 35H,#05H MOV 36H,#06H ACALL D0 JMP $-2 D0: MOV R0,#31H MOV R2,#11111110B MOV DPTR,#TAB D1: ORL P1,#00111111B MOV A,@R0 MOVC A,@A+DPTR MOV R3,#8 D2...