7-9
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
P
x
Port Enable Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
PPORTP
x
IOEN
15
–
8
P
x
IEN[7:0]
0x00
H0
R/W
–
7
–
0
P
x
OEN[7:0]
0x00
H0
R/W
*1: This register is effective when the GPIO function is selected.
*2: The bit configuration differs depending on the port group.
Bits 15
–
8
P
x
IEN[7:0]
These bits enable/disable the GPIO port input.
1 (R/W): Enable (The port pin status is input.)
0 (R/W): Disable (Input data is fixed at 0.)
When both data output and data input are enabled, the pin output status controlled by
this IC can be read.
These bits do not affect the input control when the port is used as a peripheral I/O
function.
Bits 7
–
0
P
x
OEN[7:0]
These bits enable/disable the GPIO port output.
1 (R/W): Enable (Data is output from the port pin.)
0 (R/W): Disable (The port is placed into Hi-Z.)
These bits do not affect the output control when the port is used as a peripheral I/O
function.
P
x
Port Pull-up/down Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
PPORTP
x
RCTL
15
–
8
P
x
PDPU[7:0]
0x00
H0
R/W
–
7
–
0
P
x
REN[7:0]
0x00
H0
R/W
*1: This register is effective when the GPIO function is selected.
*2: The bit configuration differs depending on the port group.
Bits 15
–
8
P
x
PDPU[7:0]
These bits select either the pull-up resistor or the pull-down resistor when using a
resistor built into the port.
1 (R/W): Pull-up resistor
0 (R/W): Pull-down resistor
The selected pull-up/down resistor is enabled when the PPORTP
x
RCTL.P
x
REN
y
bit = 1.
Bits 7
–
0
P
x
REN[7:0]
These bits enable/disable the port pull-up/down control.
1 (R/W): Enable (The built-in pull-up/down resistor is used.)
0 (R/W): Disable (No pull-up/down control is performed.)
Enabling this function pulls up or down the port when output is disabled
(PPORTPxIOEN.PxOENy bit = 0). When output is enabled (PPORTPxIOEN.PxOENy bit = 1),
the PPORTPxRCTL.PxRENy bit setting is ineffective regardless of how the
PPORTPxIOEN.PxIENy bit is set and the port is not pulled up/down. These bits do not affect
the pull-up/down control when the port is used as a peripheral I/O
function.
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 ...