15.13.3 PIR1

Peripheral Interrupt Request (Flag) Register 1
Note:
  1. The CSWIF interrupt will not wake the system from Sleep. The system will Sleep until another interrupt causes the wake-up.
Name: PIR1
Address: 0xEC6

Bit 76543210 
 OSCFIFCSWIF    ADTIFADIF 
Access R/WR/WR/WR/W 
Reset 0000 

Bit 7 – OSCFIF Oscillator Fail Interrupt Flag bit

ValueDescription
1 Device oscillator failed, clock input has changed to HFINTOSC (must be cleared by software)
0 Device clock operating

Bit 6 – CSWIF  Clock-Switch Interrupt Flag bit(1)

ValueDescription
1 New oscillator is ready for switch (must be cleared by software)
0 New oscillator is not ready for switch or has not been started

Bit 1 – ADTIF ADC Threshold Interrupt Flag bit

ValueDescription
1 ADC Threshold interrupt has occurred (must be cleared by software)
0 ADC Threshold event is not complete or has not been started

Bit 0 – ADIF ADC Interrupt Flag bit

ValueDescription
1 An A/D conversion completed (must be cleared by software)
0 The A/D conversion is not complete or has not been started
The CSWIF interrupt will not wake the system from Sleep. The system will Sleep until another interrupt causes the wake-up.