English
Language : 

PIC18F4539 Datasheet, PDF (87/322 Pages) Microchip Technology – Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel
PIC18FXX39
TABLE 9-1: PORTA FUNCTIONS
Name
Bit# Buffer
Function
RA0/AN0
RA1/AN1
RA2/AN2/VREF-
RA3/AN3/VREF+
RA4/T0CKI
bit0
TTL Input/output or analog input.
bit1
TTL Input/output or analog input.
bit2
TTL Input/output or analog input or VREF-.
bit3
TTL Input/output or analog input or VREF+.
bit4
ST Input/output or external clock input for Timer0.
Output is open drain type.
RA5/SS/AN4/LVDIN
bit5
TTL Input/output or slave select input for synchronous serial port or analog
input, or low voltage detect input.
OSC2/CLKO/RA6
bit6
TTL OSC2 or clock output or I/O pin.
Legend: TTL = TTL input, ST = Schmitt Trigger input
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 -x0x 0000 -u0u 0000
LATA
— LATA 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 00-- 0000
Legend: x = unknown, u = unchanged, - = unimplemented locations read as '0'. Shaded cells are not used by PORTA.
 2002 Microchip Technology Inc.
Preliminary
DS30485A-page 85