English
Language : 

PIC16C781_13 Datasheet, PDF (71/188 Pages) Microchip Technology – 8-Bit CMOS Microcontrollers with A/D, D/A, OPAMP, Comparators and PSMC
PIC16C781/782
9.1.2 ADCON1 REGISTER
The ADCON1 register, shown in Register 9-3, controls
the reference voltage selection for the ADC module.
Bits VCFG<1:0> select the reference voltage
(ADCREF).
9.1.3 ADRES REGISTER
The ADRES register, shown in Register 9-2, contains
the 8-bit result of the conversion. At the completion of
the ADC conversion:
• 8-bit result is loaded into ADRES.
• GO/DONE bit (ADOCN0<2>) is cleared.
• ADC interrupt flag bit ADIF (INTCON<6> and
PIR1<6>) are set.
• If the ADC interrupt is enabled, an interrupt is also
generated.
REGISTER 9-2:
ADC RESULT REGISTER (ADRES: 1Eh)
R/W-x
AD7
bit 7
R/W-x
AD6
R/W-x
AD5
R/W-x
AD4
R/W-x
AD3
R/W-x
AD2
R/W-x
AD1
R/W-x
AD0
bit 0
bit 7-0
AD<7:0>: ADC Conversion Results bits
Legend:
R = Readable bit
- n = Value at POR
W = Writable bit
’1’ = Bit is set
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared x = Bit is unknown
REGISTER 9-3: ADC CONTROL REGISTER 1 (ADCON1: 9Fh)
U-0
U-0
R/W-0 R/W-0
U-0
U-0
U-0
U-0
—
—
VCFG1 VCFG0
—
—
—
—
bit 7
bit 0
bit 7-6
bit 5-4
bit 3-0
Unimplemented: Read as ’0’
VCFG<1:0>: Voltage Reference Configuration bits
00 = AVDD
01 = VREF1
10 = VR
11 = VDAC
Unimplemented: Read as ’0’
Legend:
R = Readable bit
- n = Value at POR
W = Writable bit
’1’ = Bit is set
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared x = Bit is unknown
 2001-2013 Microchip Technology Inc.
Preliminary
DS41171B-page 71