Epson S1C17624 Technical Manual page 98

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

9 i/O PORTS (P)
Px Port Output Data Registers (Px_OuT)
Register name address
Bit
Px Port Output
0x5201
D7–0 PxOuT[7:0] Px[7:0] port output data
Data Register
0x5211
(Px_OuT)
0x5221
0x5231
0x5241
0x5251
(8 bits)
note: The PxOUTy bits for unavailable ports are reserved and always read as 0.
D[7:0]
PxOuT[7:0]: Px[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)
PxOUTy corresponds directly to the Pxy pins. The data written will be output unchanged from the port
pins when output is enabled (PxOENy = 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 (PxOENy = 0) (the pin status is unaffected).
Px Port Output enable Registers (Px_Oen)
Register name address
Bit
Px Port
0x5202
D7–0 PxOen[7:0] Px[7:0] port output enable
Output enable
0x5212
Register
0x5222
(Px_Oen)
0x5232
0x5242
0x5252
(8 bits)
notes: • The PxOENy 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]
PxOen[7:0]: Px[7:0] Port Output enable Bits
Enables or disables port outputs.
1 (R/W): Enabled
0 (R/W): Disabled (default)
PxOENy is the output enable bit that corresponds directly to Pxy port. Setting to 1 enables output and
the data set in PxOUTy is output from the port pin. Output is disabled when PxOENy 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 PxOEN register.
Px Port Pull-up Control Registers (Px_Pu)
Register name address
Bit
Px Port Pull-up
0x5203
D7–0 PxPu[7:0]
Control Register
0x5213
(Px_Pu)
0x5223
0x5233
0x5243
0x5253
(8 bits)
note: The PxPUy bits for unavailable ports are reserved and always read as 0.
9-8
name
Function
name
Function
name
Function
Px[7:0] port pull-up enable
Seiko epson Corporation
Setting
init. R/W
1 1 (H)
0 0 (L)
Setting
init. R/W
1 Enable
0 Disable
Setting
init. R/W
1 Enable
0 Disable
(0xff)
S1C17624/604/622/602/621 TeChniCal Manual
Remarks
0
R/W
Remarks
0
R/W
Remarks
1
R/W

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17604S1c17622S1c17602S1c17621

Table of Contents