14. INTCON Register INT External Interrupt Enable TMR0 Overflow Interrupt Enable EEPROM Write Complete Interrupt Enable Global Interrupt Enable RB Port Change Interrupt Enable TMR0 Overflow Interrupt Flag INT External Interrupt Flag RB Port Change Interrupt Flag
17. Example 7.1 The normal activity of program is to output binary count value on Port B. This process will be interrupted by RB0 that will be pulsed manually. The interrupt service routine causes all the outputs to be switched on, and waits for the button RA4 to be pressed. The routine then terminates by restoring the previous value in Port B data register and returns to the main program at the original point.