English
Language : 

PIC18LF24K Datasheet, PDF (440/594 Pages) –
TABLE 31-3: COMPUTATION MODES
Bit Clear Conditions
Value after Trigger completion
Threshold Operations
Value at ADTIF interrupt
Mode
Basic
Accumulate
Average
Burst
Average
Low-pass
Filter
Note:
ADMD
ADACC and ADCNT
ADACC
ADCNT
Retrigger
Threshold
Test
Interrupt
ADAOV
0
ADACLR = 1
Unchanged
Unchanged
No
Every
If thresh-
N/A
Sample
old=true
1
ADACLR = 1
S + ADACC
If (ADCNT=FF): ADCNT,
No
Every
If thresh- ADACC Overflow
or
otherwise: ADCNT+1
Sample
old=true
(S2-S1) + ADACC
2
ADACLR = 1 or
ADCNT>=ADRPT at ADGO
or retrigger
S + ADACC
or
(S2-S1) + ADACC
If (ADCNT=FF): ADCNT,
otherwise: ADCNT+1
No
If
If thresh- ADACC Overflow
ADCNT>= old=true
ADRPT
3 ADACLR = 1 or ADGO set or Each repetition: same as Each repetition: same as Repeat while
If
If thresh- ADACC Overflow
retrigger
Average
Average
ADCNT<ADRPT ADCNT>= old=true
End with sum of all
End with ADCNT=ADRPT
ADRPT
samples
4
ADACLR = 1
S+ADACC-ADACC/
2ADCRS
If (ADCNT=FF): ADCNT,
otherwise: ADCNT+1
No
If
If thresh- ADACC Overflow
ADCNT>= old=true
or
ADRPT
(S2-S1)+ADACC-ADACC/
2ADCRS
S1 and S2 are abbreviations for Sample 1 and Sample 2, respectively. When ADDSEN = 0, S1 = ADRES; When ADDSEN = 1, S1 = ADPREV and S2 = ADRES.
ADFLTR
N/A
ADACC/2ADCRS
ADACC/2ADCRS
ADACC/2ADCRS
Filtered Value
ADCNT
count
count
count
ADRPT
count