English
Language : 

PIC16LF1847 Datasheet, PDF (122/408 Pages) Microchip Technology – 18/20/28-Pin Flash Microcontrollers with nanoWatt XLP Technology
PIC16(L)F1847
REGISTER 12-3: PORTA: PORTA REGISTER
R/W-x/x
RA7
bit 7
R/W-x/x
RA6
R-x/x
RA5
R/W-x/x
RA4
R/W-x/x
RA3
R/W-x/x
RA2
R/W-x/x
RA1
R/W-x/x
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.
REGISTER 12-4: TRISA: PORTA TRI-STATE REGISTER
R/W-1/1
TRISA7
bit 7
R/W-1/1
TRISA6
R-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-6
bit 5
bit 4-0
TRISA<7:6>: PORTA Tri-State Control bit
1 = PORTA pin configured as an input (tri-stated)
0 = PORTA pin configured as an output
TRISA5: RA5 Port Tri-State Control bit
This bit is always ‘1’ as RA5 is an input only
TRISA<4:0>: PORTA Tri-State Control bit
1 = PORTA pin configured as an input (tri-stated)
0 = PORTA pin configured as an output
REGISTER 12-5: LATA: PORTA DATA LATCH REGISTER
R/W-x/u
LATA7
bit 7
R/W-x/u
LATA6
U-0
R/W-x/u
R/W-x/u
—
LATA4
LATA3
R/W-x/u
LATA2
R/W-x/u
LATA1
R/W-x/u
LATA0
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-6
bit 5
bit 4-0
LATA<7:6>: RA<7:6> Output Latch Value bits(1)
Unimplemented: Read as ‘0’
LATA<4:0>: RA<4:0> Output Latch Value bits(1)
Note 1: Writes to PORTA are actually written to corresponding LATA register. Reads from PORTA register is return of actual I/O
pin values.
DS41453A-page 122
Preliminary
 2011 Microchip Technology Inc.