I am running Timer 2 on a PIC16F1827.
I looked in the datasheet and it said:
22.2 Timer2/4/6 Interrupt
Timer2/4/6 can also generate an optional device interrupt. The Timer2/4/6 output signal (TMRx-to-PRx match) provides the input for the 4-bit counter/postscaler. This counter generates the TMRx match interrupt flag which is latched in TMRxIF of the PIRx register. The interrupt is enabled by setting the TMRx Match Interrupt Enable bit, TMRxIE of the PIEx register.However, the first time I ran it I forgot to set TMR2IE on PIE1
(it's on PIE1 not PIE2 as implied above) but it still worked! I checked with the simulator on MPLAB X IDE and the whole of PIE1 was zero.
Now I'm really confused. Do I need to set TMR2IE like it says in the datasheet or not? Experience tells me not but I wonder if this is automatically set somewhere else … or something(!) Also, GIE and PIEI of INTCON were all zero too - what I have learned is no longer true.

Cheers.