Microchip Technology MA240017 Data Sheet

Page of 278
PIC24F16KA102 FAMILY
DS39927C-page 178
 2008-2011 Microchip Technology Inc.
-
REGISTER 22-4:
AD1CHS: A/D INPUT SELECT REGISTER  
R/W-0
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
CH0NB
CH0SB3
CH0SB2
CH0SB1
CH0SB0
bit 15
bit 8
R/W-0
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
CH0NA
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
CH0NB:
 Channel 0 Negative Input Select for MUX B Multiplexer Setting bit
1
 = Channel 0 negative input is AN1
0
 = Channel 0 negative input is V
R
-
bit 14-12
Unimplemented:
 Read as ‘0’
bit 11-8
CH0SB<3:0>:
 Channel 0 Positive Input Select for MUX B Multiplexer Setting bits
1111
 = Channel 0 positive input is band gap reference (V
BG
)
1110
 = Channel 0 positive input is band gap, divided by two, reference (V
BG
/2)
1101
 = No channels connected (actual A/D MUX switch activates, but input floats); used for CTMU
1100
 = Channel 0 positive input is AN12
1011
 = Channel 0 positive input is AN11
1010
 = Channel 0 positive input is AN10
1001
 = Reserved
1000
 = Reserved
0111
 = AV
DD
0110
 = AV
SS
0101
 = Channel 0 positive input is AN5
0100
 = Channel 0 positive input is AN4
0011
 = Channel 0 positive input is AN3
0010
 = Channel 0 positive input is AN2
0001
 = Channel 0 positive input is AN1
0000
 = Channel 0 positive input is AN0
bit 7
CH0NA:
 Channel 0 Negative Input Select for MUX A Multiplexer Setting bit
1
 = Channel 0 negative input is AN1
0
 = Channel 0 negative input is V
R
-
bit 6-4
Unimplemented:
 Read as ‘0’
bit 3-0
CH0SA<3:0>:
 Channel 0 Positive Input Select for Sample A bits
1111
 = Channel 0 positive input is band gap reference (V
BG
)
1110
 = Channel 0 positive input is band gap, divided by two, reference (V
BG
/2)
1101
 = No channels connected (actual A/D MUX switch activates but input floats); used for CTMU
1100
 = Channel 0 positive input is AN12
1011
 = Channel 0 positive input is AN11
1010
 = Channel 0 positive input is AN10
1001
 = Reserved
1000
 = Reserved
0111
 = AV
DD
0110
 = AV
SS
0101
 = Channel 0 positive input is AN5
0100
 = Channel 0 positive input is AN4
0011
 = Channel 0 positive input is AN3
0010
 = Channel 0 positive input is AN2
0001
 = Channel 0 positive input is AN1
0000
 = Channel 0 positive input is AN0