6 I/O PORTS (PPORT)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
6-9
(Rev. 1.0)
Bits 7–0
P
x
Sel[7:0]
These bits select whether each port is used for the GPIO function or a peripheral I/O function.
1 (R/W): Use peripheral I/O function
0 (R/W): Use GPIO function
P
x
Port Function Select Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
P
x
FNCSEL
15–14 P
x
7MUX[1:0]
0x0
H0
R/W –
13–12 P
x
6MUX[1:0]
0x0
H0
R/W
11–10 P
x
5MUX[1:0]
0x0
H0
R/W
9–8 P
x
4MUX[1:0]
0x0
H0
R/W
7–6 P
x
3MUX[1:0]
0x0
H0
R/W
5–4 P
x
2MUX[1:0]
0x0
H0
R/W
3–2 P
x
1MUX[1:0]
0x0
H0
R/W
1–0 P
x
0MUX[1:0]
0x0
H0
R/W
*
1: The bit configuration differs depending on the port group.
*
2: The initial value may be changed by the port.
Bits 15–14 P
x
7MuX[1:0]
:
:
Bits 1–0
P
x
0MuX[1:0]
These bits select the peripheral I/O function to be assigned to each port pin.
6.1 Selecting Peripheral I/O Function
Table 6.
P
x
FNCSEL.P
xy
MUX[1:0] bits
Peripheral I/O function
0x3
Function 3
0x2
Function 2
0x1
Function 1
0x0
Function 0
This selection takes effect when the P
x
MODSEL.P
x
SEL
y
bit = 1.
P Port Clock Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
PCLK
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
Bits 15–9 Reserved
Bit 8
DBRun
This bit sets whether the PPORT operating clock is supplied in DEBUG mode or not.
1 (R/WP): Clock supplied in DEBUG mode
0 (R/WP): No clock supplied in DEBUG mode
Bits 7–4
ClKDiV[3:0]
These bits select the division ratio of the PPORT operating clock (chattering filter clock).
Bits 3–2
KRSTCFG[1:0]
These bits configure the key-entry reset function.
6.2 Key-Entry Reset Function Settings
Table 6.
PCLK.KRSTCFG[1:0] bits
key-entry reset
0x3
Reset when P0[3:0] inputs = all low
0x2
Reset when P0[2:0] inputs = all low
0x1
Reset when P0[1:0] inputs = all low
0x0
Disable