Datasheet
2011-2013 Microchip Technology Inc. DS70657G-page 331
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 — — CH0SB<4:0>
(1)
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
— — CH0SA<4:0>
(1)
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
(1)
0 = Channel 0 negative input is VREFL
bit 14-13 Unimplemented: Read as ‘0’
bit 12-8 CH0SB<4:0>: Channel 0 Positive Input Select for Sample MUXB bits
(1)
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
(2,3)
11001 = Channel 0 positive input is the output of OA2/AN0
(2)
11000 = Channel 0 positive input is the output of OA1/AN3
(2)
10111 = Reserved
•
•
•
10000 = Reserved
01111 = Channel 0 positive input is AN15
(3)
01110 = Channel 0 positive input is AN14
(3)
01101 = Channel 0 positive input is AN13
(3)
•
•
•
00010 = Channel 0 positive input is AN2
(3)
00001 = Channel 0 positive input is AN1
(3)
00000 = Channel 0 positive input is AN0
(3)
bit 7 CH0NA: Channel 0 Negative Input Select for Sample MUXA bit
1 = Channel 0 negative input is AN1
(1)
0 = Channel 0 negative input is VREFL
bit 6-5 Unimplemented: Read as ‘0’
Note 1: AN0 through AN7 are repurposed when comparator and op amp functionality is enabled. See Figure 23-1
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 “Pin Diagrams” section for the available analog channels for each device.