单片机51C,主程序为数码管显示,使用外部中断0,每按键一次数字加一_百度...答:include<reg52.h> define uchar unsigned char define uint unsigned int uchar count;uint disnum;sbit dula=P2^6;sbit wela=P2^7;uchar code tabledu[]={0XC0,0XF9,0XA4,0XB0,0X99,0X92,0X82,0XF8,0X80,0X90};display(uchar,uchar,uchar);delay(uchar);void main(){ EA=1;ET1=1;...
用AT89C51单片机控制两位8段LED数码管采用动态显示的方式显示29答:include<reg51.h> define uchar unsigned char;uchar distab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x00}; //0到f uchar number;void t0isr() interrupt 1 { TH0=(65536-5000)/256;TL0=(65536-5000)%256;number++;if(...