The TMRx register increments to FFFFh and rolls over to 0000h. When TMRx rolls over, the Timer1 interrupt flag bit of the PIRx register is set. To enable the interrupt-on-rollover, the following bits must be set:
The interrupt is cleared by clearing the TMRxIF bit as a task in the Interrupt Service Routine.