Microchip Technology MCU PIC PIC18F87K22-I/PTRSL TQFP-80 MCP PIC18F87K22-I/PTRSL Hoja De Datos

Los códigos de productos
PIC18F87K22-I/PTRSL
Descargar
Página de 550
PIC18F87K22 FAMILY
DS39960D-page 352
 2009-2011 Microchip Technology Inc.
23.2
A/D Registers
23.2.1
A/D CONTROL REGISTERS
 
REGISTER 23-1:
ADCON0: A/D CONTROL REGISTER 0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
CHS4
CHS3
CHS2
CHS1
CHS0
GO/DONE
ADON
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
Unimplemented:
 Read as ‘0’
bit 6-2
CHS<4:0>:
 Analog Channel Select bits
00000
 = Channel 00 (AN0)
10000
= Channel 16 (AN16)
00001
 = Channel 01 (AN1)
10001
= Channel 17 (AN17)
00010
 = Channel 02 (AN2)
10010
= Channel 18 (AN18)
00011
 = Channel 03 (AN3)
10011
= Channel 19 (AN19)
00100
 = Channel 04 (AN4)
10100
= Channel 20 (AN20)
(
 
00101
 = Channel 05 (AN5)
10101
= Channel 21 (AN21)
(
 
00110
 = Channel 06 (AN6)
10110
= Channel 22 (AN22)
(
 
00111
 = Channel 07 (AN7)
10111
= Channel 23 (AN23)
(
 
01000
 = Channel 08 (AN8)
11000
= (Reserved)
01001
 = Channel 09 (AN9)
11001
= (Reserved)
01010
 = Channel 10 (AN10
11010
= (Reserved)
01011
 = Channel 11 (AN11)
11011
= (Reserved)
01100
 = Channel 12 (AN12)
,
)
11100
= Channel 28 (Reserved CTMU) 
01101
 = Channel 13 (AN13)
,
)
11101
= Channel 29 (Internal temperature diode)
01110
 = Channel 14 (AN14)
,
)
11110
= Channel 30 (V
DDCORE
)
01111
 = Channel 15 (AN15)
,
)
11111
= Channel 31 (v1.024V band gap)
bit 1
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 has completed or is not in progress
bit 0
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.