Microchip Technology DM183037 Data Sheet

Page of 696
PIC18F97J94 FAMILY
DS30575A-page 170
 2012 Microchip Technology Inc.
10.4
INTCON Registers
The INTCON registers are readable and writable
registers that contain various enable, priority and flag
bits.
  
Note:
Interrupt flag bits are set when an interrupt
condition occurs regardless of the state of
its corresponding enable bit or the Global
Interrupt Enable bit. User software should
ensure the appropriate interrupt flag bits
are clear prior to enabling an interrupt.
This feature allows for software polling.
REGISTER 10-1:
INTCON: INTERRUPT CONTROL REGISTER 
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R-0
GIE/GIEH
PEIE/GIEL
TMR0IE
INT0IE
IOCIE
TMR0IF
INT0IF
IOCIF
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
GIE/GIEH: Global Interrupt Enable bit
When IPEN = 0:
1 = Enables all unmasked interrupts
0 = Disables all interrupts including peripherals
When IPEN = 1:
1 = Enables all high-priority interrupts 
0 = Disables all interrupts including low priority
bit 6
PEIE/GIEL: Peripheral Interrupt Enable bit
When IPEN = 0:
1 = Enables all unmasked peripheral interrupts 
0 = Disables all peripheral interrupts 
When IPEN = 1:
1 = Enables all low-priority peripheral interrupts 
0 = Disables all low-priority peripheral interrupts
bit 5
TMR0IE: TMR0 Overflow Interrupt Enable bit 
1 = Enables the TMR0 overflow interrupt 
0 = Disables the TMR0 overflow interrupt 
bit 4
INT0IE: INT0 External Interrupt Enable bit 
1 = Enables the INT0 external interrupt 
0 = Disables the INT0 external interrupt 
bit 3
IOCIE: I/O Change Interrupt Enable bit
1 = Enables the I/O port change interrupt 
0 = Disables the I/O port change interrupt
bit 2
TMR0IF: TMR0 Overflow Interrupt Flag bit 
1 = TMR0 register has overflowed (must be cleared in software)
0 = TMR0 register has not overflowed 
bit 1
INT0IF: INT0 External Interrupt Flag bit 
1 = The INT0 external interrupt occurred (must be cleared in software) 
0 = The INT0 external interrupt did not occur
bit 0
IOCIF: I/O Port Change Interrupt Flag bit
1 = At least one of the IOC<7:0> pins changed state (must be cleared by clearing all the IOCF bits in
the IOC module)
0 = None of the IOC<7:0> pins have changed state