Microchip Technology MCU PIC PIC18F87K22-I/PTRSL TQFP-80 MCP PIC18F87K22-I/PTRSL Data Sheet

Product codes
PIC18F87K22-I/PTRSL
Page of 550
 2009-2011 Microchip Technology Inc.
DS39960D-page 353
PIC18F87K22 FAMILY
REGISTER 23-2:
ADCON1: A/D CONTROL REGISTER 1
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
TRIGSEL1
TRIGSEL0
VCFG1
VCFG0
VNCFG
CHSN2
CHSN1
CHSN0
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 7-6
TRIGSEL<1:0>:
 Special Trigger Select bits
11
 = Selects the special trigger from the RTCC
10
 = Selects the special trigger from the Timer1
01
 = Selects the special trigger from the CTMU
00
 = Selects the special trigger from the ECCP2
bit 5-4
VCFG<1:0>: 
A/D V
REF
+ Configuration bits
11
 = Internal V
REF
+ (4.096V)
10
 = Internal V
REF
+ (2.048V)
01
 = External V
REF
+
00
 = AV
DD
bit 3
VNCFG: 
A/D V
REF
- Configuration bit
1
  = External  V
REF
0
  = AV
SS
bit 2-0
CHSN<2:0>:
 Analog Negative Channel Select bits
111
 = Channel 07 (AN6)
110
 = Channel 06 (AN5)
101
 = Channel 05 (AN4)
100
 = Channel 04 (AN3)
011
 = Channel 03 (AN2)
010
 = Channel 02 (AN1)
001
 = Channel 01 (AN0)
000
 = Channel 00 (AV
SS
)