PIC12F635/PIC16F636/639
REGISTER 4-3:
PORTA – PORTA REGISTER (ADDRESS: 05h)
U-0
U-0
R/W-x R/W-x
R-x
—
—
RA5
RA4
RA3
bit 7
R/W-x
RA2
R/W-0
RA1
R/W-0
RA0
bit 0
bit 7-6:
bit 5-0:
Unimplemented: Read as ‘0’
RA<5:0>: PORTA I/O pins
1 = Port pin is > VIH
0 = Port pin is < VIL
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
REGISTER 4-4:
TRISA – PORTA TRI-STATE REGISTER (ADDRESS: 85h)
U-0
U-0
R/W-1 R/W-1
R-1
R/W-1
—
—
TRISA5(2) TRISA4(2) TRISA3(1) TRISA2
bit 7
R/W-1
TRISA1
R/W-1
TRISA0
bit 0
bit 7-6:
bit 5-0:
Unimplemented: Read as ‘0’
TRISA<5:0>: PORTA Tri-State Control bits(1,2)
1 = PORTA pin configured as an input (tri-stated)
0 = PORTA pin configured as an output
Note 1: TRISA<3> always reads ‘1’.
2: TRISA<5:4> always reads ‘1’ in XT, HS and LP Oscillator modes.
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
© 2005 Microchip Technology Inc.
Preliminary
DS41232B-page 41