10 I/O PORTS (P)
S1C17704 TECHNICAL MANUAL
EPSON
10-11
0x5200/0x5210/0x5220/0x5230: P
x
Port Input Data Registers (P
x
_IN)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
P0 Port Input
Data Register
(P0_IN)
0x5200
(8 bits)
D7–0
P0IN[7:0]
P0[7:0] port input data
1 1 (H)
0 0 (L)
×
R
P1 Port Input
Data Register
(P1_IN)
0x5210
(8 bits)
D7–0
P1IN[7:0]
P1[7:0] port input data
1 1 (H)
0 0 (L)
×
R
P2 Port Input
Data Register
(P2_IN)
0x5220
(8 bits)
D7–0
P2IN[7:0]
P2[7:0] port input data
1 1 (H)
0 0 (L)
×
R
P3 Port Input
Data Register
(P3_IN)
0x5230
(8 bits)
D7–4
–
reserved
–
–
–
0 when being read.
D3–0
P3IN[3:0]
P3[3:0] port input data
1 1 (H)
0 0 (L)
×
R
Note
: The letter ‘
x
’ in bit names, etc., denotes a port number from 0 to 3.
D[7:0] P
x
IN[7:0]: P
x
[7:0] Port Input Data Bits
(P3IN[3:0] for the P3 ports)
These bits are used to read data from I/O-port pins. (Default: external pin status)
1 (R):
High level
0 (R):
Low level
The PxIN[7:0] bits correspond to the Px[7:0] ports respectively and the voltage level on the port pin
is read out in the input mode. If the pin voltage is high, 1 is read out as input data; if the pin voltage is
low, 0 is read out as input data.
In the output mode, an indefinite value is read out.
P
x
IN[7:0] are read only bits and write operation is ineffective.
Содержание S1C17704
Страница 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Страница 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...