English
Language : 

PIC24F16KA102_11 Datasheet, PDF (176/278 Pages) Microchip Technology – 20/28-Pin General Purpose, 16-Bit Flash Microcontrollers with nanoWatt XLP Technology
PIC24F16KA102 FAMILY
REGISTER 22-2: AD1CON2: A/D CONTROL REGISTER 2
R/W-0
R/W-0
R/W-0
R/W-0
U-0
R/W-0
U-0
VCFG2
VCFG1
VCFG0
OFFCAL(1)
—
CSCNA
—
bit 15
U-0
—
bit 8
R-0, HSC
U-0
BUFS
—
bit 7
R/W-0
SMPI3
R/W-0
SMPI2
R/W-0
SMPI1
R/W-0
SMPI0
R/W-0
BUFM
R/W-0
ALTS
bit 0
Legend:
R = Readable bit
-n = Value at POR
HSC = Hardware Settable/Clearable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 15-13
VCFG<2:0>: Voltage Reference Configuration bits
bit 12
bit 11
bit 10
bit 9-8
bit 7
bit 6
bit 5-2
VCFG<2:0>
000
001
010
011
1xx
VR+
AVDD
External VREF+ pin
AVDD
External VREF+ pin
AVDD
VR-
AVSS
AVSS
External VREF- pin
External VREF- pin
AVSS
OFFCAL: Offset Calibration bit(1)
1 = Converts to get the offset calibration value
0 = Converts to get the actual input value
Unimplemented: Read as ‘0’
CSCNA: Scan Input Selections for CH0+ S/H Input for MUX A Input Multiplexer Setting bit
1 = Scan inputs
0 = Do not scan inputs
Unimplemented: Read as ‘0’
BUFS: Buffer Fill Status bit (valid only when BUFM = 1)
1 = A/D is currently filling buffer, 08-0F; user should access data in 00-07
0 = A/D is currently filling buffer, 00-07; user should access data in 08-0F
Unimplemented: Read as ‘0’
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
Note 1:
When the OFFCAL bit is set, inputs are disconnected and tied to AVSS. 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.
DS39927C-page 176
 2008-2011 Microchip Technology Inc.