English
Language : 

PIC18FXX8 Datasheet, PDF (97/402 Pages) Microchip Technology – 28/40-Pin High-Performance, Enhanced Flash Microcontrollers with CAN Module
PIC18FXX8
TABLE 9-1: PORTA FUNCTIONS
Name
Bit# Buffer
Function
RA0/AN0/CVREF
bit 0 TTL Input/output, analog input or analog comparator voltage reference
output.
RA1/AN1
bit 1 TTL Input/output or analog input.
RA2/AN2/VREF-
bit 2 TTL Input/output, analog input or VREF-.
RA3/AN3/VREF+
bit 3 TTL Input/output, analog input or VREF+.
RA4/T0CKI
bit 4 ST/OD Input/output, external clock input for Timer0, output is open-drain type.
RA5/AN4/SS/LVDIN
bit 5 TTL Input/output, analog input, slave select input for synchronous serial port
or Low-Voltage Detect input.
OSC2/CLKO/RA6
bit 6 TTL Oscillator clock output or input/output.
Legend: TTL = TTL input, ST = Schmitt Trigger input, OD = Open-Drain
TABLE 9-2: SUMMARY OF REGISTERS ASSOCIATED WITH PORTA
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR, BOR
Value on
all other
Resets
PORTA
— RA6 RA5 RA4 RA3
RA2
RA1
RA0 -00x 0000 -uuu uuuu
LATA
— Latch A Data Output Register
-xxx xxxx -uuu uuuu
TRISA
— PORTA Data Direction Register
-111 1111 -111 1111
ADCON1 ADFM ADCS2 —
— PCFG3 PCFG2 PCFG1 PCFG0 00-- 0000 uu-- uuuu
Legend: x = unknown, u = unchanged, - = unimplemented locations read as ‘0’. Shaded cells are not used by PORTA.
 2004 Microchip Technology Inc.
DS41159D-page 95