32.8.18 ADCON3

ADC Control Register 3
Name: ADCON3
Offset: 0x114

Bit 76543210 
  CALC[2:0]SOITMD[2:0] 
Access R/WR/WR/WR/W/HCR/WR/WR/W 
Reset 0000000 

Bits 6:4 – CALC[2:0] ADC Error Calculation Mode Select bits

See the table below for selection details.
Table 32-5. ADC Error Calculation Mode
CALCAction During First Precharge StageApplication

DSEN = 0

Single-Sample Mode

DSEN = 1

CVD Double-Sample Mode(1)

000ADRES-ADPREVADRES-ADPREVFirst derivative of single measurement(2)
Actual CVD result in CVD mode(2)
001ADRES-ADSTPT(ADRES-ADPREV)-ADSTPTActual result vs. setpoint
010ADRES-ADFLTR(ADRES-ADPREV)-ADFLTRActual result vs. averaged/filtered value
011ReservedReservedReserved
100ADPREV-ADFLTRADPREV-ADFLTRFirst derivative of filtered value(3) (negative)
101ADLFTR-ADSTPTADFLTR-ADSTPTAverage/filtered value vs. setpoint
110ReservedReservedReserved
111ReservedReservedReserved
Note:
  1. When PSIS = 0, the value of ADRES-ADPREV) is the value of (S2-S1) from the Computation Modes table.
  2. When PSIS = 0.
  3. When PSIS = 1.

Bit 3 – SOI ADC Stop-on-Interrupt bit

ValueNameDescription
1CONT = 1GO is cleared when the threshold conditions are met, otherwise the conversion is retriggered
0CONT = 1GO is not cleared by hardware, must be cleared by software to stop retriggers
xCONT = 0This bit is not used

Bits 2:0 – TMD[2:0] Threshold Interrupt Mode Select bits

ValueDescription
111Interrupt regardless of threshold test results
110Interrupt if ERR > UTH
101Interrupt if ERR ≤ UTH
100Interrupt if ERR < LTH or ERR > UTH
011Interrupt if ERR > LTH and ERR < UTH
010Interrupt if ERR ≥ LTH
001Interrupt if ERR < LTH
000Never interrupt