PIC16C926-I/CL Microchip Technology, PIC16C926-I/CL Datasheet - Page 78

no-image

PIC16C926-I/CL

Manufacturer Part Number
PIC16C926-I/CL
Description
64/68-Pin CMOS Microcontrollers with LCD Driver
Manufacturer
Microchip Technology
Datasheet
PIC16C925/926
REGISTER 10-2:
The ADRESH:ADRESL registers contain the 10-bit
result of the A/D conversion. When the A/D conversion
is complete, the result is loaded into this A/D result reg-
ister pair, the GO/DONE bit (ADCON0<2>) is cleared
and the A/D interrupt flag bit ADIF is set. The block dia-
gram of the A/D module is shown in Figure 10-1.
DS39544A-page 76
bit 7
bit 6-4
bit 3-0
ADCON1 REGISTER (ADDRESS 9Fh)
bit 7
ADFM: A/D Result Format Select bit
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’.
Unimplemented: Read as '0'
PCFG<3:0>: A/D Port Configuration Control bits:
A = Analog input
Note 1: This column indicates the number of analog channels available as A/D inputs and
Legend:
R = Readable bit
- n = Value at POR
PCFG<3:0>
ADFM
U-0
0000
0001
0010
0011
0100
0101
011x
1000
1001
1010
1011
1100
1101
1110
1111
the number of analog channels used as voltage reference inputs.
U-0
AN4
RA5
D
D
D
D
D
D
A
A
A
A
A
A
A
A
A
D = Digital I/O
V
V
V
V
V
V
V
V
V
AN3
RA3
R/W-0
REF
REF
REF
REF
REF
REF
REF
REF
REF
A
A
A
D
A
D
Preliminary
W = Writable bit
’1’ = Bit is set
+
+
+
+
+
+
+
+
+
V
V
V
V
V
AN2
RA2
REF
REF
REF
REF
REF
D
D
D
D
A
A
A
A
A
A
-
-
-
-
-
U-0
After the A/D module has been configured as desired,
the selected channel must be acquired before the con-
version is started. The analog input channels must
have their corresponding TRIS bits selected as inputs.
To determine sample time, see Section 10.1. After this
acquisition time has elapsed, the A/D conversion can
be started.
AN1
RA1
A
A
A
A
A
A
D
A
A
A
A
A
A
D
D
PCFG3
R/W-0
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared
AN0
RA0
A
A
A
A
A
A
D
A
A
A
A
A
A
A
A
V
RA3
RA3
RA3
RA3
RA3
RA3
RA3
RA3
RA3
V
V
V
V
V
V
REF
PCFG2
DD
DD
DD
DD
DD
DD
R/W-0
+
2001 Microchip Technology Inc.
V
RA2
RA2
RA2
RA2
RA2
V
V
V
V
V
V
V
V
V
V
REF
SS
SS
SS
SS
SS
SS
SS
SS
SS
SS
x = Bit is unknown
-
PCFG1
R/W-0
Refs
C
5/0
4/1
5/0
4/1
3/0
2/1
0/0
3/2
5/0
4/1
3/2
3/2
2/2
1/0
1/2
HAN
(1)
/
PCFG0
R/W-0
bit 0

Related parts for PIC16C926-I/CL