Microchip Technology MA240017 Data Sheet

Page of 278
 2008-2011 Microchip Technology Inc.
DS39927C-page 177
PIC24F16KA102 FAMILY
bit 1
BUFM:
 Buffer Mode Select bit
= Buffer is configured as two 8-word buffers (ADC1BUFn<15:8> and ADC1BUFn<7:0>)
= Buffer is configured as one 16-word buffer (ADC1BUFn<15:0>)
bit 0
ALTS:
 Alternate Input Sample Mode Select bit
1
 = Uses MUX A input multiplexer settings for first sample, then alternates between MUX B and 
MUX A input multiplexer settings for all subsequent samples
0
 = Always uses MUX A input multiplexer settings
REGISTER 22-2:
AD1CON2: A/D CONTROL REGISTER 2 (CONTINUED) 
Note 1:
When the OFFCAL bit is set, inputs are disconnected and tied to AV
SS
. This sets the inputs of the A/D to 
zero. Then, the user can perform a conversion. Use of the Calibration mode is not affected by AD1PCFG 
contents nor channel input selection. Any analog input switches are disconnected from the A/D Converter 
in this mode. The conversion result is stored by the user software and used to compensate subsequent 
conversions. This can be done by adding the two’s complement of the result obtained with the OFFCAL bit 
set to all normal A/D conversions.
REGISTER 22-3:
AD1CON3: A/D CONTROL REGISTER 3  
R/W-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
ADRC
SAMC4
SAMC3
SAMC2
SAMC1
SAMC0
bit 15
bit 8
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
ADCS5
ADCS4
ADCS3
ADCS2
ADCS1
ADCS0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 15
ADRC:
 A/D Conversion Clock Source bit
1
 = A/D internal RC clock
0
 = Clock derived from system clock
bit 14-13
Unimplemented:
 Read as ‘0’
bit 12-8
SAMC<4:0>:
 Auto-Sample Time bits
11111
 = 31 T
AD
·
·
·
00001
 = 1 T
AD
00000
 = 0 T
AD
 (not recommended)
bit 7-6
Unimplemented:
 Read as ‘0’
bit 5-0
ADCS<5:0>:
 A/D Conversion Clock Select bits
111111
 = 64 • T
CY
111110
 = 63 • T
CY
·
·
·
000001
 = 3 • T
CY
000000
 = 2 • T
CY