43.7.3 ADCON2
Note:
- To correctly calculate an average, the number of samples (set in ADRPT) must be 2CRS.
- CRS =
‘b111
and‘b000
are reserved. - This bit is cleared by hardware when the accumulator operation is complete; depending on oscillator selections, the delay may be many instructions.
- See the section for full mode descriptions.
Name: | ADCON2 |
Address: | 0x3F5 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
PSIS | CRS[2:0] | ACLR | MD[2:0] | ||||||
Access | R/W | R/W | R/W | R/W | R/W/HC | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit 7 – PSIS ADC Previous Sample Input Select
Bits 6:4 – CRS[2:0] ADC Accumulated Calculation Right Shift Select
Bit 3 – ACLR A/D Accumulator Clear Command(3)
Bits 2:0 – MD[2:0] ADC Operating Mode Selection(4)
Value | Description |
---|---|
111-101 | Reserved |
100 | Low-Pass Filter mode |
011 | Burst Average mode |
010 | Average mode |
001 | Accumulate mode |
000 | Basic (Legacy) mode |