6 I/O PORTS (PPORT)
S1C17M20/M21/M22/M23/M24/M25
Seiko Epson Corporation
6-21
TECHNICAL MANUAL (Rev. 1.0)
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
M20/M23 M21/
M24
M22/
M25
24pin 32pin
P3MODSEL
(P3 Port Mode Select
Register)
15–8 –
0x00
–
R
–
–
–
–
–
7
P3SEL7
0
H0
R/W –
–
–
–
✓
6
P3SEL6
0
H0
R/W
–
–
–
✓
5
P3SEL5
0
H0
R/W
–
–
–
✓
4
P3SEL4
0
H0
R/W
–
–
–
✓
3
P3SEL3
0
H0
R/W
–
–
–
✓
2
P3SEL2
0
H0
R/W
✓
✓
✓
✓
1
P3SEL1
0
H0
R/W
✓
✓
✓
✓
0
P3SEL0
0
H0
R/W
✓
✓
✓
✓
P3FNCSEL
(P3 Port Function
Select Register)
15–14 P37MUX[1:0]
0x0
H0
R/W –
–
–
–
✓
13–12 P36MUX[1:0]
0x0
H0
R/W
–
–
–
✓
11–10 P35MUX[1:0]
0x0
H0
R/W
–
–
–
✓
9–8 P34MUX[1:0]
0x0
H0
R/W
–
–
–
✓
7–6 P33MUX[1:0]
0x0
H0
R/W
–
–
–
✓
5–4 P32MUX[1:0]
0x0
H0
R/W
✓
✓
✓
✓
3–2 P31MUX[1:0]
0x0
H0
R/W
✓
✓
✓
✓
1–0 P30MUX[1:0]
0x0
H0
R/W
✓
✓
✓
✓
Table 6.7.4.2 P3 Port Group Function Assignment
Port
name
P3SELy = 0
P3SELy = 1
M20/M23 M21/
M24
M22/
M25
GPIO
P3yMUX = 0x0
(Function 0)
P3yMUX = 0x1
(Function 1)
P3yMUX = 0x2
(Function 2)
P3yMUX = 0x3
(Function 3)
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
24pin 32pin
P30
P30
–
–
UPMUX
*
1
ADC12A VREFA0
–
–
✓
✓
✓
✓
P31
P31
CLG
EXOSC UPMUX
*
1
–
–
–
–
✓
✓
✓
✓
P32
P32
RTCA
RTC1S
UPMUX
*
1
SVD3
EXSVD0
–
–
✓
✓
✓
✓
P33
P33
RFC Ch.0 SENB0
UPMUX
*
1
–
–
–
–
–
–
–
✓
P34
P34
RFC Ch.0 SENA0
UPMUX
*
1
–
–
–
–
–
–
–
✓
P35
P35
RFC Ch.0
REF0
UPMUX
*
1
–
–
–
–
–
–
–
✓
P36
P36
RFC Ch.0 RFIN0
UPMUX
*
1
–
–
–
–
–
–
–
✓
P37
P37
RFC Ch.1 SENB1
UPMUX
*
1
–
–
–
–
–
–
–
✓
*
1: Refer to the “Universal Port Multiplexer” chapter.
6.7.5 P4 Port Group
The P4 port group supports the GPIO and interrupt functions.
Table 6.7.5.1 Control Registers for P4 Port Group
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
M20/M23 M21/
M24
M22/
M25
24pin 32pin
P4DAT
(P4 Port Data
Register)
15–11 –
0x00
–
R
–
–
–
–
–
10 P4OUT2
0
H0
R/W –
–
–
–
✓
9
P4OUT1
0
H0
R/W
–
–
–
✓
8
P4OUT0
0
H0
R/W
–
–
–
✓
7–3 –
0x00
–
R
–
–
–
–
–
2
P4IN2
0
H0
R
–
–
–
–
✓
1
P4IN1
0
H0
R
–
–
–
✓
0
P4IN0
0
H0
R
–
–
–
✓
P4IOEN
(P4 Port Enable
Register)
15–11 –
0x00
–
R
–
–
–
–
–
10 P4IEN2
0
H0
R/W –
–
–
–
✓
9
P4IEN1
0
H0
R/W
–
–
–
✓
8
P4IEN0
0
H0
R/W
–
–
–
✓
7–3 –
0x00
–
R
–
–
–
–
–
2
P4OEN2
0
H0
R/W –
–
–
–
✓
1
P4OEN1
0
H0
R/W
–
–
–
✓
0
P4OEN0
0
H0
R/W
–
–
–
✓