0X5202/0X5212/0X5222/0X5232: Px Port I/O Direction Control Registers (Px_Io) - Epson S1C17704 Technical Manual

Cmos 16-bit single chip microcomputer
Table of Contents

Advertisement

0x5202/0x5212/0x5222/0x5232: Px Port I/O Direction Control Registers (Px_IO)

Register name Address
Bit
P0 Port
0x5202
D7–0 P0IO[7:0]
I/O Direction
(8 bits)
Control Register
(P0_IO)
P1 Port
0x5212
D7–0 P1IO[7:0]
I/O Direction
(8 bits)
Control Register
(P1_IO)
P2 Port
0x5222
D7–0 P2IO[7:0]
I/O Direction
(8 bits)
Control Register
(P2_IO)
P3 Port
0x5232
D7–4 –
I/O Direction
(8 bits)
D3–0 P3IO[3:0]
Control Register
(P3_IO)
Note: The letter 'x' in bit names, etc., denotes a port number from 0 to 3.
D[7:0]
PxIO[7:0]: Px[7:0] Port I/O Direction Select Bits (P3IO[3:0] for the P3 ports)
Sets the I/O ports in input or output mode.
1 (R/W): Output mode
0 (R/W): Input mode (default)
The PxIO[7:0] bits are the input/output direction select bits corresponding to the Px[7:0] ports
respectively. When a bit is set to 1, the corresponding I/O port is directed for output; if it is set to 0, the
I/O port is directed for input. When the pin is used for a peripheral module, the input/output direction
depends on the peripheral function.
S1C17704 TECHNICAL MANUAL
Name
Function
P0[7:0] port I/O direction select
P1[7:0] port I/O direction select
P2[7:0] port I/O direction select
reserved
P3[3:0] port I/O direction select
EPSON
Setting
Init. R/W
1 Output
0 Input
1 Output
0 Input
1 Output
0 Input
1 Output
0 Input
10 I/O PORTS (P)
Remarks
0
R/W
0
R/W
0
R/W
0 when being read.
0
R/W
10-13

Advertisement

Table of Contents
loading

Table of Contents