P1DDR—Port 1 Data Direction Register
H'C0
Port 1
P2DDR—Port 2 Data Direction Register
H'C1
Port 2
P1DR—Port 1 Data Register
H'C2
Port 1
Bit
Modes
1 to 4
Initial value
Read/Write
Initial value
Read/Write
Modes
5 to 7
7
P1 DDR
1
—
0
W
7
6
P1 DDR
1
—
0
W
6
5
P1 DDR
1
—
0
W
5
4
P1 DDR
1
—
0
W
4
3
P1 DDR
1
—
0
W
3
2
P1 DDR
1
—
0
W
2
1
P1 DDR
1
—
0
W
1
0
P1 DDR
1
—
0
W
0
Port 1 input/output select
0
Generic input pin
1
Generic output pin
Bit
Modes
1 to 4
Initial value
Read/Write
Initial value
Read/Write
Modes
5 to 7
7
P2 DDR
1
—
0
W
7
6
P2 DDR
1
—
0
W
6
5
P2 DDR
1
—
0
W
5
4
P2 DDR
1
—
0
W
4
3
P2 DDR
1
—
0
W
3
2
P2 DDR
1
—
0
W
2
1
P2 DDR
1
—
0
W
1
0
P2 DDR
1
—
0
W
0
Port 2 input/output select
0
Generic input pin
1
Generic output pin
Bit
Initial value
Read/Write
7
P1
0
R/W
7
6
P1
0
R/W
6
5
P1
0
R/W
5
4
P1
0
R/W
4
3
P1
0
R/W
3
2
P1
0
R/W
2
1
P1
0
R/W
1
0
P1
0
R/W
0
Data for port 1 pins
804
www.DataSheet4U.com