10 INPUT/OUTPUT PORT (P)
S1C17001 TECHNICAL MANUAL
EPSON
95
0x5202/0x5212/0x5222/0x5232: P
x
Port I/O Direction Control Registers (P
x
_IO)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
P0 Port
I/O Direction
Control Register
(P0_IO)
0x5202
(8 bits)
D7–0
P0IO[7:0]
P0[7:0] port I/O direction select
1 Output
0 Input
0
R/W
P1 Port
I/O Direction
Control Register
(P1_IO)
0x5212
(8 bits)
D7–0
P1IO[7:0]
P1[7:0] port I/O direction select
1 Output
0 Input
0
R/W
P2 Port
I/O Direction
Control Register
(P2_IO)
0x5222
(8 bits)
D7–0
P2IO[7:0]
P2[7:0] port I/O direction select
1 Output
0 Input
0
R/W
P3 Port
I/O Direction
Control Register
(P3_IO)
0x5232
(8 bits)
D7–4
–
reserved
–
–
–
0 when being read.
D3–0
P3IO[3:0]
P3[3:0] port I/O direction select
1 Output
0 Input
0
R/W
Note: The “
x
” in the bit names indicates the port number (0 to 3).
D[7:0] P
x
IO[7:0]: P
x
[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)
P
x
IO[7:0] are the input/output direction selection bits corresponding directly to the P
x
[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.
Summary of Contents for S1C17001
Page 1: ...Technical Manual S1C17001 CMOS 16 BIT SINGLE CHIP MICROCONTROLLER ...
Page 33: ...4 POWER SUPPLY VOLTAGE 24 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 63: ...6 INITERRUPT CONTROLLER 54 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 87: ...8 CLOCK GENERATOR CLG 78 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 91: ...9 PRESCALER PSC 82 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 133: ...11 16 BIT TIMER T16 124 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 211: ...16 STOPWATCH TIMER SWT 202 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 219: ...17 WATCHDOG TIMER WDT 210 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 241: ...18 UART 232 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 277: ...20 I2 C 268 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 313: ...25 PACKAGE 304 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...