You should disable the interupts before the interupt routine then enable them again when it is complete.
example:
Disable ' Disable interrupts during interrupt handler
tickint:
Stuff during interupt.................
tiexit: INTCON.2 = 0 ' Reset timer interrupt flag
Resume
Enable ' Enable Interrupts
This is code for 16f877a so the intcon bits are probably different.
Bookmarks