7-1
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
7.
I/O Ports (PPORT)
7.1.
Overview
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 functions) 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.)
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 7.1.1 shows the configuration of PPORT.
Table 7.1.1 Port Configuration of S1C31D50
Item
S1C31D50
Port groups included
Ports with general-purpose I/O function (GPIO)
P0[7:0], P1[7:0], P2[7:0], P3[7:0], P4[7:0], P5[7:0], P6[7:0], P7[7:0]
P8[7:0],P9[5:0],PA[6:0],PD[5:0]
Ports with interrupt function
P0[7:0], P1[7:0], P2[7:0], P3[7:0], P4[7:0], P5[7:0], P6[7:0].P7[7:0]
P8[7:0],P9[5:0],PA[6:0]
Ports for debug function
PD[1:0]
Figure 7.1.1 PPORT Configuration
KRSTCFG[1:0]
CLKSRC[1:0]
CLKDIV[3:0]
Clock
generator
CPU core
System reset
controller
DBRUN
I/O
cell
Chattering
filter
Interrupt
control circuit
Key-entry
reset control
circuit
Pxy
PPORT
GPIO/
peripheral I/O
function
switching
circuit
In
tern
al d
at
a
bu
s
Pxy
I/O cell
control signal
Output signal
General-purpose
I/O control
GPIO function
Input signal
Key-entry
reset signal
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
Exist only in the ports that supports the interrupt function.
P
x
OUT
y
P
xy
MUX[1:0]
P
x
OEN
y
P
x
IEN
y
P
x
PDPU
y
P
x
REN
y
P
x
IN
y
P
x
SELy
PxCHATENy
PxEDGEy
P
x
EDGE
y
P
x
IF
y
P
x
IE
y
P
x
INT
Summary of Contents for S1C31D50
Page 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Page 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Page 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Page 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...