32.7.4 ADCON3
Name: | ADCON3 |
Address: | 0xF56 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
ADCALC[2:0] | ADSOI | ADTMD[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 – ADCALC[2:0] ADC Error Calculation Mode Select bits
Bit 3 – ADSOI ADC Stop-on-Interrupt bit
Value | Name | Description |
---|---|---|
1 | ADCONT = 1 |
ADGO is cleared when the threshold conditions are met, otherwise the conversion is retriggered |
0 | ADCONT = 1 |
ADGO is not cleared by hardware, must be cleared by software to stop retriggers |
x | ADCONT = 0 |
This bit is not used |
Bits 2:0 – ADTMD[2:0] Threshold Interrupt Mode Select bits
Value | Description |
---|---|
111 | Interrupt regardless of threshold test results |
110 | Interrupt if ADERR > ADUTH |
101 | Interrupt if ADERR ≤ ADUTH |
100 | Interrupt if ADERR < ADLTH or ADERR > ADUTH |
011 | Interrupt if ADERR > ADLTH and ADERR < ADUTH |
010 | Interrupt if ADERR ≥ ADLTH |
001 | Interrupt if ADERR < ADLTH |
000 | Never interrupt |