6 I/O PORTS (PPORT)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
6-15
(Rev. 1.0)
Pd Port Group
6.7.6
The Pd port group consists of three ports Pd0–Pd2 and they are configured as a debugging function port at ini-
tialization. These three ports support the GPIO function. The GPIO function of the Pd2 port supports output only,
therefore, the pull-up/down function cannot be used.
7.6.1 Control Registers for Pd Port Group
Table 6.
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
PDDAT
(Pd Port Data
Register)
15–11 –
0x00
–
R
–
10–8 PDOUT[2:0]
0x0
H0
R/W
7–2 –
0x00
–
R
1–0 PDIN[1:0]
x
H0
R
PDIOEN
(Pd Port Enable
Register)
15–11 –
0x00
–
R
–
10 reserved
0
H0
R/W
9–8 PDIEN[1:0]
0x0
H0
R/W
7–3 –
0x00
–
R
2
reserved
0
H0
R/W
1–0 PDOEN[1:0]
0x0
H0
R/W
PDRCTL
(Pd Port Pull-up/
down Control Regis-
ter)
15–11 –
0x00
–
R
–
10 reserved
0
H0
R/W
9–8 PDPDPU[1:0]
0x0
H0
R/W
7–3 –
0x00
–
R
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–3 –
0x00
–
R
2–0 PDSEL[2:0]
0x7
H0
R/W
PDFNCSEL
(Pd Port Function
Select Register)
15–8 –
0x00
–
R
–
7–6 –
0x0
–
R
5–4 PD2MUX[1:0]
0x0
H0
R/W Valid settings: 0x0
3–2 PD1MUX[1:0]
0x0
H0
R/W
1–0 PD0MUX[1:0]
0x0
H0
R/W
7.6.2 Pd Port Group Function Assignment
Table 6.
Port name
PdSEL
y
= 0
PdSEL
y
= 1
GPIO
Pd
y
MUX = 0x0
(Function 0)
Pd
y
MUX = 0x1
(Function 1)
Pd
y
MUX = 0x2
(Function 2)
Pd
y
MUX = 0x3
(Function 3)
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
Pd0
Pd0
DBG
DST2
–
–
–
–
–
–
Pd1
Pd1
DBG
DSIO
–
–
–
–
–
–
Pd2
Pd2
DBG
DCLK
–
–
–
–
–
–
Common Registers between Port Groups
6.7.7
7.7.1 Control Registers for Common Use with Port Groups
Table 6.
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
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–2 –
0x00
–
R
1
P1INT
0
H0
R
0
P0INT
0
H0
R