English
Language : 

PIC16LF18854 Datasheet, PDF (210/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
PIC16(L)F18856/76
12.7 Register Definitions: PORTB
REGISTER 12-12: PORTB: PORTB REGISTER
R/W-x/u
RB7
bit 7
R/W-x/u
RB6
R/W-x/u
RB5
R/W-x/u
RB4
R-x/u
RB3
R/W-x/u
RB2
R/W-x/u
RB1
R/W-x/u
RB0
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7-0
RB<7:0>: PORTB I/O Value bits(1)
1 = Port pin is > VIH
0 = Port pin is < VIL
Note 1: Writes to PORTB are actually written to corresponding LATB register. Reads from PORTB register is
return of actual I/O pin values.
2: Bit RB3 is read-only, and will read ‘1’ when MCLRE = 1 (master clear enabled).
REGISTER 12-13: TRISB: PORTB TRI-STATE REGISTER
R/W-1/1
TRISB7
bit 7
R/W-1/1
TRISB6
R/W-1/1
TRISB5
R/W-1/1
TRISB4
R/W-1/1
TRISB3
R/W-1/1
TRISB2
R/W-1/1
TRISB1
R/W-1/1
TRISB0
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7-0
TRISB<7:0>: PORTB Tri-State Control bit
1 = PORTB pin configured as an input (tri-stated)
0 = PORTB pin configured as an output
DS40001824A-page 210
Preliminary
 2016 Microchip Technology Inc.