32.8.18 ADCON3
Name: | ADCON3 |
Offset: | 0x114 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
CALC[2:0] | SOI | TMD[2:0] | |||||||
Access | R/W | R/W | R/W | R/W/HC | R/W | R/W | R/W | ||
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bits 6:4 – CALC[2:0] ADC Error Calculation Mode Select bits
CALC | Action During First Precharge Stage | Application | |
---|---|---|---|
DSEN = Single-Sample Mode |
DSEN = CVD Double-Sample Mode(1) | ||
000 | ADRES-ADPREV | ADRES-ADPREV | First derivative of single measurement(2) |
Actual CVD result in CVD mode(2) | |||
001 | ADRES-ADSTPT | (ADRES-ADPREV)-ADSTPT | Actual result vs. setpoint |
010 | ADRES-ADFLTR | (ADRES-ADPREV)-ADFLTR | Actual result vs. averaged/filtered value |
011 | Reserved | Reserved | Reserved |
100 | ADPREV-ADFLTR | ADPREV-ADFLTR | First derivative of filtered value(3) (negative) |
101 | ADLFTR-ADSTPT | ADFLTR-ADSTPT | Average/filtered value vs. setpoint |
110 | Reserved | Reserved | Reserved |
111 | Reserved | Reserved | Reserved |
Note:
|
Bit 3 – SOI ADC Stop-on-Interrupt bit
Bits 2:0 – TMD[2:0] Threshold Interrupt Mode Select bits
Value | Description |
---|---|
111 | Interrupt regardless of threshold test results |
110 | Interrupt if ERR > UTH |
101 | Interrupt if ERR ≤ UTH |
100 | Interrupt if ERR < LTH or ERR > UTH |
011 | Interrupt if ERR > LTH and ERR < UTH |
010 | Interrupt if ERR ≥ LTH |
001 | Interrupt if ERR < LTH |
000 | Never interrupt |