10 I/O PORTS (P)
S1C17704 TECHNICAL MANUAL
EPSON
10-13
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 letter ‘
x
’ in bit names, etc., denotes a port number from 0 to 3.
D[7:0] P
x
IO[7:0]: P
x
[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
P
x
IO[7:0] bits are the input/output direction select bits corresponding to the P
x
[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.
Summary of Contents for S1C17704
Page 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Page 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...