English
Language : 

PIC16LF18854 Datasheet, PDF (225/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
PIC16(L)F18856/76
12.11 Register Definitions: PORTD
REGISTER 12-32: PORTD: PORTD REGISTER
R/W-x/u
RD7
bit 7
R/W-x/u
RD6
R/W-x/u
RD5
R/W-x/u
RD4
R-x/u
RD3
R/W-x/u
RD2
R/W-x/u
RD1
R/W-x/u
RD0
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
RD<7:0>: PORTD I/O Value bits(1)
1 = Port pin is > VIH
0 = Port pin is < VIL
Note 1: Writes to PORTD are actually written to corresponding LATD register. Reads from PORTD register is
return of actual I/O pin values.
2: Bit RD3 is read-only, and will read ‘1’ when MCLRE = 1 (master clear enabled).
REGISTER 12-33: TRISD: PORTD TRI-STATE REGISTER
R/W-x/u
TRISD7
bit 7
R/W-x/u
TRISD6
R/W-x/u
TRISD5
R/W-x/u
TRISD4
R-x/u
TRISD3
R/W-x/u
TRISD2
R/W-x/u
TRISD1
R/W-x/u
TRISD0
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
TRISD<7:0>: TRISD I/O Value bits(1)
1 = Port pin is > VIH
0 = Port pin is < VIL
Note 1: Writes to PORTD are actually written to corresponding LATD register. Reads from PORTD register is
return of actual I/O pin values.
2: Bit RD3 is read-only, and will read ‘1’ when MCLRE = 1 (master clear enabled).
 2016 Microchip Technology Inc.
Preliminary
DS40001824A-page 225