English
Language : 

PIC18LF24K Datasheet, PDF (200/594 Pages) –
PIC18(L)F26/45/46K40
15.4 Register Definitions: Port Control
REGISTER 15-1: PORTx: PORTx REGISTER(1)
R/W-x/u
R/W-x/u
R/W-x/u
R/W-x/u
Rx7
Rx6
Rx5
Rx4
bit 7
R/W-x/u
Rx3
R/W-x/u
Rx2
R/W-x/u
Rx1
Legend:
R = Readable bit
W = Writable bit
‘1’ = Bit is set
‘0’ = Bit is cleared
-n/n = Value at POR and BOR/Value at all other Resets
U = Unimplemented bit, read as ‘0’
x = Bit is unknown
bit 7-0
Rx<7:0>: Rx7:Rx0 Port I/O Value bits
1 = Port pin is  VIH
0 = Port pin is  VIL
Note 1: Writes to PORTx are actually written to the corresponding LATx register.
Reads from PORTx register return actual I/O pin values.
R/W-x/u
Rx0
bit 0
TABLE 15-2: PORT REGISTERS
Name
Device
28 40/44
Pins Pins
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
PORTA
X
X
RA7
RA6
PORTB
X
X
RB7(1)
RB6(1)
RA5
RB5
RA4
RB4
RA3
RB3
PORTC
X
X
RC7
RC6
RC5
RC4
RC3
PORTD
X
—
—
—
—
—
X
RD7
RD6
RD5
RD4
RD3
PORTE
X
—
—
—
—
RE3(2)
X
—
—
—
—
RE3(2)
Note 1: Bits RB6 and RB7 read ‘1’ while in Debug mode.
2: Bit PORTE3 is read-only, and will read ‘1’ when MCLRE = 1 (Master Clear enabled).
RA2
RB2
RC2
—
RD2
—
RE2
Bit 1
RA1
RB1
RC1
—
RD1
—
RE1
Bit 0
RA0
RB0
RC0
—
RD0
—
RE0
 2016 Microchip Technology Inc.
Preliminary
DS40001816C-page 200