English
Language : 

PIC18LF24K Datasheet, PDF (171/594 Pages) –
PIC18(L)F26/45/46K40
REGISTER 14-3: PIR1: PERIPHERAL INTERRUPT REQUEST (FLAG) REGISTER 1
R/W-0/0
R/W-0/0
U-0
U-0
U-0
OSCFIF
CSWIF(1)
—
—
—
U-0
R/W-0/0
—
ADTIF
bit 7
R/W-0/0
ADIF
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
bit 6
bit 5-2
bit 1
bit 0
OSCFIF: Oscillator Fail Interrupt Flag bit
1 = Device oscillator failed, clock input has changed to HFINTOSC (must be cleared by software)
0 = Device clock operating
CSWIF: Clock-Switch Interrupt Flag bit(1)
1 = New oscillator is ready for switch (must be cleared by software) (see Figure 4-6 and Figure 4-7)
0 = New oscillator is not ready for switch or has not been started
Unimplemented: Read as ‘0’
ADTIF: ADC Threshold Interrupt Flag bit
1 = ADC Threshold interrupt has occurred (must be cleared by software)
0 = ADC Threshold event is not complete or has not been started
ADIF: ADC Interrupt Flag bit
1 = An A/D conversion completed (must be cleared by software)
0 = The A/D conversion is not complete or has not been started
Note 1: The CSWIF interrupt will not wake the system from Sleep. The system will sleep until another interrupt
causes the wake-up.
 2016 Microchip Technology Inc.
Preliminary
DS40001816C-page 171