Datasheet

dsPIC33EPXXXGM3XX/6XX/7XX
DS70000689D-page 338 2013-2014 Microchip Technology Inc.
REGISTER 23-6: ADxCHS0: ADCx INPUT CHANNEL 0 SELECT REGISTER
(3)
R/W-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
CH0NB —CH0SB5
(1,4,5)
CH0SB4
(1,5)
CH0SB3
(1,5)
CH0SB2
(1,5)
CH0SB1
(1,5)
CH0SB0
(1,5)
bit 15 bit 8
R/W-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
CH0NA
—CH0SA5
(1,4,5)
CH0SA4
(1,5)
CH0SA3
(1,5)
CH0SA2
(1,5)
CH0SA1
(1,5)
CH0SA0
(1,5)
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 Unimplemented: Read as ‘0
bit 13-8 CH0SB<5:0>: Channel 0 Positive Input Select for Sample MUXB bits
(1,4,5)
111111 = Channel 0 positive input is (AN63) unconnected
111110 = Channel 0 positive input is (AN62) the CTMU temperature voltage
111101 = Channel 0 positive input is (AN61) reserved
110010 = Channel 0 positive input is (AN50) reserved
110001 = Channel 0 positive input is AN49
110000 = Channel 0 positive input is AN48
101111 = Channel 0 positive input is AN47
101110 = Channel 0 positive input is AN46
011010 = Channel 0 positive input is AN26
011001 = Channel 0 positive input is AN25 or Op Amp 5 output voltage
(2)
011000 = Channel 0 positive input is AN24
000111 = Channel 0 positive input is AN7
000110 = Channel 0 positive input is AN6 or Op Amp 3 output voltage
(2)
000101 = Channel 0 positive input is AN5
000100 = Channel 0 positive input is AN4
000011 = Channel 0 positive input is AN3 or Op Amp 1 output voltage
(2)
000010 = Channel 0 positive input is AN2
000001 = Channel 0 positive input is AN1
000000 = Channel 0 positive input is AN0 or Op Amp 2 output voltage
(2)
Note 1: AN0 through AN7 are repurposed when comparator and op amp functionality are 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: If the op amp is selected (OPMODE bit (CMxCON<10>) = 1), the OAx input is used; otherwise, the ANx
input is used.
3: See the “Pin Diagrams” section for the available analog channels for each device.
4: Analog input selections for ADC1 are shown here. AN32-AN63 selections are not available for ADC2. The
CH0SB5 and CH0SA5 bits are ‘Reserved’ for ADC2 and should be programmed to ‘0’.
5: Analog inputs, AN32-AN49, are available only when the ADCx is working in 10-bit mode.