Microchip Technology MA330026 Data Sheet
dsPIC33FJ16(GP/MC)101/102 AND dsPIC33FJ32(GP/MC)101/102/104
DS70000652F-page 224
2011-2014 Microchip Technology Inc.
REGISTER 19-2:
AD1CON2: ADC1 CONTROL REGISTER 2
R/W-0
R/W-0
R/W-0
U-0
U-0
R/W-0
R/W-0
R/W-0
VCFG2
VCFG1
VCFG0
—
—
CSCNA
CHPS1
CHPS0
bit 15
bit 8
R-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
BUFS
—
SMPI3
SMPI2
SMPI1
SMPI0
BUFM
ALTS
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-13
VCFG<2:0>: Converter Voltage Reference Configuration bits
bit 12-11
Unimplemented: Read as ‘0’
bit 10
CSCNA: Scan Input Selections for CH0+ During Sample A bit
1
= Scans inputs
0
= Does not scan inputs
bit 9-8
CHPS<1:0>: Select Channels Utilized bits
1x
= Converts CH0, CH1, CH2 and CH3
01
= Converts CH0 and CH1
00
= Converts CH0
bit 7
BUFS: Buffer Fill Status bit (valid only when BUFM = 1)
1
= ADC1 is currently filling second half of buffer, user should access data in the first half
0
= ADC1 is currently filling first half of buffer, user application should access data in the second half
bit 6
Unimplemented: Read as ‘0’
bit 5-2
SMPI<3:0>: Sample/Convert Sequences Per Interrupt Selection bits
1111
= Interrupts at the completion of conversion for each 16th sample/convert sequence
1110
= Interrupts at the completion of conversion for each 15th sample/convert sequence
•
•
•
0001
= Interrupts at the completion of conversion for each 2nd sample/convert sequence
0000
= Interrupts at the completion of conversion for each sample/convert sequence
bit 1
BUFM: Buffer Fill Mode Select bit
1
= Starts filling first half of buffer on first interrupt and the second half of buffer on next interrupt
0
= Always starts filling buffer from the beginning
bit 0
ALTS: Alternate Input Sample Mode Select bit
1
= Uses channel input selects for Sample A on first sample and Sample B on next sample
0
= Always uses channel input selects for Sample A
ADREF+
ADREF-
xxx
AV
DD
AV
SS