用51单片机C语言编写程序实现6位共阴极数码管循环显示0123456789ABCDEF...答:include<reg51.h># define uint unsigned int# define uchar unsigned charcode uchar shu[] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07, /* 0 1 2 3 4 56 7*/0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}; //数码管段选 /* 8 9a b c def*/...
八段数码管 共阳变共阴程序怎么变啊? 51单片机c语言答:void display(uint t){ uchar i;uchar code BCD_7[11]={/*0,1,2,3,4,5,6,7,8,9,*/ 0x03,0x9F,0x25,0x0D,0x99,0x49,0x41,0x1F,0x01,0x09,};for(;t>0;t--){ for(i=0;i<4;i++){ P0=BCD_7[~(d[i])];if(i==2) P0&=0xfe;P2|=~(0x80>>i);delay();P...