The ADC module allows for the ability to generate an interrupt upon completion of an Analog-to-Digital Conversion. The ADC interrupt flag is the ADIF bit in the PIRx register. The ADC interrupt enable is the ADIE bit in the PIEx register. The ADIF bit must be cleared by software.

  1. 1.The ADIF bit is set at the completion of every conversion, regardless of whether or not the ADC interrupt is enabled.
  2. 2.The ADC operates during Sleep only when the ADCRC oscillator is selected.
The ADC Interrupt can be generated while the device is operating or while in Sleep. While the device is operating in Sleep mode: