Hi guys.
I've problem on RB0 interrupt in HT-PICC.I use the PICC "interruptDemo" sample.
static void interrupt
isr(void){
if(INTF) {
INTF = 0;
}
}
But mplab says:
Error[845] C:\DOCUME~1\Arash\LOCALS~1\Temp\s7o. 364 : multiply defined symbol "int_func"
Error[845] C:\DOCUME~1\Arash\LOCALS~1\Temp\s7o. 387 : multiply defined symbol "saved_w"
Error[845] C:\DOCUME~1\Arash\LOCALS~1\Temp\s7o. 393 : multiply defined symbol "int_restore"
Error[845] C:\DOCUME~1\Arash\LOCALS~1\Temp\s7o. 402 : multiply defined symbol "int_entry"
Error[845] C:\DOCUME~1\Arash\LOCALS~1\Temp\s7o. 408 : multiply defined symbol "saved_status"
Error[845] C:\DOCUME~1\Arash\LOCALS~1\Temp\s7o. 411 : multiply defined symbol "saved_pclath"
I culdent find even one "saved_w" but it says "multiply defined symbol"
Whats my wrong?
i dont think you grasp interrupts well
you cannot static void an interupt service routine in c
you must 'define it ' instead as a void
like this
#int_default
default_isr()
{
}
#INT_TIMER1
void Timer1Interrupt (void)
{
}
#INT_RTCC
void Timer0Interrupt (void)
{
}
#INT_AD
void AdcInterrupt (void)
{
}
look for further examples here
http://www.microchipc.com/