English
Language : 

PIC16LF18854 Datasheet, PDF (353/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
L
TABLE 23-3: COMPUTATION MODES
Clear Conditions
Value after Trigger completion
Threshold Operations
Value at ADTIF interrupt
Mode
ADMD
ADACC and ADCNT
ADACC
ADCNT
Retrigger
Threshold
Test
Interrupt
ADAOV
ADFLTR
Basic
0
Accumulate
1
ADACLR = 1
ADACLR = 1
Unchanged
Unchanged
No
S + ADACC
If (ADCNT=FF): ADCNT,
No
or
otherwise: ADCNT+1
(S2-S1) + ADACC
Every
Sample
Every
Sample
If thresh-
old=true
If thresh-
old=true
N/A
N/A
ADACC Overflow ADACC/2ADCRS
Average
2
ADACLR = 1 or
ADCNT>=ADRPT at ADGO
or retrigger
S + ADACC
or
(S2-S1) + ADACC
If (ADCNT>=ADRPT):1,
otherwise: ADCNT+1
No
If
If thresh- ADACC Overflow ADACC/2ADCRS
ADCNT>= old=true
ADRPT
Burst
Average
3 ADACLR = 1 or ADGO set or Each repetition: same as Reset and count up until Repeat while
If
If thresh- ADACC Overflow ADACC/2ADCRS
retrigger
Average
ADCNT=ADRPT
ADCNT<ADRPT ADCNT>= old=true
End with sum of all
ADRPT
samples
Lowpass
4
Filter
ADACLR = 1
S+ADACC-ADACC/
2ADCRS
or
(S2-S1)+ADACC-ADACC/
2ADCRS
If (ADCNT=FF): ADCNT,
otherwise: ADCNT+1
No
If
If thresh- ADACC Overflow Filtered Value
ADCNT>= old=true
ADRPT
Note 1: S, S1, and S2 are abbreviations for ADRES, ADRES(n), and ADRES(n+1), respectively. When ADDSEN = 0: S = ADRES. When ADDSEN = 1:
S1 = ADPREV, and S2 = ADRES.
2: All results of divisions using the ADCRS bits are truncated, not rounded.
ADCNT
count
count
count
ADRPT
count