求救,单片机c51 用四位七段数码管动态显示一个数字,怎么不行呢...答:程序错了吧。看看这个程序,可以参考一下。include<reg51.h>#define uchar unsigned charuchar tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00}; //0到9uchar num;uchar led[]={1,2,3,4};void t0isr() interrupt 1{TH0=(65536-5000)/256;TL0=(65536-5000)...
51单片机,8位共阴极数码管动态显示12位学号,按键调整走动速度,C语言的...答:include <reg52.h> include <intrins.h> sbit k_add = P3^1;sbit k_sub = P3^4;unsigned char code SEG7[] = { 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90, 0xff};unsigned char DISP_BUFF[] = { 10, 10, 10, 10, 10, 10, 10, 10,1, 3, 9, 2, 5...