Px Port Enable Register; Px Port Pull-Up/Down Control Register - Epson S1C31W65 Technical Manual

Cmos 32-bit single chip microcontroller
Table of Contents

Advertisement

When output is enabled (PPORTPxIOEN.PxOENy bit = 1), the port pin outputs the data set here. Al-
though data can be written when output is disabled (PPORTPxIOEN.PxOENy bit = 0), it does not affect
the pin status. These bits do not affect the outputs when the port is used as a peripheral I/O function.
Bits 7–0
PxIN[7:0]
The GPIO port pin status can be read out from these bits.
1 (R):
Port pin = High level
0 (R):
Port pin = Low level
The port pin status can be read out when input is enabled (PPORTPxIOEN.PxIENy bit = 1). When in-
put is disabled (PPORTPxIOEN.PxIENy bit = 0), these bits are always read as 0.
When the port is used for a peripheral I/O function, the input value cannot be read out from these bits.

Px Port Enable Register

Register name
Bit
PPORTPxIOEN
15–8 PxIEN[7:0]
7–0 PxOEN[7:0]
*1: This register is effective when the GPIO function is selected.
*2: The bit configuration differs depending on the port group.
Bits 15–8 PxIEN[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
PxOEN[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.

Px Port Pull-up/down Control Register

Register name
Bit
PPORTPxRCTL
15–8 PxPDPU[7:0]
7–0 PxREN[7:0]
*1: This register is effective when the GPIO function is selected.
*2: The bit configuration differs depending on the port group.
Bits 15–8 PxPDPU[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 PPORTPxRCTL.PxRENy bit = 1.
Bits 7–0
PxREN[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.
S1C31W65 TECHNICAL MANUAL
(Rev. 1.1)
Bit name
Initial
0x00
0x00
Bit name
Initial
0x00
0x00
Seiko Epson Corporation
Reset
R/W
H0
R/W
H0
R/W
Reset
R/W
H0
R/W
H0
R/W
7 I/O PORTS (PPORT)
Remarks
Remarks
7-7

Advertisement

Table of Contents
loading

Table of Contents