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