English
Language : 

PIC16LF18854 Datasheet, PDF (360/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
PIC16(L)F18856/76
REGISTER 23-4: ADCON3: ADC THRESHOLD REGISTER
U-0
—
bit 7
R/W-0/0
R/W-0/0
R/W-0/0
ADCALC<2:0>
R/W/HC-0
ADSOI
R/W-0/0
R/W-0/0
ADTMD<2:0>
R/W-0/0
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7
bit 6-4
Unimplemented: Read as ‘0’
ADCAL<2:0>: ADC Error Calculation Mode Select bits
ADCALC
111
110
101
100
011
010
001
000
Action During 1st Precharge Stage
ADDSEN = 0
ADDSEN = 1 CVD
Single-Sample Mode Double-Sample Mode(1)
Application
Reserved
Reserved
ADFLTR-ADSTPT
ADPREV-ADFLTR
Reserved
ADRES-ADFLTR
ADRES-ADSTPT
ADRES-ADPREV
Reserved
Reserved
Reserved
Reserved
ADFLTR-ADSTPT
Average/filtered value vs.
setpoint
ADPREV-ADFLTR
First derivative of filtered
value(3) (negative)
Reserved
Reserved
(ADRES-ADPREV)-ADFLTR Actual result vs.
averaged/filtered value
(ADRES-ADPREV)-ADSTPT Actual result vs.setpoint
ADRES-ADPREV
First derivative of single
measurement(2)
Actual CVD result in CVD
mode(2)
bit 3
bit 2-0
ADSOI: ADC Stop-on-Interrupt bit
If ADCONT = 1:
1 = ADGO is cleared when the threshold conditions are met, otherwise the conversion is retriggered
0 = ADGO is not cleared by hardware, must be cleared by software to stop retriggers
If ADCONT = 0 bit is ignored.
ADTMD<2:0>: Threshold Interrupt Mode Select bits
111 = Always set ADTIF at end of calculation
110 = Set ADTIF if ADERR>ADUTH
101 = Set ADTIF if ADERRADUTH
100 = Set ADTIF if ADERRADLTH or ADERR>ADUTH
011 = Set ADTIF if ADERR>ADLTH and ADERR<ADUTH
010 = Set ADTIF if ADERR≥ADLTH
001 = Set ADTIF if ADERR<ADLTH
000 = ADTIF is disabled
Note 1:
2:
3:
When ADPSIS = 0, the value of ADRES-ADPREV) is the value of (S2-S1) from Table 23-3.
When ADPSIS = 0
When ADPSIS = 1.
DS40001824A-page 360
Preliminary
 2016 Microchip Technology Inc.