
6 I/O PORTS (PPORT)
S1C17M12/M13 TECHNICAL MANUAL
Seiko Epson Corporation
6-17
(Rev. 1.2)
6.7.6 Pd Port Group
The Pd port group consists of five ports Pd0–Pd4 and three ports Pd0–Pd2 are configured as a debugging function
port at initialization. These five ports support the GPIO function. The GPIO function of the Pd2 port supports out-
put only, therefore, the pull-up/down function cannot be used.
Table 6.7.6.1 Control Registers for Pd Port Group
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
PDDAT
(Pd Port Data
Register)
15–13 –
0x0
–
R
–
12–8 PDOUT[4:0]
0x00
H0
R/W
7–5 –
0x0
–
R
4–3 PDIN[4:3]
x
H0
R
2
–
0
–
R
1–0 PDIN[1:0]
x
H0
R
PDIOEN
(Pd Port Enable
Register)
15–13 –
0x0
–
R
–
12–11 PDIEN[4:3]
0x0
H0
R/W
10 (reserved)
0
H0
R/W
9–8 PDIEN[1:0]
0x0
H0
R/W
7–5 –
0x0
–
R
4–0 PDOEN[4:0]
0x00
H0
R/W
PDRCTL
(Pd Port Pull-up/down
Control Register)
15–13 –
0x0
–
R
–
12–11 PDPDPU[4:3]
0x0
H0
R/W
10 (reserved)
0
H0
R/W
9–8 PDPDPU[1:0]
0x0
H0
R/W
7–5 –
0x0
–
R
4–3 PDREN[4:3]
0x0
H0
R/W
2
(reserved)
0
H0
R/W
1–0 PDREN[1:0]
0x0
H0
R/W
PDINTF
PDINTCTL
PDCHATEN
15–0 –
0x0000
–
R
–
PDMODSEL
(Pd Port Mode Select
Register)
15–8 –
0x00
–
R
–
7–5 –
0x0
–
R
4–0 PDSEL[4:0]
0x07
H0
R/W
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
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
Pd0
Pd0
DBG
DST2
–
–
–
–
–
–
Pd1
Pd1
DBG
DSIO
–
–
–
–
–
–
Pd2
Pd2
DBG
DCLK
–
–
–
–
–
–
Pd3
Pd3
–
–
–
–
CLG
OSC3
–
–
Pd4
Pd4
–
–
–
–
CLG
OSC4
–
–