8 I/O PORTS (P)
8-6
Seiko Epson Corporation
S1C17554/564 TECHNICAL MANUAL
Address
Register name
Function
0x520a
P0_IEN
P0 Port Input Enable Register
Enables P0 port inputs.
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
Enables P1 port outputs.
0x5213
P1_PU
P1 Port Pull-up Control Register
Controls the P1 port pull-up resistor.
0x5215
P1_IMSK
P1 Port Interrupt Mask Register
Enables P1 port interrupts.
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.
0x5218
P1_CHAT
P1 Port Chattering Filter Control Register
Controls the P1 port chattering filter.
0x521a
P1_IEN
P1 Port Input Enable Register
Enables P1 port inputs.
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 Output Enable Register
Enables P2 port outputs.
0x5223
P2_PU
P2 Port Pull-up Control Register
Controls the P2 port pull-up resistor.
0x5225
P2_IMSK
P2 Port Interrupt Mask Register
Enables P2 port interrupts.
0x5226
P2_EDGE
P2 Port Interrupt Edge Select Register
Selects the signal edge for generating P2 port interrupts.
0x5227
P2_IFLG
P2 Port Interrupt Flag Register
Indicates/resets the P2 port interrupt occurrence status.
0x5228
P2_CHAT
P2 Port Chattering Filter Control Register
Controls the P2 port chattering filter.
0x522a
P2_IEN
P2 Port Input Enable Register
Enables P2 port inputs.
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
Enables P3 port outputs.
0x5233
P3_PU
P3 Port Pull-up Control Register
Controls the P3 port pull-up resistor.
0x5235
P3_IMSK
P3 Port Interrupt Mask Register
Enables P3 port interrupts.
0x5236
P3_EDGE
P3 Port Interrupt Edge Select Register
Selects the signal edge for generating P3 port interrupts.
0x5237
P3_IFLG
P3 Port Interrupt Flag Register
Indicates/resets the P3 port interrupt occurrence status.
0x5238
P3_CHAT
P3 Port Chattering Filter Control Register
Controls the P3 port chattering filter.
0x523a
P3_IEN
P3 Port Input Enable Register
Enables P3 port inputs.
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
Enables P4 port outputs.
0x5243
P4_PU
P4 Port Pull-up Control Register
Controls the P4 port pull-up resistor.
0x5245
P4_IMSK
P4 Port Interrupt Mask Register
Enables P4 port interrupts.
0x5246
P4_EDGE
P4 Port Interrupt Edge Select Register
Selects the signal edge for generating P4 port interrupts.
0x5247
P4_IFLG
P4 Port Interrupt Flag Register
Indicates/resets the P4 port interrupt occurrence status.
0x5248
P4_CHAT
P4 Port Chattering Filter Control Register
Controls the P4 port chattering filter.
0x524a
P4_IEN
P4 Port Input Enable Register
Enables P4 port inputs.
0x5250
P5_IN
P5 Port Input Data Register
P5 port input data
0x5251
P5_OUT
P5 Port Output Data Register
P5 port output data
0x5252
P5_OEN
P5 Port Output Enable Register
Enables P5 port outputs.
0x5253
P5_PU
P5 Port Pull-up Control Register
Controls the P5 port pull-up resistor.
0x5255
P5_IMSK
P5 Port Interrupt Mask Register
Enables P5 port interrupts.
0x5256
P5_EDGE
P5 Port Interrupt Edge Select Register
Selects the signal edge for generating P5 port interrupts.
0x5257
P5_IFLG
P5 Port Interrupt Flag Register
Indicates/resets the P5 port interrupt occurrence status.
0x5258
P5_CHAT
P5 Port Chattering Filter Control Register
Controls the P5 port chattering filter.
0x525a
P5_IEN
P5 Port Input Enable Register
Enables P5 port inputs.
0x52a0
P00_03PMUX P0[3:0] Port Function Select Register
Selects the P0[3:0] port functions.
0x52a2
P10_13PMUX P1[3:0] Port Function Select Register
Selects the P1[3:0] port functions.
0x52a3
P14_17PMUX P1[7:4] Port Function Select Register
Selects the P1[7:4] port functions.
0x52a4
P20_23PMUX P2[3:0] Port Function Select Register
Selects the P2[3:0] port functions.
0x52a5
P24_27PMUX P2[7:4] Port Function Select Register
Selects the P2[7:4] port functions.
0x52a6
P30_33PMUX P3[3:0] Port Function Select Register
Selects the P3[3:0] port functions.
0x52a7
P34_37PMUX P3[7:4] Port Function Select Register
Selects the P3[7:4] port functions.
0x52a8
P40_43PMUX P4[3:0] Port Function Select Register
Selects the P4[3:0] port functions.
0x52a9
P44_45PMUX P4[5:4] Port Function Select Register
Selects the P4[5:4] port functions.
0x52aa
P50_53PMUX P5[3:0] Port Function Select Register
Selects the P5[3:0] port functions.
0x52ab
P54_55PMUX P5[5:4] Port Function Select Register
Selects the P5[5:4] port functions.
The I/O 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.