English
Language : 

PIC18F87K22 Datasheet, PDF (350/548 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Enhanced Flash Microcontrollers with 12-Bit A/D and nanoWatt XLP Technology
PIC18F87K22 FAMILY
23.2 A/D Registers
23.2.1 A/D CONTROL REGISTERS
REGISTER 23-1: ADCON0: A/D CONTROL REGISTER 0
U-0
—
bit 7
R/W-0
CHS4
R/W-0
CHS3
R/W-0
CHS2
R/W-0
CHS1
R/W-0
CHS0
R/W-0
GO/DONE
R/W-0
ADON
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
bit 6-2
bit 1
bit 0
Unimplemented: Read as ‘0’
CHS<4:0>: Analog Channel Select bits
00000 = Channel 00 (AN0)
00001 = Channel 01 (AN1)
00010 = Channel 02 (AN2)
00011 = Channel 03 (AN3)
00100 = Channel 04 (AN4)
00101 = Channel 05 (AN5)
00110 = Channel 06 (AN6)
00111 = Channel 07 (AN7)
01000 = Channel 08 (AN8)
01001 = Channel 09 (AN9)
01010 = Channel 10 (AN10)
01011 = Channel 11 (AN11)
01100 = Channel 12 (AN12)(1,2)
01101 = Channel 13 (AN13)(1,2)
01110 = Channel 14 (AN14)(1,2)
01111 = Channel 15 (AN15)(1,2)
10000 = Channel 16 (AN16)
10001 = Channel 17 (AN17)
10010 = Channel 18 (AN18)
10011 = Channel 19 (AN19)
10100 = Channel 20 (AN20)(1,2)
10101 = Channel 21 (AN21)(1,2)
10110 = Channel 22 (AN22)(1,2)
10111 = Channel 23 (AN23)(1,2)
11000 = (Reserved)(2)
11001 = (Reserved)(2)
11010 = (Reserved)(2)
11011 = (Reserved)(2)
11100 = Channel 28 (Reserved CTMU)
11101 = Channel 29 (Internal temperature diode)
11110 = Channel 30 (VDDCORE)
11111 = Channel 31 (v1.024V band gap)
GO/DONE: A/D Conversion Status bit
1 = A/D (or calibration) cycle in progress. Setting this bit starts an A/D conversion cycle. The bit is
cleared automatically by hardware when the A/D conversion is completed.
0 = A/D conversion completed or not in progress
ADON: A/D On bit
1 = A/D Converter is operating
0 = A/D conversion module is shut off and consuming no operating current
Note 1: These channels are not implemented on 64-pin devices.
2: Performing a conversion on unimplemented channels will return random values.
DS39960B-page 350
Preliminary
 2010 Microchip Technology Inc.