32.2.2 Completion of a Conversion

When any individual conversion is complete, the value already in ADRES32.7.15 ADRES is written into ADPREV32.7.16 ADPREV (if ADPSIS = 0) and the new conversion results appear in ADRES. When the conversion completes, the ADC module will:

After every conversion when ADDSEN = 0, or after every other conversion when ADDSEN = 1, the following events occur:

  • ADERR32.7.19 ADERR is calculated
  • ADTIF interrupt is set if ADERR calculation meets threshold comparison
Important: Filter and threshold computations occur after the conversion itself is complete. As such, interrupt handlers responding to ADIF will check ADTIF before reading filter and threshold results.