Currently when I am running a program and an interrupt is called then the whole PIC resets itself. I have ruled out the watchdog timer as I have disabled it and there is no change.
I have an Infa red reciever on INT_EXT1, I have enabled it and enabled global interrupts.
I have a program for the 16F877 using exactly the same interrupt code (apart form setting up the edge trigger) and it works fine.
The same problem occured when using INT_EXT2.
Does anyone have any ideas on this