PIC16C745/765
TABLE 5-1:
PORTA FUNCTIONS
Input
Type
Output
Type
Name
Function
Description
RA0
ST
AN
ST
AN
ST
AN
ST
AN
AN
ST
ST
ST
AN
CMOS Bi-directional I/O
RA0/AN0
RA1/AN1
RA2/AN2
AN0
RA1
AN1
RA2
AN2
RA3
AN3
VREF
RA4
T0CKI
RA5
AN4
—
A/D Input
CMOS Bi-directional I/O
A/D Input
CMOS Bi-directional I/O
A/D Input
CMOS Bi-directional I/O
—
—
RA3/AN3/VREF
—
—
A/D Input
A/D Positive Reference
Bi-directional I/O
Timer 0 Clock Input
Bi-directional I/O
A/D Input
OD
—
RA4/T0CKI
RA5/AN4
—
Legend:
OD = open drain, ST = Schmitt Trigger
TABLE 5-2:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTA
Value on:
POR,
BOR
Value on all
other resets
Address
Name
Bit 7 Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
05h
85h
PORTA
TRISA
ADCON1
—
—
—
—
RA5
RA4
RA3
RA2
RA1
RA0
--0x 0000 --0u 0000
--11 1111 --11 1111
PORTA Data Direction Register
9Fh
—
—
—
—
—
PCFG2
PCFG1 PCFG0 ---- -000 ---- -000
Legend: x= unknown, u= unchanged, -= unimplemented locations read as '0'. Shaded cells are not used by PORTA.
DS41124A-page 32
Advanced Information
1999 Microchip Technology Inc.