Am preparing a soft copy of the schematic and also a writeup of what is what in the program?

Meanwhile I found that the chip actually resets everytime while executing the interrupt routine.
Goes to beginning of code and starts executing again.

WDT is OFF and I am not sure why this happening.
Could there be some other reason?

But the code works alright in the MPLAB SIM!!

Divaker