void serial_IT(void) interrupt 4
{
char c;
start:
if (RI == 1)
{
RI = 0;
c = SBUF;
if(c <= 24)
{
buzzer=1;led_off=0;led=0;
zone = c/10;
error_type = c%10;
send_command_lcd(0xc0," \0");
send_command_lcd(0xc0,"ZONE \0");
send_com_lcd8(0xc5,zone);
//if(error_type == 1)
// tt[zone]=1;
if(error_type == 2)
send_command_lcd(0xc8,"SHORT \0");
else if(error_type == 3)
send_command_lcd(0xc8,"OPEN \0");
else if(error_type == 4)
{send_command_lcd(0xc8,"FIRE \0");dial();}
delay_ms1(70);
//send_command_lcd(0xc0," \0");
goto start; }
}
}