English
Language : 

PIC18CXX2_13 Datasheet, PDF (79/304 Pages) Microchip Technology – High Performance Microcontrollers with 10-bit A/D
PIC18CXX2
TABLE 8-1: PORTA FUNCTIONS
Name
Bit# Buffer
Function
RA0/AN0
bit0
TTL Input/output or analog input.
RA1/AN1
bit1
TTL Input/output or analog input.
RA2/AN2/VREF-
bit2
TTL Input/output or analog input or VREF-.
RA3/AN3/VREF+
bit3
TTL Input/output or analog input or VREF+.
RA4/T0CKI
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 8-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 Value on all
POR,
other
BOR
RESETS
PORTA
— RA6 RA5 RA4 RA3
RA2
RA1
RA0
LATA
— Latch A Data Output Register
TRISA
— PORTA Data Direction Register
ADCON1 ADFM ADCS2 —
— PCFG3 PCFG2 PCFG1 PCFG0
Legend: x = unknown, u = unchanged, - = unimplemented locations read as '0'.
Shaded cells are not used by PORTA.
--0x 0000 --0u 0000
--xx xxxx --uu uuuu
--11 1111 --11 1111
--0- 0000 --0- 0000
 1999-2013 Microchip Technology Inc.
DS39026D-page 79