萌新求助各位大佬,自己写了一个程序0-99的数码管显示,大哥们帮忙看看
#include#defineuintunsignedint#defineucharunsignedcharuintnum1,num,i,j;ucharcodetable[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};sbitdula=P2^6;sbitwela=P2^7;ucharshi,ge;voiddelay(xms){ for(i=xms;i>0; ...
两位595驱动8位共阴极数码管的程序问题
原理图[attach]863711[/attach]代码:#include<reg52.h>#include<intrins.h>#defineucharunsignedcharucharcodeTable[]={//0 1 2 3 4 5 6 7 8 9 A b Cd EF- 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x86,0 ...