Datasheet

PIC18F6310/6410/8310/8410
DS39635C-page 126 2010 Microchip Technology Inc.
TABLE 11-1: PORTA FUNCTIONS
Pin Name Function
TRIS
Setting
I/O
I/O
Type
Description
RA0/AN0 RA0 0 O DIG LATA<0> data output; not affected by analog input.
1 I TTL PORTA<0> data input; disabled when analog input enabled.
AN0 1 I ANA A/D Input Channel 0. Default input configuration on POR; does not
affect digital output.
RA1/AN1 RA1 0 O DIG LATA<1> data output; not affected by analog input.
1 I TTL PORTA<1> data input; disabled when analog input enabled.
AN1 1 I ANA A/D Input Channel 1. Default input configuration on POR; does not
affect digital output.
RA2/AN2/V
REF-RA2 0 O DIG LATA<2> data output; not affected by analog input. Disabled when
CV
REF output enabled.
1 I TTL PORTA<2> data input. Disabled when analog functions enabled;
disabled when CV
REF output enabled.
AN2 1 I ANA A/D Input Channel 2. Default input configuration on POR; not affected
by analog output.
V
REF- 1 I ANA Comparator voltage reference low input and A/D voltage reference low
input.
RA3/AN3/V
REF+RA3 0 O DIG LATA<3> data output; not affected by analog input.
1 I TTL PORTA<3> data input; disabled when analog input enabled.
AN3 1 I ANA A/D Input Channel 3. Default input configuration on POR.
V
REF+ 1 I ANA Comparator voltage reference high input and A/D voltage reference
high input.
RA4/T0CKI RA4 0 O DIG LATA<4> data output
1 I ST PORTA<4> data input; default configuration on POR.
T0CKI x I ST Timer0 clock input.
RA5/AN4/HLVDIN RA5 0 O DIG LATA<5> data output; not affected by analog input.
1 I TTL PORTA<5> data input; disabled when analog input enabled.
AN4 1 I ANA A/D Input Channel 4. Default configuration on POR.
HLVDIN 1 I ANA High/Low-Voltage Detect external trip point input.
OSC2/CLKO/RA6 OSC2 x O ANA Main oscillator feedback output connection (XT, HS and LP modes).
CLKO x O DIG System cycle clock output (F
OSC/4) in all oscillator modes except
RCIO, INTIO2 and ECIO.
RA6 0 O DIG LATA<6> data output. Enabled in RCIO, INTIO2 and ECIO modes only.
1 I TTL PORTA<6> data input. Enabled in RCIO, INTIO2 and ECIO modes
only.
OSC1/CLKI/RA7 OSC1 x I ANA Main oscillator input connection.
CLKI x I ANA Main clock input connection.
RA7 0 O DIG LATA<7> data output. Disabled in External Oscillator modes.
1 I TTL PORTA<7> data input. Disabled in External Oscillator modes.
Legend: O = Output, I = Input, ANA = Analog Signal, DIG = Digital Output, ST= Schmitt Buffer Input,
TTL = TTL Buffer Input, x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).