32.7.3 ADCON2
Note: 
            
- To correctly calculate an average, the number of samples (set in ADRPT) must be 2ADCRS.
 - ADCRS = 
‘b111and‘b000are reserved. - This bit is cleared by hardware when the accumulator operation is complete; depending on oscillator selections, the delay may be many instructions.
 - See Table 32-4 for Full mode descriptions.
 
| Name: | ADCON2 | 
| Offset: | 0xF5A | 
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| ADPSIS | ADCRS[2:0] | ADACLR | ADMD[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 – ADPSIS ADC Previous Sample Input Select bits
| Value | Description | 
|---|---|
| 1 | ADFLTR is transferred to ADPREV at start-of-conversion | 
| 0 | ADRES is transferred to ADPREV at start-of-conversion | 
Bits 6:4 – ADCRS[2:0] ADC Accumulated Calculation Right Shift Select bits
| Value | Name | Description | 
|---|---|---|
| 1 to 6 | ADMD = ‘b100 | 
               Low-pass filter time constant is 2ADCRS, filter gain is 1:1(2) | 
| 1 to 6 | ADMD = ‘b011 to
                  ‘b001 | 
               The accumulated value is right-shifted by ADCRS (divided by 2ADCRS)(1,2) | 
| x | ADMD = ‘b000 | 
               These bits are ignored | 
Bit 3 – ADACLR A/D Accumulator Clear Command bit(3)
| Value | Description | 
|---|---|
| 1 | ADACC, ADAOV and ADCNT registers are cleared | 
| 0 | Clearing action is complete (or not started) | 
Bits 2:0 – ADMD[2:0] ADC Operating Mode Selection bits(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 | 
