English
Language : 

PIC16F872 Datasheet, PDF (86/160 Pages) Microchip Technology – 28-Pin, 8-Bit CMOS FLASH Microcontroller
PIC16F872
REGISTER 10-2: ADCON1 REGISTER (ADDRESS 9Fh)
U-0 U-0
ADFM —
bit7
R/W-0
—
U-0 R/W-0 R/W-0 R/W-0 R/W-0
— PCFG3 PCFG2 PCFG1 PCFG0
bit0
bit 7:
ADFM: A/D Result format select
1 = Right Justified. 6 most significant bits of ADRESH are read as ‘0’.
0 = Left Justified. 6 least significant bits of ADRESL are read as ‘0’.
bit 6-4: Unimplemented: Read as '0'
bit 3-0: PCFG<3:0>: A/D Port Configuration Control bits
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as ‘0’
- n = Value at POR reset
PCFG<3:0>
AN4
RA5
AN3
RA3
AN2
RA2
AN1
RA1
AN0
RA0
VREF+
VREF-
CHAN /
Refs(1)
0000
0001
0010
0011
0100
0101
011x
1000
1001
1010
1011
1100
1101
1110
1111
A
A
A
A
A
VREF+
A
A
A
A
A
A
A
VREF+
A
A
D
A
D
A
D
VREF+
D
A
D
D
D
D
A
VREF+ VREF-
A
A
A
A
A
A
VREF+
A
A
A
VREF+ VREF-
A
A
VREF+ VREF-
A
D
VREF+ VREF-
A
D
D
D
D
D
VREF+ VREF-
D
A
VDD
VSS
5/0
A
RA3
VSS
4/1
A
VDD
VSS
5/0
A
RA3
VSS
4/1
A
VDD
VSS
3/0
A
RA3
VSS
2/1
D
VDD
VSS
0/0
A
RA3 RA2
3/2
A
VDD
VSS
5/0
A
RA3
VSS
4/1
A
RA3 RA2
3/2
A
RA3 RA2
3/2
A
RA3 RA2
2/2
A
VDD
VSS
1/0
A
RA3 RA2
1/2
A = Analog input
D = Digital I/O
Note 1: This column indicates the number of analog channels available as A/D inputs and the number of analog channels
used as voltage reference inputs.
DS30221A-page 86
Preliminary
© 1999 Microchip Technology Inc.