From the data sheet, I have set out the values for bits but doesnt work. I can use it a a simple input port but not with interrupts. kindly help me out.
Naumanpak,you seem to be thinking of interrupts as simple function calls, its not the way to go my friend ... I am assuming this is C18 compiler ? ... If thats true, read the user guide (2.9.2.3 Interrupt vectors) ... also fix the comon mistake of I/O digital config (If you havent already), and I do not see any input assignment in your code, you have to configure your pin INT0 to digital input ...