6 I/O PORTS (PPORT)
6-18
Seiko Epson Corporation
S1C17M20/M21/M22/M23/M24/M25
TECHNICAL MANUAL (Rev. 1.0)
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
M20/M23 M21/
M24
M22/
M25
24pin 32pin
P2INTF
(P2 Port Interrupt
Flag Register)
15–8 –
0x00
–
R
–
–
–
–
–
7
P2IF7
0
H0
R/W Cleared by writing
1.
✓
✓
✓
✓
6
P2IF6
0
H0
R/W
✓
✓
✓
✓
5
P2IF5
0
H0
R/W
✓
✓
✓
✓
4
P2IF4
0
H0
R/W
✓
✓
✓
✓
3
P2IF3
0
H0
R/W
–
✓
✓
✓
2
P2IF2
0
H0
R/W
–
✓
✓
✓
1
P2IF1
0
H0
R/W
–
–
–
✓
0
P2IF0
0
H0
R/W
–
–
–
✓
P2INTCTL
(P2 Port Interrupt
Control Register)
15 P2EDGE7
0
H0
R/W –
✓
✓
✓
✓
14 P2EDGE6
0
H0
R/W
✓
✓
✓
✓
13 P2EDGE5
0
H0
R/W
✓
✓
✓
✓
12 P2EDGE4
0
H0
R/W
✓
✓
✓
✓
11 P2EDGE3
0
H0
R/W
–
✓
✓
✓
10 P2EDGE2
0
H0
R/W
–
✓
✓
✓
9
P2EDGE1
0
H0
R/W
–
–
–
✓
8
P2EDGE0
0
H0
R/W
–
–
–
✓
7
P2IE7
0
H0
R/W –
✓
✓
✓
✓
6
P2IE6
0
H0
R/W
✓
✓
✓
✓
5
P2IE5
0
H0
R/W
✓
✓
✓
✓
4
P2IE4
0
H0
R/W
✓
✓
✓
✓
3
P2IE3
0
H0
R/W
–
✓
✓
✓
2
P2IE2
0
H0
R/W
–
✓
✓
✓
1
P2IE1
0
H0
R/W
–
–
–
✓
0
P2IE0
0
H0
R/W
–
–
–
✓
P2CHATEN
(P2 Port Chattering
Filter Enable Register)
15–8 –
0x00
–
R
–
–
–
–
–
7
P2CHATEN7
0
H0
R/W –
✓
✓
✓
✓
6
P2CHATEN6
0
H0
R/W
✓
✓
✓
✓
5
P2CHATEN5
0
H0
R/W
✓
✓
✓
✓
4
P2CHATEN4
0
H0
R/W
✓
✓
✓
✓
3
P2CHATEN3
0
H0
R/W
–
✓
✓
✓
2
P2CHATEN2
0
H0
R/W
–
✓
✓
✓
1
P2CHATEN1
0
H0
R/W
–
–
–
✓
0
P2CHATEN0
0
H0
R/W
–
–
–
✓
P2MODSEL
(P2 Port Mode Select
Register)
15–8 –
0x00
–
R
–
–
–
–
–
7
P2SEL7
0
H0
R/W –
✓
✓
✓
✓
6
P2SEL6
0
H0
R/W
✓
✓
✓
✓
5
P2SEL5
0
H0
R/W
✓
✓
✓
✓
4
P2SEL4
0
H0
R/W
✓
✓
✓
✓
3
P2SEL3
0
H0
R/W
–
✓
✓
✓
2
P2SEL2
0
H0
R/W
–
✓
✓
✓
1
P2SEL1
0
H0
R/W
–
–
–
✓
0
P2SEL0
0
H0
R/W
–
–
–
✓
P2FNCSEL
(P2 Port Function
Select Register)
15–14 P27MUX[1:0]
0x0
H0
R/W –
✓
✓
✓
✓
13–12 P26MUX[1:0]
0x0
H0
R/W
✓
✓
✓
✓
11–10 P25MUX[1:0]
0x0
H0
R/W
✓
✓
✓
✓
9–8 P24MUX[1:0]
0x0
H0
R/W
✓
✓
✓
✓
7–6 P23MUX[1:0]
0x0
H0
R/W
–
✓
✓
✓
5–4 P22MUX[1:0]
0x0
H0
R/W
–
✓
✓
✓
3–2 P21MUX[1:0]
0x0
H0
R/W
–
–
–
✓
1–0 P20MUX[1:0]
0x0
H0
R/W
–
–
–
✓