PIC16F62X
TABLE 5-1:
Name
PORTA FUNCTIONS
Buffer
Bit #
Function
Type
RA0/AN0
bit0
bit1
bit2
bit3
bit4
ST
ST
ST
ST
ST
Bi-directional I/O port/comparator input
Bi-directional I/O port/comparator input
RA1/AN1
RA2/AN2/VREF
RA3/AN3
Bi-directional I/O port/analog/comparator input or VREF output
Bi-directional I/O port/analog/comparator input/comparator output
RA4/T0CKI
Bi-directional I/O port/external clock input for TMR0 or comparator output.
Output is open drain type.
RA5/MCLR/THV
bit5
bit6
ST
ST
Input port/master clear (reset input/programming voltage input. When
configured as MCLR, this pin is an active low reset to the device. Voltage
on MCLR/THV must not exceed VDD during normal device operation.
RA6/OSC2/CLK-
OUT
Bi-directional I/O port/Oscillator crystal output. Connects to crystal or res-
onator in crystal oscillator mode. In ER mode, OSC2 pin outputs CLKOUT
which has 1/4 the frequency of OSC1, and denotes the instruction cycle
rate.
RA7/OSC1/CLKIN
bit7
ST
Bi-directional I/O port/oscillator crystal input/external clock source input.
Legend: ST = Schmitt Trigger input
TABLE 5-2:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTA
Value on
Value on
POR
Address Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
All Other
Resets
05h
85h
1Fh
9Fh
PORTA
TRISA
RA7
RA6
RA5
—
RA4
RA3
RA2
RA1
RA0
xxxx 0000 xxxu 0000
TRISA7 TRISA6
TRISA4 TRISA3 TRISA2 TRISA1 TRISA0 11-1 1111 11-1 1111
CMCON
VRCON
C2OUT
VREN
C1OUT
VROE
C2INV
VRR
C1INV
—
CIS
CM2
VR2
CM1
VR1
CM0
VR0
0000 0000 0000 0000
000- 0000 000- 0000
VR3
Legend: — = Unimplemented locations, read as ‘0’, u = unchanged, x = unknown
Note: Shaded bits are not used by PORTA.
1999 Microchip Technology Inc.
Preliminary
DS40300B-page 33