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}; ...
用单片机控制一个7段共阳极数码管,循环显示数值“f~0”,显示变换时间为...答:include<reg51.h> define uchar unsigned char define uint unsigned int uchar code tab[]={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e};void delay(uint x){ uint t;while(x--)for(t=0;t<120;t++);} void main(){ uchar num...