24 I/O PORTS (GPIO)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
24-1
I/O Ports (GPIO)
24
GPIO Module Overview
24.1
The S1C33L26 includes general-purpose I/O ports that allow software to switch input/output direction. These share
internal peripheral module input/output pins, but pins not used for peripheral modules can be used as general-pur-
pose I/O ports.
The following shows the features of the GPIO module:
• Maximum 71 I/O ports (P0[7:0], P1[7:0], P2[1:0], P3[6:0], P4[2:0], P5[6:0], P60, P8[3:0], P9[7:0], PA[6:0],
PB[7:0], PC[7:0]) and six input ports (P7[5:0]) are available in the TQFP24-144pin or PFBGA12U-180 package
model.
Maximum 56 I/O ports (P0[7:0], P1[7:0], P2[1:0], P3[6:0], P4[2:0], P5[6:0], P60, P8[3:0], P9[7:0], PC[7:0]) and
six input ports (P7[5:0]) are available in the TQFP15-128pin package model.
* The GPIO ports are shared with other peripheral function pins (USI, PWM etc.). Therefore, the number of
GPIO ports depends on the peripheral functions used.
• Can generate input interrupts from the 16 of 64 ports selected via software.
• Interrupt input signal conditions (level or edge trigger, and polarity) can be specified.
• The input interrupt circuit includes chattering filters.
• All port provide a port function select bit to configure the pin function (for GPIO or peripheral functions).
Figure 24.1.1 shows the I/O port configuration.
Peripheral module output
Peripheral I/O control
IOC
xy
P
xy
D
CFP
xy
[1:0]
I/O direction control
Output data
Function selection
HV
DD
V
SS
Internal data bus
P
xy
Peripheral module input
Input data
P
xy
D
PUP
xy
Pull-up enable
1.1 I/O Port Configuration
Figure 24.
Notes: • The PCLK2 clock must be supplied from the CMU to access the I/O port. The prescaler (PSC
Ch.1) output clock is also needed to operate the chattering filters. Turn on the prescaler when
using this function.
• The “
xy
” in the register and bit names refers to the port number (P
xy
,
x
= 0 to C,
y
= 0 to 7).
Example: P
xy
D/GPIO_P
x
_DAT register
P00: P00D/GPIO_P0_DAT register
P17: P17D/GPIO_P1_DAT register