sbit key1 = P3^0;
sbit key2 = P3^1;
sbit key3 = P3^2;//对按键进行定义
sbit buzz = P1^2;//蜂鸣器外设控制端口定义
sbit DU = P2^0;
sbit WE = P2^1;
unsigned char array[]={0x38,0x3f,0x3e,0x79,0x3e};//定义L O V E U数码管显示
bit buzz_jiou=0,led_jiou=0;
unsigned int timenum = 0;
unsigned int num = 0,num1 = 0,num2 = 0,num3=0,num4=0;
unsigned int time5 =0;
void Delay1ms(unsigned int k) //@11.0592MHz
{
unsigned char i, j;
for(;k>0;k--)
{
_nop_();
_nop_();
_nop_();
i = 11;
j = 190;
do
{
while (--j);
} while (--i);
}
}
void display(unsigned int second,unsigned char lednum)
{