|
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
|
▷ |