Microchip Technology MA330031-2 Data Sheet

Page of 530
 2011-2013 Microchip Technology Inc.
DS70000657H-page 333
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X AND PIC24EPXXXGP/MC20X
     
REGISTER 23-6:
AD1CHS0: ADC1 INPUT CHANNEL 0 SELECT REGISTER 
R/W-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
CH0NB
CH0SB4
(
CH0SB3
(
)
CH0SB2
(
)
CH0SB1
CH0SB0
bit 15
bit 8
R/W-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
CH0NA
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
CH0NB:
 Channel 0 Negative Input Select for Sample MUXB bit
1
 = Channel 0 negative input is AN1
(
0
 = Channel 0 negative input is V
REFL
bit 14-13
Unimplemented:
 Read as ‘0’
bit 12-8
CH0SB<4:0>:
 Channel 0 Positive Input Select for Sample MUXB bits
11111
 = Open; use this selection with CTMU capacitive and time measurement
11110
 = Channel 0 positive input is connected to the CTMU temperature measurement diode (CTMU TEMP)
11101
 = Reserved
11100
 = Reserved
11011
 = Reserved
11010
 = Channel 0 positive input is the output of OA3/AN6
(
)
11001
 = Channel 0 positive input is the output of OA2/AN0
(
11000
 = Channel 0 positive input is the output of OA1/AN3
(
10111
 = Reserved



10000
 = Reserved
01111
 = Channel 0 positive input is AN15
(
)
01110
 = Channel 0 positive input is AN14
(
)
01101
 = Channel 0 positive input is AN13
(
)



00010
 = Channel 0 positive input is AN2
(
)
00001
 = Channel 0 positive input is AN1
(
)
00000
 = Channel 0 positive input is AN0
(
)
bit 7
CH0NA:
 Channel 0 Negative Input Select for Sample MUXA bit
1
 = Channel 0 negative input is AN1
(
0
 = Channel 0 negative input is V
REFL
bit 6-5
Unimplemented:
 Read as ‘0’
Note 1:
AN0 through AN7 are repurposed when comparator and op amp functionality is enabled. See 
to determine how enabling a particular op amp or comparator affects selection choices for Channels 1, 2 
and 3.
2:
The OAx input is used if the corresponding op amp is selected (OPMODE (CMxCON<10>) = 1); 
otherwise, the ANx input is used.
3:
See the 
 section for the available analog channels for each device.