在51单片机上如何让数码管流水式的显示16进制数,答:// Name : 8个数码管的状态 // In :// Out :// Function :// Explain : 10代表灭,其它数字代表真实的显示值 /// uchar display[]={ 7,10,10,10,10,10,10,10, // 右边第一个数码管显示7,第二个灭……6,7,10,10,10,10,10,10, // 右边第一个数码管显示6,第二...
在51单片机的串口通信中,如何在数码管上用16进制显示0-65536答:include<reg52.h> define uchar unsigned char define uint unsigned int uchar code tab_disp[]={ 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};uchar code tabwela[]={ 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};uchar i,k,flag...