38
EPSON
S1C63358 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Input Ports)
4.5.4 I/O memory of input ports
Table 4.5.4.1 shows the I/O addresses and the control bits for the input ports.
Table 4.5.4.1 Control bits of input ports
Address
Comment
D3
D2
Register
D1
D0
Name
Init
∗
1
1
0
FF20H
SIK03
SIK02
SIK01
SIK00
R/W
SIK03
SIK02
SIK01
SIK00
0
0
0
0
Enable
Enable
Enable
Enable
Disable
Disable
Disable
Disable
K00–K03 interrupt selection register
FF21H
K03
K02
K01
K00
R
K03
K02
K01
K00
–
∗
2
–
∗
2
–
∗
2
–
∗
2
High
High
High
High
Low
Low
Low
Low
K00–K03 input port data
FF22H
KCP03
KCP02
KCP01
KCP00
R/W
KCP03
KCP02
KCP01
KCP00
1
1
1
1
K00–K03 input comparison register
FF24H
SIK13
SIK12
SIK11
SIK10
R/W
SIK13
SIK12
SIK11
SIK10
0
0
0
0
Enable
Enable
Enable
Enable
Disable
Disable
Disable
Disable
K10–K13 interrupt selection register
FF25H
K13
K12
K11
K10
R
K13
K12
K11
K10
–
∗
2
–
∗
2
–
∗
2
–
∗
2
High
High
High
High
Low
Low
Low
Low
K10–K13 input port data
FF26H
KCP13
KCP12
KCP11
KCP10
R/W
KCP13
KCP12
KCP11
KCP10
1
1
1
1
K10–K13 input comparison register
FFE4H
0
0
0
EIK0
R
R/W
0
∗
3
0
∗
3
0
∗
3
EIK0
–
∗
2
–
∗
2
–
∗
2
0
Enable
Mask
Unused
Unused
Unused
Interrupt mask register (K00–K03)
FFF4H
0
0
0
IK0
R
R/W
0
∗
3
0
∗
3
0
∗
3
IK0
–
∗
2
–
∗
2
–
∗
2
0
(R)
Yes
(W)
Reset
(R)
No
(W)
Invalid
Unused
Unused
Unused
Interrupt factor flag (K00–K03)
FF28H
0
0
0
SIK20
R
R/W
0
∗
3
0
∗
3
0
∗
3
SIK20
–
∗
2
–
∗
2
–
∗
2
0
Enable
Disable
Unused
Unused
Unused
K20 interrupt selection register
Unused
Unused
Unused
K20 input port data
Unused
Unused
Unused
K20 input comparison register
FF29H
0
0
0
K20
R
0
∗
3
0
∗
3
0
∗
3
K20
–
∗
2
–
∗
2
–
∗
2
–
∗
2
High
Low
FF2AH
0
0
0
KCP20
R
R/W
0
∗
3
0
∗
3
0
∗
3
KCP20
–
∗
2
–
∗
2
–
∗
2
1
FFE5H
0
0
EIK2
EIK1
R
R/W
0
∗
3
0
∗
3
EIK2
EIK1
–
∗
2
–
∗
2
0
0
Enable
Enable
Mask
Mask
Unused
Unused
Interrupt mask register (K20)
Interrupt mask register (K10–K13)
FFF5H
0
0
IK2
IK1
R
R/W
0
∗
3
0
∗
3
IK2
IK1
–
∗
2
–
∗
2
0
0
(R)
Yes
(W)
Reset
(R)
No
(W)
Invalid
Unused
Unused
Interrupt factor flag (K20)
Interrupt factor flag (K10–K13)
FF2BH
0
0
0
SENON
R
R/W
0
∗
3
0
∗
3
0
∗
3
SENON
–
∗
2
–
∗
2
–
∗
2
1
On
Off
Unused
Unused
Unused
Key sense On/Off control
*1 Initial value at initial reset
*2 Not set in the circuit
*3 Constantly "0" when being read