BEEP=0; LED=1; baojing_flag=0; } } }
void T0_time() interrupt 1 { TH0=(65536-50000)/256; TL0=(65536-50000)%256; num++; if(num==20) { num=0; num1++; } } void main() { init_t0(); EX0 = 1; IT0 = 1; PX0 = 1; S2=0; LED=1; IN=1; BEEP=0; while(1) { key_manage_baojing(); if(baojing_flag) { TR0=1; S2=1; BEEP=~BEEP; delayms(500); } else { TR0=0; BEEP=0;