6 I/O PORTS (PPORT)
6-12
Seiko Epson Corporation
S1C17M20/M21/M22/M23/M24/M25
TECHNICAL MANUAL (Rev. 1.0)
6.7 Control Register and Port Function Configuration of this IC
This section shows the PPORT control register/bit configuration in this IC and the list of peripheral I/O functions
selectable for each port.
Note: The control bits for the ports that are not available in the model are reserved bits. Do not alter
them from the initial value.
6.7.1 P0 Port Group
The P0 port group supports the GPIO and interrupt functions.
Table 6.7.1.1 Control Registers for P0 Port Group
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
M20/M23 M21/
M24
M22/
M25
24pin 32pin
P0DAT
(P0 Port Data
Register)
15 P0OUT7
0
H0
R/W –
–
–
–
✓
14 P0OUT6
0
H0
R/W
–
–
–
✓
13 P0OUT5
0
H0
R/W
–
–
–
✓
12 P0OUT4
0
H0
R/W
–
–
–
✓
11 P0OUT3
0
H0
R/W
✓
✓
✓
✓
10 P0OUT2
0
H0
R/W
✓
✓
✓
✓
9
P0OUT1
0
H0
R/W
✓
✓
✓
✓
8
P0OUT0
0
H0
R/W
✓
✓
✓
✓
7
P0IN7
0
H0
R
–
–
–
–
✓
6
P0IN6
0
H0
R
–
–
–
✓
5
P0IN5
0
H0
R
–
–
–
✓
4
P0IN4
0
H0
R
–
–
–
✓
3
P0IN3
0
H0
R
✓
✓
✓
✓
2
P0IN2
0
H0
R
✓
✓
✓
✓
1
P0IN1
0
H0
R
✓
✓
✓
✓
0
P0IN0
0
H0
R
✓
✓
✓
✓
P0IOEN
(P0 Port Enable
Register)
15 P0IEN7
0
H0
R/W –
–
–
–
✓
14 P0IEN6
0
H0
R/W
–
–
–
✓
13 P0IEN5
0
H0
R/W
–
–
–
✓
12 P0IEN4
0
H0
R/W
–
–
–
✓
11 P0IEN3
0
H0
R/W
✓
✓
✓
✓
10 P0IEN2
0
H0
R/W
✓
✓
✓
✓
9
P0IEN1
0
H0
R/W
✓
✓
✓
✓
8
P0IEN0
0
H0
R/W
✓
✓
✓
✓
7
P0OEN7
0
H0
R/W –
–
–
–
✓
6
P0OEN6
0
H0
R/W
–
–
–
✓
5
P0OEN5
0
H0
R/W
–
–
–
✓
4
P0OEN4
0
H0
R/W
–
–
–
✓
3
P0OEN3
0
H0
R/W
✓
✓
✓
✓
2
P0OEN2
0
H0
R/W
✓
✓
✓
✓
1
P0OEN1
0
H0
R/W
✓
✓
✓
✓
0
P0OEN0
0
H0
R/W
✓
✓
✓
✓