7 I/O PORTS (PPORT)
7-22
Seiko Epson Corporation
S1C31D50/D51 TECHNICAL MANUAL
(Rev. 2.00)
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
48
pin
64
pin
80
pin
100
pin
P4IOEN
(P4 Port Enable
Register)
15 P4IEN7
0
H0
R/W –
– – –
✓
14 P4IEN6
0
H0
R/W
✓
✓
✓
✓
13 P4IEN5
0
H0
R/W
✓
✓
✓
✓
12 P4IEN4
0
H0
R/W
–
✓
✓
✓
11 P4IEN3
0
H0
R/W
–
✓
✓
✓
10 P4IEN2
0
H0
R/W
– –
✓
✓
9
P4IEN1
0
H0
R/W
– –
✓
✓
8
P4IEN0
0
H0
R/W
✓
✓
✓
✓
7
P4OEN7
0
H0
R/W –
– – –
✓
6
P4OEN6
0
H0
R/W
✓
✓
✓
✓
5
P4OEN5
0
H0
R/W
✓
✓
✓
✓
4
P4OEN4
0
H0
R/W
–
✓
✓
✓
3
P4OEN3
0
H0
R/W
–
✓
✓
✓
2
P4OEN2
0
H0
R/W
– –
✓
✓
1
P4OEN1
0
H0
R/W
– –
✓
✓
0
P4OEN0
0
H0
R/W
✓
✓
✓
✓
P4RCTL
(P4 Port Pull-up/down
Control Register)
15 P4PDPU7
0
H0
R/W –
– – –
✓
14 P4PDPU6
0
H0
R/W
✓
✓
✓
✓
13 P4PDPU5
0
H0
R/W
✓
✓
✓
✓
12 P4PDPU4
0
H0
R/W
–
✓
✓
✓
11 P4PDPU3
0
H0
R/W
–
✓
✓
✓
10 P4PDPU2
0
H0
R/W
– –
✓
✓
9
P4PDPU1
0
H0
R/W
– –
✓
✓
8
P4PDPU0
0
H0
R/W
✓
✓
✓
✓
7
P4REN7
0
H0
R/W –
– – –
✓
6
P4REN6
0
H0
R/W
✓
✓
✓
✓
5
P4REN5
0
H0
R/W
✓
✓
✓
✓
4
P4REN4
0
H0
R/W
–
✓
✓
✓
3
P4REN3
0
H0
R/W
–
✓
✓
✓
2
P4REN2
0
H0
R/W
– –
✓
✓
1
P4REN1
0
H0
R/W
– –
✓
✓
0
P4REN0
0
H0
R/W
✓
✓
✓
✓
P4INTF
(P4 Port Interrupt
Flag Register)
15–8 –
0x00
–
R
–
– – – –
7
P4IF7
0
H0
R/W Cleared by writing 1.
– – –
✓
6
P4IF6
0
H0
R/W
✓
✓
✓
✓
5
P4IF5
0
H0
R/W
✓
✓
✓
✓
4
P4IF4
0
H0
R/W
–
✓
✓
✓
3
P4IF3
0
H0
R/W
–
✓
✓
✓
2
P4IF2
0
H0
R/W
– –
✓
✓
1
P4IF1
0
H0
R/W
– –
✓
✓
0
P4IF0
0
H0
R/W
✓
✓
✓
✓
P4INTCTL
(P4 Port Interrupt
Control Register)
15 P4EDGE7
0
H0
R/W –
– – –
✓
14 P4EDGE6
0
H0
R/W
✓
✓
✓
✓
13 P4EDGE5
0
H0
R/W
✓
✓
✓
✓
12 P4EDGE4
0
H0
R/W
–
✓
✓
✓
11 P4EDGE3
0
H0
R/W
–
✓
✓
✓
10 P4EDGE2
0
H0
R/W
– –
✓
✓
9
P4EDGE1
0
H0
R/W
– –
✓
✓
8
P4EDGE0
0
H0
R/W
✓
✓
✓
✓
7
P4IE7
0
H0
R/W –
– – –
✓
6
P4IE6
0
H0
R/W
✓
✓
✓
✓
5
P4IE5
0
H0
R/W
✓
✓
✓
✓
4
P4IE4
0
H0
R/W
–
✓
✓
✓
3
P4IE3
0
H0
R/W
–
✓
✓
✓
2
P4IE2
0
H0
R/W
– –
✓
✓
1
P4IE1
0
H0
R/W
– –
✓
✓
0
P4IE0
0
H0
R/W
✓
✓
✓
✓