6 I/O PORTS (PPORT)
S1C17M20/M21/M22/M23/M24/M25
Seiko Epson Corporation
6-19
TECHNICAL MANUAL (Rev. 1.0)
Table 6.7.3.2 P2 Port Group Function Assignment
Port
name
P2SELy = 0
P2SELy = 1
M20/M23 M21/
M24
M22/
M25
GPIO
P2yMUX = 0x0
(Function 0)
P2yMUX = 0x1
(Function 1)
P2yMUX = 0x2
(Function 2)
P2yMUX = 0x3
(Function 3)
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
24pin 32pin
P20
P20
–
–
UPMUX
*
1
ADC12A ADIN07
–
–
–
–
–
✓
P21
P21
–
–
UPMUX
*
1
ADC12A ADIN06
–
–
–
–
–
✓
P22
P22
–
–
UPMUX
*
1
ADC12A ADIN05
–
–
–
✓
✓
✓
P23
P23
–
–
UPMUX
*
1
ADC12A ADIN04
–
–
–
✓
✓
✓
P24
P24
T16B Ch.1 EXCL10 UPMUX
*
1
ADC12A ADIN03
–
–
✓
✓
✓
✓
P25
P25
T16B Ch.1 EXCL11 UPMUX
*
1
ADC12A ADIN02
–
–
✓
✓
✓
✓
P26
P26
–
–
UPMUX
*
1
ADC12A ADIN01
–
–
✓
✓
✓
✓
P27
P27
–
–
UPMUX
*
1
ADC12A ADIN00
–
–
✓
✓
✓
✓
*
1: Refer to the “Universal Port Multiplexer” chapter.
6.7.4 P3 Port Group
The P3 port group supports the GPIO and interrupt functions.
Table 6.7.4.1 Control Registers for P3 Port Group
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
M20/M23 M21/
M24
M22/
M25
24pin 32pin
P3DAT
(P3 Port Data
Register)
15 P3OUT7
0
H0
R/W –
–
–
–
✓
14 P3OUT6
0
H0
R/W
–
–
–
✓
13 P3OUT5
0
H0
R/W
–
–
–
✓
12 P3OUT4
0
H0
R/W
–
–
–
✓
11 P3OUT3
0
H0
R/W
–
–
–
✓
10 P3OUT2
0
H0
R/W
✓
✓
✓
✓
9
P3OUT1
0
H0
R/W
✓
✓
✓
✓
8
P3OUT0
0
H0
R/W
✓
✓
✓
✓
7
P3IN7
0
H0
R
–
–
–
–
✓
6
P3IN6
0
H0
R
–
–
–
✓
5
P3IN5
0
H0
R
–
–
–
✓
4
P3IN4
0
H0
R
–
–
–
✓
3
P3IN3
0
H0
R
–
–
–
✓
2
P3IN2
0
H0
R
✓
✓
✓
✓
1
P3IN1
0
H0
R
✓
✓
✓
✓
0
P3IN0
0
H0
R
✓
✓
✓
✓
P3IOEN
(P3 Port Enable
Register)
15 P3IEN7
0
H0
R/W –
–
–
–
✓
14 P3IEN6
0
H0
R/W
–
–
–
✓
13 P3IEN5
0
H0
R/W
–
–
–
✓
12 P3IEN4
0
H0
R/W
–
–
–
✓
11 P3IEN3
0
H0
R/W
–
–
–
✓
10 P3IEN2
0
H0
R/W
✓
✓
✓
✓
9
P3IEN1
0
H0
R/W
✓
✓
✓
✓
8
P3IEN0
0
H0
R/W
✓
✓
✓
✓
7
P3OEN7
0
H0
R/W –
–
–
–
✓
6
P3OEN6
0
H0
R/W
–
–
–
✓
5
P3OEN5
0
H0
R/W
–
–
–
✓
4
P3OEN4
0
H0
R/W
–
–
–
✓
3
P3OEN3
0
H0
R/W
–
–
–
✓
2
P3OEN2
0
H0
R/W
✓
✓
✓
✓
1
P3OEN1
0
H0
R/W
✓
✓
✓
✓
0
P3OEN0
0
H0
R/W
✓
✓
✓
✓