English
Language : 

PIC18F6585 Datasheet, PDF (129/496 Pages) Microchip Technology – 64/68/80-Pin High-Performance, 64-Kbyte Enhanced Flash Microcontrollers with ECAN Module
PIC18F6585/8585/6680/8680
TABLE 10-1: PORTA FUNCTIONS
Name
Bit# Buffer
Function
RA0/AN0
bit 0 TTL Input/output or analog input.
RA1/AN1
bit 1 TTL Input/output or analog input.
RA2/AN2/VREF-
bit 2 TTL Input/output or analog input or VREF-.
RA3/AN3/VREF+
bit 3 TTL Input/output or analog input or VREF+.
RA4/T0CKI
bit 4 ST/OD Input/output or external clock input for Timer0. Output is open-drain type.
RA5/AN4/LVDIN
bit 5 TTL Input/output or slave select input for synchronous serial port or analog
input, or Low-Voltage Detect input.
OSC2/CLKO/RA6
bit 6 TTL OSC2 or clock output, or I/O pin.
Legend: TTL = TTL input, ST = Schmitt Trigger input
TABLE 10-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
LATA
— LATA Data Output Register
TRISA
— PORTA Data Direction Register
ADCON1 —
— VCFG1 VCFG0 PCFG3 PCFG2 PCFG1 PCFG0
Legend: x = unknown, u = unchanged, – = unimplemented locations read as ‘0’.
Shaded cells are not used by PORTA.
-x0x 0000 -u0u 0000
-xxx xxxx -uuu uuuu
-111 1111 -111 1111
--00 0000 --00 0000
 2004 Microchip Technology Inc.
DS30491C-page 127