Datasheet

2003 Microchip Technology Inc. DS30235J-page 27
PIC16C62X
TABLE 5-1: PORTA FUNCTIONS
TABLE 5-2: SUMMARY OF REGISTERS ASSOCIATED WITH PORTA
Name Bit #
Buffer
Type
Function
RA0/AN0
bit0 ST
Input/output or comparator input
RA1/AN1
bit1 ST
Input/output or comparator input
RA2/AN2/V
REF
bit2 ST
Input/output or comparator input or V
REF output
RA3/AN3
bit3 ST
Input/output or comparator input/output
RA4/T0CKI
bit4 ST
Input/output or external clock input for TMR0 or comparator output.
Output is open drain type.
Legend: ST = Schmitt Trigger input
Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Value on
POR
Value on
All Other
RESETS
05h PORTA
RA4 RA3 RA2 RA1 RA0
---x 0000 ---u 0000
85h TRISA
TRISA
4
TRISA
3
TRISA
2
TRISA
1
TRISA
0
---1 1111 ---1 1111
1Fh CMCON
C2OUT C1OUT CIS CM2 CM1 CM0
00-- 0000 00-- 0000
9Fh VRCON
VREN VROE
VRR VR3 VR2 VR1 VR0
000- 0000 000- 0000
Legend: — = Unimplemented locations, read as ‘0’, u = unchanged, x = unknown
Note: Shaded bits are not used by PORTA.