English
Language : 

PIC16F872_06 Datasheet, PDF (82/168 Pages) Microchip Technology – 28-Pin, 8-Bit CMOS Flash Microcontroller with 10-Bit A/D
PIC16F872
REGISTER 10-2: ADCON1 REGISTER (ADDRESS: 9Fh)
U-0
U-0
R/W-0
U-0
ADFM
—
—
—
bit 7
R/W-0
PCFG3
R/W-0
PCFG2
R/W-0
PCFG1
R/W-0
PCFG0
bit 0
bit 7
bit 6-4
bit 3-0
ADFM: A/D Result Format Select bit
1 = Right justified. Six Most Significant bits of ADRESH are read as ‘0’.
0 = Left justified. Six Least Significant bits of ADRESL are read as ‘0’.
Unimplemented: Read as '0'
PCFG3:PCFG0: A/D Port Configuration Control bits:
PCFG3:
PCFG0
AN4
RA5
0000
A
0001
A
0010
A
0011
A
0100
D
0101
D
011x
D
1000
A
1001
A
1010
A
1011
A
1100
A
1101
D
1110
D
1111
D
A = Analog input
D = Digital I/O
AN3
RA3
A
VREF+
A
VREF+
A
VREF+
D
VREF+
A
VREF+
VREF+
VREF+
VREF+
D
VREF+
AN2
RA2
A
A
A
A
D
D
D
VREF-
A
A
VREF-
VREF-
VREF-
D
VREF-
AN1
RA1
A
A
A
A
A
A
D
A
A
A
A
A
A
D
D
AN0
RA0
A
A
A
A
A
A
D
A
A
A
A
A
A
A
A
VREF+
VDD
RA3
VDD
RA3
VDD
RA3
VDD
RA3
VDD
RA3
RA3
RA3
RA3
VDD
RA3
VREF-
VSS
VSS
VSS
VSS
VSS
VSS
VSS
RA2
VSS
VSS
RA2
RA2
RA2
VSS
RA2
CHAN/
Refs(1)
8/0
7/1
5/0
4/1
3/0
2/1
0/0
6/2
6/0
5/1
4/2
3/2
2/2
1/0
1/2
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.
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
DS30221C-page 80
© 2006 Microchip Technology Inc.