Have a look at this thread... it shows how a PICs timers work and gives an interrupt example... may not be exactly what you need, but it's intended as a starting point for interrupts and timers.

http://www.picbasic.co.uk/forum/showthread.php?t=632