Microchip Technology MCP1631RD-MCC2 Data Sheet

Page of 338
PIC16F882/883/884/886/887
DS41291G-page 108
 2006-2012 Microchip Technology Inc.
9.2.7
ADC REGISTER DEFINITIONS
The following registers are used to control the opera-
tion of the ADC.
REGISTER DEFINITIONS: ADC CONTROL
Note:
For ANSEL and ANSELH registers, see
 and 
respectively.
REGISTER 9-1:
ADCON0: A/D CONTROL REGISTER 0
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
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-6
ADCS<1:0>: A/D Conversion Clock Select bits
00 = F
OSC
/2
01 = F
OSC
/8
10 = F
OSC
/32
11 = F
RC
 (clock derived from a dedicated internal oscillator = 500 kHz max)
bit 5-2
CHS<3:0>: Analog Channel Select bits
0000 = AN0
0001 = AN1
0010 = AN2
0011 = AN3
0100 = AN4
0101 = AN5
0110 = AN6
0111 = AN7
1000 = AN8
1001 = AN9
1010 = AN10
1011 = AN11
1100 = AN12
1101 = AN13
1110 = CV
REF
1111 = Fixed Ref (0.6V fixed voltage reference)
bit 1
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 0
ADON: ADC Enable bit
1 = ADC is enabled
0 = ADC is disabled and consumes no operating current