Datasheet
dsPIC33FJ06GS101/X02 and dsPIC33FJ16GSX02/X04
DS70000318G-page 250 2008-2014 Microchip Technology Inc.
REGISTER 19-3: ADBASE: ANALOG-TO-DIGITAL BASE REGISTER
(1,2)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
ADBASE<15:8>
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 U-0
ADBASE<7: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-1 ADBASE<15:1>: Analog-to-Digital Base bits
This register contains the base address of the user’s ADC Interrupt Service Routine jump table. This
register, when read, contains the sum of the ADBASE register contents and the encoded value of the
PxRDY status bits.
The encoder logic provides the bit number of the highest priority PxRDY bits, where P0RDY is the
highest priority and P6RDY is the lowest priority.
bit 0 Unimplemented: Read as ‘0’
Note 1: The encoding results are shifted left two bits, so bits 1-0 of the result are always zero.
2: As an alternative to using the ADBASE register, the ADCP0-6 ADC Pair Conversion Complete interrupts
can be used to invoke A to D conversion completion routines for individual ADC input pairs.
REGISTER 19-4: ADPCFG: ANALOG-TO-DIGITAL PORT CONFIGURATION REGISTER
U-0 U-0 U-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0
— — — —PCFG<11:8>
(1)
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
PCFG<7: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-12 Unimplemented: Read as ‘0’
bit 11-0 PCFG<11:0>: Analog-to-Digital Port Configuration Control bits
(1)
1 = Port pin in Digital mode; port read input is enabled, Analog-to-Digital input multiplexer is
connected to AV
SS
0 = Port pin in Analog mode; port read input is disabled, Analog-to-Digital samples the pin voltage
Note 1: Not all PCFGx bits are available on all devices. See Figure 19-1 through Figure 19-6 for the available
analog pins (PCFGx = ANx, where x = 0-11).