6 I/O PORTS (PPORT)
6-24
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
PDFNCSEL
(Pd Port Function
Select Register)
15–10 –
0x00
–
R
–
–
–
–
–
9–8 PD4MUX[1:0]
0x0
H0
R/W –
–
✓
✓
✓
7–6 PD3MUX[1:0]
0x0
H0
R/W
–
✓
✓
✓
5–4 PD2MUX[1:0]
0x0
H0
R/W
✓
✓
✓
✓
3–2 PD1MUX[1:0]
0x0
H0
R/W
✓
✓
✓
✓
1–0 PD0MUX[1:0]
0x0
H0
R/W
✓
✓
✓
✓
Table 6.7.6.2 Pd Port Group Function Assignment
Port
name
PDSELy = 0
PDSELy = 1
M20/M23 M21/
M24
M22/
M25
GPIO
PDyMUX = 0x0
(Function 0)
PDyMUX = 0x1
(Function 1)
PDyMUX = 0x2
(Function 2)
PDyMUX = 0x3
(Function 3)
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
24pin 32pin
Pd0
PD0
DBG
DST2
–
–
–
–
–
–
✓
✓
✓
✓
Pd1
PD1
DBG
DSIO
–
–
–
–
–
–
✓
✓
✓
✓
Pd2
PD2
DBG
DCLK
–
–
–
–
–
–
✓
✓
✓
✓
Pd3
PD3
–
–
–
–
CLG
OSC3
–
–
–
✓
✓
✓
Pd4
PD4
–
–
–
–
CLG
OSC4
–
–
–
✓
✓
✓
6.7.7 Common Registers between Port Groups
Table 6.7.7.1 Control Registers for Common Use with Port Groups
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
M20/M23 M21/
M24
M22/
M25
24pin 32pin
PCLK
(P Port Clock Control
Register)
15–9 –
0x00
–
R
–
–
–
–
–
8
DBRUN
0
H0
R/WP –
✓
✓
✓
✓
7–4 CLKDIV[3:0]
0x0
H0
R/WP
✓
✓
✓
✓
3–2 KRSTCFG[1:0]
0x0
H0
R/WP
✓
✓
✓
✓
1–0 CLKSRC[1:0]
0x0
H0
R/WP
✓
✓
✓
✓
PINTFGRP
(P Port Interrupt Flag
Group Register)
15–8 –
0x00
–
R
–
–
–
–
–
7–5 –
0x0
–
R
–
–
–
–
4
P4INT
0
H0
R
–
–
–
–
✓
3
P3INT
0
H0
R
✓
✓
✓
✓
2
P2INT
0
H0
R
✓
✓
✓
✓
1
P1INT
0
H0
R
✓
✓
✓
✓
0
P0INT
0
H0
R
✓
✓
✓
✓