English
Language : 

PIC16F720_13 Datasheet, PDF (46/254 Pages) Microchip Technology – 20-Pin Flash Microcontrollers
PIC16(L)F720/721
REGISTER 6-1: PORTA: PORTA REGISTER
U-0
—
bit 7
U-0
R/W-x/u
R/W-x/u
—
RA5
RA4
R/W-x/u
RA3(1)
R/W-x/u
RA2
R/W-x/u
RA1
R/W-x/u
RA0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-6
bit 5-0
Unimplemented: Read as ‘0’
RA<5:0>: PORTA I/O Pin bit
1 = Port pin is > VIH
0 = Port pin is < VIL
Note 1: RA<3> is input only.
REGISTER 6-2: TRISA: PORTA TRI-STATE REGISTER
U-0
—
bit 7
U-0
R/W-1
R/W-1
U-1
—
TRISA5
TRISA4
—(1)
R/W-1
TRISA2
R/W-1
TRISA1
R/W-1
TRISA0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-6
bit 5-4
bit 3
bit 2-0
Unimplemented: Read as ‘0’
TRISA<5:4>: PORTA Tri-State Control bit
1 = PORTA pin configured as an input (tri-stated)
0 = PORTA pin configured as an output
Unimplemented: Read as ‘1’
TRISA<2:0>: PORTA Tri-State Control bit
1 = PORTA pin configured as an input (tri-stated)
0 = PORTA pin configured as an output
Note 1: TRISA<3> is unimplemented and read as 1.
REGISTER 6-3:
U-0
—
bit 7
WPUA: WEAK PULL-UP PORTA REGISTER
U-0
R/W-1
R/W-1
R/W-1
—
WPUA5
WPUA4
WPUA3(2)
R/W-1
WPUA2
R/W-1
WPUA1
R/W-1
WPUA0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-6
bit 5-0
Note 1:
2:
Unimplemented: Read as ‘0’
WPUA<5:0>: Weak Pull-up PORTA Control bits
1 = Weak pull-up enabled(1)
0 = Weak pull-up disabled
Enabling weak pull-ups also requires that the RABPU bit of the OPTION_REG register be cleared.
If MCLREN = 1, WPUA3 is always enabled.
DS41430D-page 46
 2010-2013 Microchip Technology Inc.