English
Language : 

PIC18F1XK22 Datasheet, PDF (81/388 Pages) Microchip Technology – 20-Pin Flash Microcontrollers with nanoWatt XLP Technology
PIC18F1XK22/LF1XK22
REGISTER 8-1: PORTA: PORTA REGISTER
U-0
—
bit 7
U-0
R/W-x
R/W-x
R-x
—
RA5
RA4
RA3
R/W-x
RA2
R/W-x
RA1
R/W-x
RA0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-6
bit 5-0
Unimplemented: Read as ‘0’
RA<5:0>: PORTA I/O Pin bit(1)
1 = Port pin is > VIH
0 = Port pin is < VIL
Note 1: The RA3 bit is only available when Master Clear Reset is disabled (MCLRE Configuration bit = 0).
Otherwise, RA3 reads as ‘0’. This bit is read-only.
REGISTER 8-2: TRISA: PORTA TRI-STATE REGISTER
U-0
—
bit 7
U-0
R/W-1
R/W-1
U-1
—
TRISA5
TRISA4
—
R/W-1
TRISA2
R/W-1
TRISA1
R/W-1
TRISA0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-6
bit 5-4
bit 3
bit 2-0
Unimplemented: Read as ‘0’
TRISA<5:4>: PORTA Tri-State Control bit(1)
1 = PORTA pin configured as an input (tri-stated)
0 = PORTA pin configured as an output
Unimplemented: Read as ‘1’
TRISA<2:0>: PORTA Tri-State Control bit(1)
1 = PORTA pin configured as an input (tri-stated)
0 = PORTA pin configured as an output
Note 1: TRISA<5:4> always reads ‘1’ in XT, HS and LP Oscillator modes.
 2010 Microchip Technology Inc.
Preliminary
DS41365D-page 81