English
Language : 

PIC16LF18854 Datasheet, PDF (202/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
PIC16(L)F18856/76
12.5 Register Definitions: PORTA
REGISTER 12-2: PORTA: PORTA REGISTER
R/W-x/u
RA7
bit 7
R/W-x/u
RA6
R/W-x/u
RA5
R/W-x/u
RA4
R-x/u
RA3
R/W-x/u
RA2
R/W-x/u
RA1
R/W-x/u
RA0
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
RA<7:0>: PORTA I/O Value bits(1)
1 = Port pin is > VIH
0 = Port pin is < VIL
Note 1: Writes to PORTA are actually written to corresponding LATA register. Reads from PORTA register is return
of actual I/O pin values.
2: Bit RA3 is read-only, and will read ‘1’ when MCLRE = 1 (master clear enabled).
REGISTER 12-3: TRISA: PORTA TRI-STATE REGISTER
R/W-1/1
TRISA7
bit 7
R/W-1/1
TRISA6
R/W-1/1
TRISA5
R/W-1/1
TRISA4
R/W-1/1
TRISA3
R/W-1/1
TRISA2
R/W-1/1
TRISA1
R/W-1/1
TRISA0
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
TRISA<7:0>: PORTA Tri-State Control bit
1 = PORTA pin configured as an input (tri-stated)
0 = PORTA pin configured as an output
DS40001824A-page 202
Preliminary
 2016 Microchip Technology Inc.