41.2.2 Completion of a Conversion
When any individual conversion is complete, the
existing value in ADRES is written into ADPREV (if PSIS = 0
) and the new conversion results appear in ADRES.
When the conversion completes, the ADC module will:
- Clear the GO bit (unless the CONT bit is set)
- Set the ADIF Interrupt Flag bit
- Set the MATH bit
- Update ADACC
After every conversion when DSEN =
0
or after every other conversion when DSEN = 1
,
the following events occur:
- ADERR is calculated
- ADC Channel Threshold Interrupt (ADCHxIF) is set if ADERR calculation meets threshold comparison