This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Interrupt Handling Problem

Hi,
I am trying to use Interrupt to check if a key has been pressed on the key pad for this i just wrote a sample code to test it out but i am having the following difficulty

*** WARNING L15: MULTIPLE CALL TO SEGMENT
SEGMENT: ?PR?_IPRINT?BKMAIN
CALLER1: ?PR?INTER0?BKMAIN
CALLER2: ?C_C51STARTUP
***ERROR L107: ADDRESS SPACE OVERFLOW
SPACE: DATA
SEGMENT: _DATA_GROUP_
LENGTH: 001BH
Program Size: data=181.6 xdata=0 code=17362
Target not created

Now i am using many functions where i am calling the same function but it is not giving me an error there what can i do to avoid this error

The error comes when i include the following code

void Inter0 (void) interrupt 0
{
clear();
init1();init1();
iprint("Inside Interrupt");
}

iprint is a display function which is

void iprint(char *aaa){
unsigned int i=0;
for(;aaa[i]!=0;i++)display(aaa[i]);
}

if i write the code like this

void Inter0 (void) interrupt 0
{
clear();
init1();init1();
display('a');
}

It dose not give me any error. and the code compiles properly

0