Sudhp
Member level 4
![Member level 4](/styles/images/ranks/dlevel4.gif)
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
![warning 1.PNG warning 1.PNG](https://www.edaboard.com/data/attachments/70/70316-f607fb286347623325a13989effd6a2e.jpg)
But when i just made a little change by replacing dial(); function with fire_alarm(); the compiler gives me error
![warning2.PNG warning2.PNG](https://www.edaboard.com/data/attachments/70/70317-92715271c8ef89d8a0110a18f907c579.jpg)
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; }
}
}
![warning 1.PNG warning 1.PNG](https://www.edaboard.com/data/attachments/70/70316-f607fb286347623325a13989effd6a2e.jpg)
But when i just made a little change by replacing dial(); function with fire_alarm(); the compiler gives me error
![warning2.PNG warning2.PNG](https://www.edaboard.com/data/attachments/70/70317-92715271c8ef89d8a0110a18f907c579.jpg)
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???