10 I/O PORTS (P)
10-10
EPSON
S1C17704 TECHNICAL MANUAL
10.8 Details of Control Registers
Table 10.8.1 List of I/O Port Registers
Address
Register name
Function
0x5200
P0_IN
P0 Port Input Data Register
P0 port input data
0x5201
P0_OUT
P0 Port Output Data Register
P0 port output data
0x5202
P0_IO
P0 Port I/O Direction Control Register
Selects the P0 port I/O direction.
0x5203
P0_PU
P0 Port Pull-up Control Register
Controls the P0 port pull-up resistor.
0x5204
P0_SM
P0 Port Schmitt Trigger Control Register
Controls the P0 port Schmitt trigger input.
0x5205
P0_IMSK
P0 Port Interrupt Mask Register
Enables/disables the P0 port interrupt.
0x5206
P0_EDGE
P0 Port Interrupt Edge Select Register
Selects the signal edge for generating P0 port interrupts.
0x5207
P0_IFLG
P0 Port Interrupt Flag Register
Indicates/resets the P0 port interrupt occurrence status.
0x5208
P0_CHAT
P0 Port Chattering Filter Control Register
Controls the P0 port chattering filter.
0x5209
P0_KRST
P0 Port Key-Entry Reset Configuration Register Configures the P0 port key-entry reset function.
0x5210
P1_IN
P1 Port Input Data Register
P1 port input data
0x5211
P1_OUT
P1 Port Output Data Register
P1 port output data
0x5212
P1_IO
P1 Port I/O Direction Control Register
Selects the P1 port I/O direction.
0x5213
P1_PU
P1 Port Pull-up Control Register
Controls the P1 port pull-up resistor.
0x5214
P1_SM
P1 Port Schmitt Trigger Control Register
Controls the P1 port Schmitt trigger input.
0x5215
P1_IMSK
P1 Port Interrupt Mask Register
Enables/disables the P1 port interrupt.
0x5216
P1_EDGE
P1 Port Interrupt Edge Select Register
Selects the signal edge for generating P1 port interrupts.
0x5217
P1_IFLG
P1 Port Interrupt Flag Register
Indicates/resets the P1 port interrupt occurrence status.
0x5220
P2_IN
P2 Port Input Data Register
P2 port input data
0x5221
P2_OUT
P2 Port Output Data Register
P2 port output data
0x5222
P2_IO
P2 Port I/O Direction Control Register
Selects the P2 port I/O direction.
0x5223
P2_PU
P2 Port Pull-up Control Register
Controls the P2 port pull-up resistor.
0x5224
P2_SM
P2 Port Schmitt Trigger Control Register
Controls the P2 port Schmitt trigger input.
0x5230
P3_IN
P3 Port Input Data Register
P3 port input data
0x5231
P3_OUT
P3 Port Output Data Register
P3 port output data
0x5232
P3_IO
P3 Port I/O Direction Control Register
Selects the P3 port I/O direction.
0x5233
P3_PU
P3 Port Pull-up Control Register
Controls the P3 port pull-up resistor.
0x5234
P3_SM
P3 Port Schmitt Trigger Control Register
Controls the P3 port Schmitt trigger input.
0x52a0
P0_PMUX
P0 Port Function Select Register
Selects the P0 port function.
0x52a1
P1_PMUX
P1 Port Function Select Register
Selects the P1 port function.
0x52a2
P2_PMUX
P2 Port Function Select Register
Selects the P2 port function.
0x52a3
P3_PMUX
P3 Port Function Select Register
Selects the P3 port function.
The following describes each I/O port control register. These are all 8-bit registers.
Note
: When setting the registers, be sure to write a 0, and not a 1, for all “reserved bits.”
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 ...