
7 I/O PORTS (PPORT)
S1C31D50/D51 TECHNICAL MANUAL
Seiko Epson Corporation
7-9
(Rev. 2.00)
Bits 7–0
P
x
IE[7:0]
These bits enable port input interrupts.
1 (R/W): Enable interrupts
0 (R/W): Disable interrupts
Note: To prevent generating unnecessary interrupts, the corresponding interrupt flag should be cleared
before enabling interrupts.
P
x
Port Chattering Filter Enable Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
PPORTPxCHATEN 15–8 –
0x00
–
R
–
7–0 PxCHATEN[7:0]
0x00
H0
R/W
*
1: The bit configuration differs depending on the port group.
Bits 15–8 Reserved
Bits 7–0
P
x
CHATEN[7:0]
These bits enable/disable the chattering filter function.
1 (R/W): Enable (The chattering filter is used.)
0 (R/W): Disable (The chattering filter is bypassed.)
P
x
Port Mode Select Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
PPORTPxMODSEL 15–8 –
0x00
–
R
–
7–0 PxSEL[7:0]
0x00
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–8 Reserved
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
PPORTPxFNCSEL 15–14 Px7MUX[1:0]
0x0
H0
R/W –
13–12 Px6MUX[1:0]
0x0
H0
R/W
11–10 Px5MUX[1:0]
0x0
H0
R/W
9–8 Px4MUX[1:0]
0x0
H0
R/W
7–6 Px3MUX[1:0]
0x0
H0
R/W
5–4 Px2MUX[1:0]
0x0
H0
R/W
3–2 Px1MUX[1:0]
0x0
H0
R/W
1–0 Px0MUX[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.
Table 7.6.1 Selecting Peripheral I/O Function
PPORTPxFNCSEL.PxyMUX[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 PPORTP
x
MODSEL.P
x
SEL
y
bit = 1.