Datasheet

PIC16C745/765
DS41124D-page 92 Preliminary 1999-2013 Microchip Technology Inc.
REGISTER 12-1: A/D CONTROL REGISTER (ADCON0: 1Fh)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 U-0 R/W-0
ADCS1 ADCS0 CHS2 CHS1 CHS0 GO/DONE ADON R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as ‘0’
- n = Value at POR Reset
bit7 bit0
bit 7-6: ADCS<1:0>: A/D Conversion Clock Select bits
00 = F
INT/2
01 = F
INT/8
10 = F
INT/32
(2)
11 = FRC (clock derived from dedicated internal oscillator)
(2)
bit 5-3: CHS<2:0>: Analog Channel Select bits
000 = channel 0, (RA0/AN0)
001 = channel 1, (RA1/AN1)
010 = channel 2, (RA2/AN2)
011 = channel 3, (RA3/AN3)
100 = channel 4, (RA5/AN4)
101 = channel 5, (RE0/AN5)
(1)
110 = channel 6, (RE1/AN6)
(1)
111 = channel 7, (RE2/AN7)
(1)
bit 2: GO/DONE: A/D Conversion Status bit
If ADON = 1
1 = A/D conversion in progress (setting this bit starts the A/D conversion)
0 = A/D conversion not in progress (This bit is automatically cleared by hardware when the A/D
conversion is complete)
bit 1: Unimplemented: Read as '0'
bit 0: ADON: A/D On bit
1 = A/D converter module is operating
0 = A/D converter module is shutoff and consumes no operating current
Note 1: A/D channels 5, 6 and 7 are implemented on the PIC16C765 only.
2: Choose F
INT/32 or FRC to maintain 8-bit A/D accuracy at 24 MHz.