sukhavsa
Newbie level 6
Hi
I have been using the MPLAB C18 for PIC18F8722.
I am stuck with this compiler error since morning
" Error [1111] undefined label 'ISR' in 'InterruptVector'"
here is the part of my code that involves interrupts.
/** I N T E R R U P T S **********************************************/
#pragma code InterruptVector = 0x08
void InterruptVector (void)
{
_asm
goto ISR
_endasm
}
/******** Interrupt Service Routines *************************/
#pragma interrupt ISR
void ISR (void)
{
// Check to see if TMR3 overflow caused the interrupt
int ADCvalue;
if (PIR2bits.TMR3IF)
{
ADCvalue = ADC_module();
}
}
Previously I was polling for TMR3 overflow everything was working fine and now i changed it into an ISR and it doesnt even compile.
I dont know why this error is coming up, the labels are obviously same.
This seems very trivial but i cant see anything wrong.
Please help me figure it out, I would really appreciate it.
Thanks
I have been using the MPLAB C18 for PIC18F8722.
I am stuck with this compiler error since morning
" Error [1111] undefined label 'ISR' in 'InterruptVector'"
here is the part of my code that involves interrupts.
/** I N T E R R U P T S **********************************************/
#pragma code InterruptVector = 0x08
void InterruptVector (void)
{
_asm
goto ISR
_endasm
}
/******** Interrupt Service Routines *************************/
#pragma interrupt ISR
void ISR (void)
{
// Check to see if TMR3 overflow caused the interrupt
int ADCvalue;
if (PIR2bits.TMR3IF)
{
ADCvalue = ADC_module();
}
}
Previously I was polling for TMR3 overflow everything was working fine and now i changed it into an ISR and it doesnt even compile.
I dont know why this error is coming up, the labels are obviously same.
This seems very trivial but i cant see anything wrong.
Please help me figure it out, I would really appreciate it.
Thanks