Datasheet

PIC24FV16KM204 FAMILY
DS30003030B-page 218 2013 Microchip Technology Inc.
REGISTER 19-5: AD1CHS: A/D SAMPLE SELECT REGISTER
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
CH0NB2 CH0NB1 CH0NB0 CH0SB4 CH0SB3 CH0SB2 CH0SB1 CH0SB0
bit 15 bit 8
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
CH0NA2 CH0NA1 CH0NA0 CH0SA4 CH0SA3 CH0SA2 CH0SA1 CH0SA0
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 CH0NB<2:0>: Sample B Channel 0 Negative Input Select bits
111 = AN6
(1)
110 = AN5
(2)
101 = AN4
100 = AN3
011 = AN2
010 = AN1
001 = AN0
000 = AV
SS
bit 12-8 CH0SB<4:0>: S/H Amplifier Positive Input Select for MUX B Multiplexer Setting bits
11111 = Unimplemented, do not use
11110 =AV
DD
(3)
11101 =AVSS
(3)
11100 = Upper guardband rail (0.785 * VDD)
11011 = Lower guardband rail (0.215 * V
DD)
11010 = Internal Band Gap Reference (V
BG)
(3)
11000-11001 = Unimplemented, do not use
10001 = No channels are connected, all inputs are floating (used for CTMU)
10111 = No channels are connected, all inputs are floating (used for CTMU)
10110 = No channels are connected, all inputs are floating (used for CTMU temperature sensor input);
does not require the corresponding CTMEN22 (AD1CTMENH<6>) bit)
10101 = Channel 0 positive input is AN21
10100 = Channel 0 positive input is AN20
10011 = Channel 0 positive input is AN19
10010 = Channel 0 positive input is AN18
(2)
10001 = Channel 0 positive input is AN17
(2)
01001 = Channel 0 positive input is AN9
01000 = Channel 0 positive input is AN8
(1)
00111 = Channel 0 positive input is AN7
(1)
00110 = Channel 0 positive input is AN6
(1)
00101 = Channel 0 positive input is AN5
(2)
00100 = Channel 0 positive input is AN4
00011 = Channel 0 positive input is AN3
00010 = Channel 0 positive input is AN2
00001 = Channel 0 positive input is AN1
00000 = Channel 0 positive input is AN0
Note 1: This is implemented on 44-pin devices only.
2: This is implemented on 28-pin and 44-pin devices only.
3: The band gap value used for this input is 2x or 4x the internal V
BG, which is selected when PVCFG<1:0> = 1x.