Datasheet

PIC16F7X7
DS30498C-page 152 2004 Microchip Technology Inc.
REGISTER 12-1: ADCON0: A/D CONTROL REGISTER 0 (ADDRESS 1Fh)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
ADCS1 ADCS0 CHS2 CHS1 CHS0 GO/DONE
CHS3 ADON
bit 7 bit 0
bit 7-6 ADCS1:ADCS0: A/D Conversion Clock Select bits
If ADCS2 =
0:
000 = FOSC/2
001 = F
OSC/8
010 = F
OSC/32
011 = F
RC (clock derived from an RC oscillation)
If ADCS2 = 1:
00 = FOSC/4
01 = F
OSC/16
10 = F
OSC/64
11 = F
RC (clock derived from an RC oscillation)
bit 5-3 CHS<2:0>: Analog Channel Select bits
0000 = Channel 00 (AN0)
0001 = Channel 01 (AN1)
0010 = Channel 02 (AN2)
0011 = Channel 03 (AN3)
0100 = Channel 04 (AN4)
0101 = Channel 05 (AN5)
(1)
0110 = Channel 06 (AN6)
(1)
0111 = Channel 07 (AN7)
(1)
1000 = Channel 08 (AN8)
1001 = Channel 09 (AN9)
1010 = Channel 10 (AN10)
1011 = Channel 11 (AN11)
1100 = Channel 12 (AN12)
1101 = Channel 13 (AN13)
111x =Unused
Note 1: Selecting AN5 through AN7 on the 28-pin product variant (PIC16F737 and
PIC16F767) will result in a full-scale conversion as unimplemented channels are
connected to V
DD.
bit 2 GO/DONE: A/D Conversion Status bit
1 = A/D conversion cycle in progress. Setting this bit starts an A/D conversion cycle. This bit is
automatically cleared by hardware when the A/D conversion has completed.
0 = A/D conversion completed/not in progress
bit 1 CHS<3>: Analog Channel Select bit (see bit 5-3 for bit settings)
bit 0 ADON: A/D Conversion Status bit
1 = A/D converter module is operating
0 = A/D converter is shut-off and consumes no operating current
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