Datasheet

2011-2012 Microchip Technology Inc. DS70652E-page 227
dsPIC33FJ16(GP/MC)101/102 AND dsPIC33FJ32(GP/MC)101/102/104
REGISTER 19-7: AD1PCFGL: ADC1 PORT CONFIGURATION REGISTER LOW
(1,2,3)
R/W-0 U-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
PCFG15
(4,5)
—PCFG12
(4,5)
PCFG11
(4,5)
PCFG10
(4,7)
PCFG9
(4,7)
PCFG8
(4,5)
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
PCFG7
(4,5)
PCFG6
(4,5)
PCFG5
(4,6)
PCFG4
(4,6)
PCFG3
(4)
PCFG2
(4)
PCFG1
(4)
PCFG0
(4)
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 PCFG15: ADC Port Configuration Control bit
(4,5)
1 = Port pin is in Digital mode, port read input is enabled, ADC input multiplexer is connected to AVSS
0 = Port pin is in Analog mode, port read input is disabled, ADC samples pin voltage
bit 14-13 Unimplemented: Read as ‘0
bit 12-0 PCFG<12:0>: ADC Port Configuration Control bits
(4,5,6,7)
1 = Port pin is in Digital mode, port read input is enabled, ADC input multiplexer is connected to AVSS
0 = Port pin is in Analog mode, port read input is disabled, ADC samples pin voltage
Note 1: On devices without 14 analog inputs, all PCFG bits are R/W by user. However, PCFGx bits are ignored on
ports without a corresponding input on the device.
2: PCFGx = ANx, where x = 0 through 12, and 15.
3: The PCFGx bits have no effect if the ADC module is disabled by setting the AD1MD bit in the PMD1 register.
When the bit is set, all port pins that have been multiplexed with ANx will be in Digital mode.
4: Pins shared with analog functions (i.e., ANx) are analog by default and therefore, must be set by the user
to enable any digital function on that pin. Reading any port pin with the analog function enabled will return
a ‘0’, regardless of the signal input level.
5: The PCFG<15,12:11,8:6> bits are available in the dsPIC33FJ32(GP/MC)104 devices only and are
reserved in all other devices.
6: The PCFG<5:4> bits are available on all devices, excluding the dsPIC33FJXX(GP/MC)101 devices, where
they are reserved.
7: The PCFG<10:9> bits are available on all devices, excluding the dsPIC33FJ16(GP/MC)101/102 devices,
where they are reserved.