Sudhp
Member level 4
Hello everyone,
I am working on a project using AT89s52 and using keil Uvision 4 as compiler.Here i am using uart communication interrupt method..
I am posting it here....
While compiling this i found a complete compilation
But when i just made a little change by replacing dial(); function with fire_alarm(); the compiler gives me error
Any suggestion why this error and how to come over from it???
I am working on a project using AT89s52 and using keil Uvision 4 as compiler.Here i am using uart communication interrupt method..
I am posting it here....
Code:
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; }
}
}
But when i just made a little change by replacing dial(); function with fire_alarm(); the compiler gives me error
Code:
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");fire_alarm();}
delay_ms1(70);
//send_command_lcd(0xc0," \0");
goto start; }
}
}
Any suggestion why this error and how to come over from it???