6 I/O PORTS (PPORT)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
6-1
(Rev. 1.0)
I/O Ports (PPORT)
6
Overview
6.1
PPORT controls the I/O ports. The main features are outlined below.
• Allows port-by-port function configurations.
- Each port can be configured with or without a pull-up or pull-down resistor.
- Each port can be configured with or without a chattering filter.
- Allows selection of the function (general-purpose I/O port (GPIO) function, up to four peripheral I/O func-
tions) to be assigned to each port.
• Ports, except for those shared with debug pins, are initially placed into Hi-Z state.
(No current passes through the pin during this Hi-Z state.)
• Over voltage tolerant fail-safe design allowing interface with the signal without passing unnecessary current even
if a voltage exceeding V
DD
is applied.
Note: ‘
x
’, which is used in the port names P
xy
, register names, and bit names, refers to a port group (
x
= 0, 1, 2, ··· , d) and ‘
y
’ refers to a port number (
y
= 0, 1, 2, ··· , 7).
Figure 6.1.1 shows the configuration of PPORT.
Port configuration in this IC
• Port groups included:
P0[7:0], P1[7:0], P2[7:0], P3[7:0], P4[1:0], Pd[2:0]
• Ports with general-purpose I/O function (GPIO): P0[7:0], P1[7:0], P2[7:0], P3[7:0], P4[1:0], Pd[2:0]
(Pd2: output only)
• Ports with interrupt function:
P0[7:0], P1[7:0]
• Ports for debug function:
Pd[2:0]
• Key-entry reset function:
Supported (P0[3:0])
P
xy
PPORT
P
xy
P
xy
Peripheral I/O function 0 I/O control
Peripheral I/O function 1 I/O control
Peripheral I/O function 2 I/O control
Peripheral I/O function 3 I/O control
General-purpose
I/O control
GPIO function
I/O cell
control signal
Output signal
Input signal
P
x
OUT
y
P
xy
MUX[1:0]
GPIO/
peripheral I/O
function
switching
circuit
P
x
OEN
y
P
x
IEN
y
P
x
PDPU
y
P
x
REN
y
P
x
IN
y
KRSTCFG[1:0]
CLKSRC[1:0]
CLKDIV[3:0]
P
x
SELy
Clock
generator
Interrupt
controller
System reset
controller
DBRUN
P
xy
CLK_PPORT
I/O cell
Inter
nal data
bu
s
Exist only in the ports that supports the interrupt function.
Chattering
filter
Interrupt
control circuit
Key-entry
reset control
circuit
P
x
CHATEN
y
P
x
EDGE
y
P
x
IF
y
P
x
IE
y
P
x
INT
Key-entry
reset signal
1.1 PPORT Configuration
Figure 6.