下面是51单片机30秒倒计时程序,怎么把它改成24小时倒计时程序,别的不变...答:sbit breakk=P3^4;sbit led=P3^5;sbit beep=P3^7;sbit P30=P3^0;sbit P31=P3^1;unsigned char code duanma[]= { 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xff };char time=24;//【原来的30s改为24小时】char flag_t=0; // 1秒辅助计时 char now=0; /...
...要求用定时器中断定时1秒。 仿真元件数码管为7SEG-COM-CATHODE_百度...答:7SEG-COM-CATHODE 为共阴管 include<reg51.h> define uchar unsigned char define uint unsigned int uchar num=60,shi,ge;uchar code TAB[]={ 0x3F,/*0*/ 0x06,/*1*/ 0x5B,/*2*/ 0x4F,/*3*/ 0x66,/*4*/ 0x6D,/*5*/ 0x7D,/*6*/ 0x07,/*7*/ 0x7F,/*8*/ 0x6F,/*...