But there is a comparator module which by default is turned on. Also, Timer-0 uses GP2 as an input which is on by default. Your code "CMCON = 0b00000111;" turns off the comparator and "OPTION_REG = 0b01000000;" turns off the Timer input.Rendar:
There is no ADC on this PIC.
That's a fast PIC! You mean 4MHz which gives you have a 1MHz instruction clock. The PIC (or any microcontroller) has limitations on the switching speed of an incoming signal. You really need to verify that what you are sending to GP2 doesn't violate any timing specs.Rendar:
Umm not surePIC is running 4GHz
Your code seems to initialize the interrupt just fine. Are you positive that you formatted your ISR correctly so that the compiler treats it like one?
The only other thing I see that may be an issue is a potential read-modify-write condition when you toggle GP0. I would expect the compiler to handle it correctly, but you never know.
-Bill