Datasheet

PIC24FJ256DA210 FAMILY
DS39969B-page 328 2010 Microchip Technology Inc.
REGISTER 23-2: AD1CON2: A/D CONTROL REGISTER 2
R/W-0 R/W-0 R/W-0 r-0 U-0 R/W-0 U-0 U-0
VCFG2 VCFG1 VCFG0 r CSCNA
bit 15 bit 8
R-0, HSC
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
BUFS SMPI4 SMPI3 SMPI2 SMPI1 SMPI0 BUFM ALTS
bit 7 bit 0
Legend: r = Reserved bit HSC = Hardware Settable/Clearable bit
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-13 VCFG<2:0>: Voltage Reference Configuration bits
bit 12 Reserved: Maintain as ‘0
bit 11 Unimplemented: Read as ‘0
bit 10 CSCNA: Scan Input Selections for the CH0+ S/H Input for MUX A Input Multiplexer Setting bit
1 = Scan inputs
0 = Do not scan inputs
bit 9-8 Unimplemented: Read as ‘0
bit 7 BUFS: Buffer Fill Status bit (valid only when BUFM = 1)
1 = A/D is currently filling buffer, 10-1F, user should access data in 00-0F
0 = A/D is currently filling buffer, 00-0F, user should access data in 10-1F
bit 6-2 SMPI<4:0>: Sample/Convert Sequences Per Interrupt Selection bits
11111 = Interrupts at the completion of conversion for each 32
nd
sample/convert sequence
11110 = Interrupts at the completion of conversion for each 31
st
sample/convert sequence
.
.
.
00001 = Interrupts at the completion of conversion for each 2
nd
sample/convert sequence
00000 = Interrupts at the completion of conversion for each sample/convert sequence
bit 1 BUFM: Buffer Mode Select bit
1 = Buffer is configured as two 16-word buffers (ADC1BUFn<31:16> and ADC1BUFn<15:0>)
0 = Buffer is configured as one 32-word buffer (ADC1BUFn<31:0>)
bit 0 ALTS: Alternate Input Sample Mode Select bit
1 = Uses MUX A input multiplexer settings for the first sample, then alternates between MUX B and
MUX A input multiplexer settings for all subsequent samples
0 = Always uses the MUX A input multiplexer settings
VCFG<2:0> VR+VR-
000 AV
DD AVSS
001 External VREF+ pin AVSS
010 AVDD External VREF- pin
011 External VREF+ pin External VREF- pin
1xx AVDD AVSS