10 Input/Output Port (P)
10-10
Seiko Epson Corporation
S1C17601 TECHNICAL MANUAL
10.8 Control Register Details
Table 10.8.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
0x5204
P0_SM
P0 Port Schmitt Trigger Control Register
P0 port schmitt trigger 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
0x5214
P1_SM
P1 Port Schmitt Trigger Control Register
P1 port schmitt trigger 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
0x5224
P2_SM
P2 Port Schmitt Trigger Control Register
P2 port schmitt trigger control (Only P24 - P20 can be controlled)
0x522a
P2_IEN
P2 Port Input Enable Register
P2 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
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.