
10 Input/Output Port (P)
S1C17003 TECHNICAL MANUAL
EPSON
10-9
IOPort
10.7 Control Register Details
Table 10.7.1: Input/output port control register list
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_OEN
P0 Port Output Enable Register
P0 port output enable
0x5203
P0_PU
P0 Port Pull-up Control Register
P0 port pull-up control
0x5205
P0_IMSK
P0 Port Interrupt Mask Register
P0 port interrupt mask setting
0x5206
P0_EDGE
P0 Port Interrupt Edge Select Register
P0 port interrupt edge selection
0x5207
P0_IFLG
P0 Port Interrupt Flag Register
P0 port interrupt occurrence status display/reset
0x5208
P0_CHAT
P0 Port Chattering Filter Control Register
P0 port chattering filter control
0x5209
P0_KRST
P0 Port Key-Entry Reset Configuration Register P0 port key entry reset setting
0x520a
P0_IEN
P0 Port Input Enable Register
P0 port input enable
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_OEN
P1 Port Output Enable Register
P1 port output enable
0x5213
P1_PU
P1 Port Pull-up Control Register
P1 port pull-up control
0x5215
P1_IMSK
P1 Port Interrupt Mask Register
P1 port interrupt mask setting
0x5216
P1_EDGE
P1 Port Interrupt Edge Select Register
P1 port interrupt edge selection
0x5217
P1_IFLG
P1 Port Interrupt Flag Register
P1 port interrupt occurrence status display/reset
0x5218
P1_CHAT
P1 Port Chattering Filter Control Register
P1 port chattering filter control
0x521a
P1_IEN
P1 Port Input Enable Register
P1 port input enable
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_OEN
P2 Port Output Enable Register
P2 port output enable
0x5223
P2_PU
P2 Port Pull-up Control Register
P2 port pull-up control
0x522a
P2_IEN
P2 Port Input Enable Register
P2 port input enable
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_OEN
P3 Port Output Enable Register
P3 port output enable
0x5233
P3_PU
P3 Port Pull-up Control Register
P3 port pull-up control
0x523a
P3_IEN
P3 Port Input Enable Register
P3 port input enable
0x5240
P4_IN
P4 Port Input Data Register
P4 port input data
0x5241
P4_OUT
P4 Port Output Data Register
P4 port output data
0x5242
P4_OEN
P4 Port Output Enable Register
P4 port output enable
0x5243
P4_PU
P4 Port Pull-up Enable Register
P4 port pull-up control enable
0x524a
P4_IEN
P4 Port Input Enable Register
P4 port input enable
0x52a0
P0_PMUX
P0 Port Function Select Register
P0 port function selection
0x52a1
P0_PMUX
P0 Port Function Select Register
P0 port function selection
0x52a2
P1_PMUX
P1 Port Function Select Register
P1 port function selection
0x52a3
P1_PMUX
P1 Port Function Select Register
P1 port function selection
0x52a4
P2_PMUX
P2 Port Function Select Register
P2 port function selection
0x52a5
P2_PMUX
P2 Port Function Select Register
P2 port function selection
0x52a6
P3_PMUX
P3 Port Function Select Register
P3 port function selection
0x52a7
P3_PMUX
P3 Port Function Select Register
P3 port function selection
0x52a8
P4_PMUX
P4 Port Function Select Register
P4 port function selection
The input/output port registers are described in detail below. These are 8-bit registers.
Note: When data is written to the registers, the “Reserved” bits must always be written as 0 and not 1.