7 I/O PORTS (PPORT)
S1C31D50/D51 TECHNICAL MANUAL
Seiko Epson Corporation
7-17
(Rev. 2.00)
7.7.3 P2 Port Group
The P2 port group supports the GPIO and interrupt functions.
Table 7.7.3.1 Control Registers for P2 Port Group
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
48
pin
64
pin
80
pin
100
pin
P2DAT
(P2 Port Data
Register)
15 P2OUT7
0
H0
R/W –
–
✓
✓
✓
14 P2OUT6
0
H0
R/W
–
✓
✓
✓
13 P2OUT5
0
H0
R/W
–
✓
✓
✓
12 P2OUT4
0
H0
R/W
–
✓
✓
✓
11 P2OUT3
0
H0
R/W
✓
✓
✓
✓
10 P2OUT2
0
H0
R/W
✓
✓
✓
✓
9
P2OUT1
0
H0
R/W
✓
✓
✓
✓
8
P2OUT0
0
H0
R/W
✓
✓
✓
✓
7
P2IN7
0
H0
R
–
–
✓
✓
✓
6
P2IN6
0
H0
R
–
✓
✓
✓
5
P2IN5
0
H0
R
–
✓
✓
✓
4
P2IN4
0
H0
R
–
✓
✓
✓
3
P2IN3
0
H0
R
✓
✓
✓
✓
2
P2IN2
0
H0
R
✓
✓
✓
✓
1
P2IN1
0
H0
R
✓
✓
✓
✓
0
P2IN0
0
H0
R
✓
✓
✓
✓
P2IOEN
(P2 Port Enable
Register)
15 P2IEN7
0
H0
R/W –
–
✓
✓
✓
14 P2IEN6
0
H0
R/W
–
✓
✓
✓
13 P2IEN5
0
H0
R/W
–
✓
✓
✓
12 P2IEN4
0
H0
R/W
–
✓
✓
✓
11 P2IEN3
0
H0
R/W
✓
✓
✓
✓
10 P2IEN2
0
H0
R/W
✓
✓
✓
✓
9
P2IEN1
0
H0
R/W
✓
✓
✓
✓
8
P2IEN0
0
H0
R/W
✓
✓
✓
✓
7
P2OEN7
0
H0
R/W –
–
✓
✓
✓
6
P2OEN6
0
H0
R/W
–
✓
✓
✓
5
P2OEN5
0
H0
R/W
–
✓
✓
✓
4
P2OEN4
0
H0
R/W
–
✓
✓
✓
3
P2OEN3
0
H0
R/W
✓
✓
✓
✓
2
P2OEN2
0
H0
R/W
✓
✓
✓
✓
1
P2OEN1
0
H0
R/W
✓
✓
✓
✓
0
P2OEN0
0
H0
R/W
✓
✓
✓
✓
P2RCTL
(P2 Port Pull-up/down
Control Register)
15 P2PDPU7
0
H0
R/W –
–
✓
✓
✓
14 P2PDPU6
0
H0
R/W
–
✓
✓
✓
13 P2PDPU5
0
H0
R/W
–
✓
✓
✓
12 P2PDPU4
0
H0
R/W
–
✓
✓
✓
11 P2PDPU3
0
H0
R/W
✓
✓
✓
✓
10 P2PDPU2
0
H0
R/W
✓
✓
✓
✓
9
P2PDPU1
0
H0
R/W
✓
✓
✓
✓
8
P2PDPU0
0
H0
R/W
✓
✓
✓
✓
7
P2REN7
0
H0
R/W –
–
✓
✓
✓
6
P2REN6
0
H0
R/W
–
✓
✓
✓
5
P2REN5
0
H0
R/W
–
✓
✓
✓
4
P2REN4
0
H0
R/W
–
✓
✓
✓
3
P2REN3
0
H0
R/W
✓
✓
✓
✓
2
P2REN2
0
H0
R/W
✓
✓
✓
✓
1
P2REN1
0
H0
R/W
✓
✓
✓
✓
0
P2REN0
0
H0
R/W
✓
✓
✓
✓