Microchip Technology DM164134 데이터 시트

다운로드
페이지 402
© 2006 Microchip Technology Inc.
DS41159E-page 95
PIC18FXX8
TABLE 9-1:
PORTA FUNCTIONS       
TABLE 9-2:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTA     
     
Name
Bit#
Buffer Function
RA0/AN0/CV
REF
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/V
REF
-
bit 2
TTL
Input/output, analog input or V
REF
-.
RA3/AN3/V
REF
+
bit 3
TTL
Input/output, analog input or V
REF
+.
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
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.