9 i/O PORTS (P)
9-8
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
P
x
Port Output Data Registers (P
x
_OuT)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
P
x
Port Output
Data Register
(P
x
_OuT)
0x5201
0x5211
0x5221
0x5231
0x5241
0x5251
(8 bits)
D7–0 P
x
OuT[7:0] P
x
[7:0] port output data
1 1 (H)
0 0 (L)
0
R/W
note: The P
x
OUT
y
bits for unavailable ports are reserved and always read as 0.
D[7:0]
P
x
OuT[7:0]: P
x
[7:0] Port Output Data Bits
Sets the data to be output from the port pin.
1 (R/W): High level
0 (R/W): Low level (default)
P
x
OUT
y
corresponds directly to the P
xy
pins. The data written will be output unchanged from the port
pins when output is enabled (P
x
OEN
y
= 1). The port pin will be High when the data bit is set to 1 and
Low when set to 0.
Port data can also be written when output is disabled (P
x
OEN
y
= 0) (the pin status is unaffected).
P
x
Port Output enable Registers (P
x
_Oen)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
P
x
Port
Output enable
Register
(P
x
_Oen)
0x5202
0x5212
0x5222
0x5232
0x5242
0x5252
(8 bits)
D7–0 P
x
Oen[7:0] P
x
[7:0] port output enable
1 Enable
0 Disable
0
R/W
notes: • The P
x
OEN
y
bits for unavailable ports are reserved and always read as 0.
• P43 can only be used as an output port. For how to configure P43, see the P43MUX/
P40_43PMUX register description.
D[7:0]
P
x
Oen[7:0]: P
x
[7:0] Port Output enable Bits
Enables or disables port outputs.
1 (R/W): Enabled
0 (R/W): Disabled (default)
P
x
OEN
y
is the output enable bit that corresponds directly to P
xy
port. Setting to 1 enables output and
the data set in P
x
OUT
y
is output from the port pin. Output is disabled when P
x
OEN
y
is set to 0, and the
port pin is set into high-impedance status. The peripheral module determines whether output is enabled
or disabled when the port is used for a peripheral module function.
Refer to Table 9.3.1 for more information on input/output status for ports, including settings other than
for the P
x
OEN register.
P
x
Port Pull-up Control Registers (P
x
_Pu)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
P
x
Port Pull-up
Control Register
(P
x
_Pu)
0x5203
0x5213
0x5223
0x5233
0x5243
0x5253
(8 bits)
D7–0 P
x
Pu[7:0]
P
x
[7:0] port pull-up enable
1 Enable
0 Disable
1
(0xff)
R/W
note: The P
x
PU
y
bits for unavailable ports are reserved and always read as 0.