#include
#include
unsigned char data dis_digit;
unsigned char key_s, key_v;
unsigned char code dis_code[11]={0xc0,0xf9,0xa4,0xb0, // 0, 1, 2, 3
0x99,0x92,0x82,0xf8,0x80,0x90, 0xff};// 4, 5, 6, 7, 8, 9, off
unsigned char data dis_buf[8];
unsigned char data dis_index;
unsigned char hour,min,sec;
unsigned char sec100;
sbit K1 = P2^0;//小时设置键
sbit K2 = P2^1;//分钟设置键
sbit led = P1^0;//倒计时报警输出
//sbit JJ=P2^0;
把它做一个炸弹,放在日本打死管,到时轰的一声,日本人死翘翘了,
倒计时到了,不能停止计时。我用的是中断,计时到关闭计时器,结果还是再跑