English
Language : 

PIC16LF1904 Datasheet, PDF (103/288 Pages) Microchip Technology – 28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt XLP Technology
PIC16LF1904/6/7
REGISTER 11-1: PORTA: PORTA REGISTER
R/W-x/x
RA7
bit 7
R/W-x/x
RA6
R/W-x/x
RA5
R/W-x/x
RA4
R-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 the corresponding LATA register. Reads from the PORTA register is
return of actual I/O pin values.
REGISTER 11-2: 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-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-4
bit 3
bit 2-0
TRISA<7:4>: PORTA Tri-State Control bits
1 = PORTA pin configured as an input (tri-stated)
0 = PORTA pin configured as an output
TRISA3: RA3 Port Tri-State Control bit
This bit is always ‘1’ as RA3 is an input only
TRISA<2:0>: PORTA Tri-State Control bits
1 = PORTA pin configured as an input (tri-stated)
0 = PORTA pin configured as an output
REGISTER 11-3: LATA: PORTA DATA LATCH REGISTER
R/W-x/u
LATA7
bit 7
R/W-x/u
LATA6
R/W-x/u
LATA5
R/W-x/u
LATA4
R/W-x/u
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-4
LATA<7:0>: RA<7:4> Output Latch Value bits(1)
Note 1: Writes to PORTA are actually written to the corresponding LATA register. Reads from the PORTA register is
return of actual I/O pin values.
 2011 Microchip Technology Inc.
Preliminary
DS41569A-page 103