
2011 Microchip Technology Inc.
Preliminary
DS41586A-page 70
PIC16(L)F1507
7.6.5
PIR1 REGISTER
The PIR1 register contains the interrupt flag bits, as
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, GIE, of the INTCON
register. User software should ensure the
appropriate interrupt flag bits are clear prior
to enabling an interrupt.
REGISTER 7-5:
PIR1: PERIPHERAL INTERRUPT REQUEST REGISTER 1
R/W-0/0
U-0
R/W-0/0
TMR1GIF
ADIF
—
TMR2IF
TMR1IF
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
u = Bit is unchanged
x = Bit is unknown
-n/n = Value at POR and BOR/Value at all other Resets
‘1’ = Bit is set
‘0’ = Bit is cleared
bit 7
TMR1GIF:
Timer1 Gate Interrupt Flag bit
1
= Interrupt is pending
0
= Interrupt is not pending
bit 6
ADIF:
A/D Converter Interrupt Flag bit
1
= Interrupt is pending
0
= Interrupt is not pending
bit 5-2
Unimplemented:
Read as ‘0’
bit 1
TMR2IF:
Timer2 to PR2 Interrupt Flag bit
1
= Interrupt is pending
0
= Interrupt is not pending
bit 0
TMR1IF:
Timer1 Overflow Interrupt Flag bit
1
= Interrupt is pending
0
= Interrupt is not pending