In the case of TMR0...registers to note:
INTCON.7 = 1 'enable ALL interrupts
INTCON.6 = 1 'enable ALL peripheral interrupts
INTCON.5 = 1 'enable TMR0 OVERFLOW interrupt
INTCON.2 = 1 'TMR0 OVERFLOWed, so it interrupted, must be cleared manually after your program has recognized the interrupt (INTCON.2 = 0)
INTCON2.2 = 1 'sets TMR0 to high priority, not really needed, but useful to note
T0CON...all bits for controlling TMR0 (see the datasheet)
Bookmarks