6 I/O PORTS (PPORT)
S1C17M12/M13 TECHNICAL MANUAL
Seiko Epson Corporation
6-1
(Rev. 1.2)
6 I/O Ports (PPORT)
6.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 func-
tions) to be assigned to each port.
• Includes ports with high-/low-level high-current drive output that can directly drive seven-segment LEDs.
• 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 Pxy, 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.
Table 6.1.1 Port Configuration of S1C17M12/M13
Item
S1C17M12
S1C17M13
Port groups included
P0[7:0], P1[7:0], P2[4:0], P4[7:0], P5[4:0], Pd[4:0]
Ports with general-purpose I/O function (GPIO)
P0[7:0], P1[7:0], P2[4:0], P4[7:0], P5[4:0], Pd[4:0] (Pd2: output only)
Ports with interrupt function
P0[7:0], P1[7:0], P2[4:0], P4[7:0], P5[4:0]
Ports with low-level high-current drive output
P4[7:0]
Ports with high-level high-current drive output
P5[4:0]
Ports for debug function
Pd[2:0]
Key-entry reset function
Supported (P0[3:0])
Pxy
PPORT
Pxy
Pxy
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
PxOUTy
PxyMUX[1:0]
GPIO/
peripheral I/O
function
switching
circuit
PxOENy
PxIENy
PxPDPUy
PxRENy
PxINy
KRSTCFG[1:0]
CLKSRC[1:0]
CLKDIV[3:0]
PxSELy
Clock
generator
Interrupt
controller
System reset
controller
DBRUN
Pxy
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
PxCHATENy
PxEDGEy
PxIFy
PxIEy
PxINT
Key-entry
reset signal
Figure 6.1.1 PPORT Configuration