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

Cmos 16-bit single chip microcontroller
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 "x" in the bit names indicates the port number (0 to 3).
D[7:0]
PxIO[7:0]: Px[7:0] Port I/O Direction Select Bits (P3 port is P3IN[3:0])
Set the input/output mode for the input/output port.
1(R/W): Output mode
0(R/W): Input mode (default)
PxIO[7:0] are the input/output direction selection bits corresponding directly to the Px[7:0] ports. Set-
ting to 1 selects output mode, while setting to 0 selects input mode. The peripheral module function
determines the input/output direction for when a pin is used for peripheral modules.
S1C17001 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
10 INPUT/OUTPUT PORT (P)
Setting
Init. R/W
1 Output
0 Input
1 Output
0 Input
1 Output
0 Input
1 Output
0 Input
Remarks
0
R/W
0
R/W
0
R/W
0 when being read.
0
R/W
95

Advertisement

Table of Contents
loading

Table of Contents