CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Input Ports)

4.4.4 I/O memory of input ports

Table 4.4.4.1 shows the I/O addresses and the control bits for the input ports.

 

 

 

 

 

 

 

Table 4.4.4.1

Control bits of input ports

Address

 

Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Comment

D3

D2

 

D1

D0

Name

Init 1

 

1

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SIK03

SIK02

 

SIK01

SIK00

SIK03

0

 

Enable

Disable

 

 

 

 

 

 

SIK02

0

 

Enable

Disable

 

 

 

FF20H

 

 

 

 

 

 

 

 

 

K00–K03 interrupt selection register

 

 

R/W

 

SIK01

0

 

Enable

Disable

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SIK00

0

 

Enable

Disable

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

K03

K02

 

K01

K00

K03

2

 

High

Low

 

 

 

 

 

 

K02

2

 

High

Low

 

 

 

FF21H

 

 

 

 

 

 

 

 

 

K00–K03 input port data

 

 

 

R

 

K01

2

 

High

Low

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

K00

2

 

High

Low

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

KCP03

KCP02

 

KCP01

KCP00

KCP03

1

 

 

 

 

 

 

 

 

 

 

 

 

FF22H

 

 

KCP02

1

 

 

 

 

 

 

 

 

 

 

 

K00–K03 input comparison register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

KCP01

1

 

 

 

 

 

 

 

 

 

 

 

 

 

R/W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

KCP00

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SIK13

SIK12

 

SIK11

SIK10

SIK13

0

 

Enable

Disable

 

 

 

 

 

 

SIK12

0

 

Enable

Disable

 

 

 

FF24H

 

 

 

 

 

 

 

 

 

K10–K13 interrupt selection register

 

 

R/W

 

SIK11

0

 

Enable

Disable

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SIK10

0

 

Enable

Disable

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

K13

K12

 

K11

K10

K13

2

 

High

Low

 

 

 

 

 

 

K12

2

 

High

Low

 

 

 

FF25H

 

 

 

 

 

 

 

 

 

K10–K13 input port data

 

 

 

R

 

K11

2

 

High

Low

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

K10

2

 

High

Low

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

KCP13

KCP12

 

KCP11

KCP10

KCP13

1

 

 

 

 

 

 

 

 

 

 

 

 

FF26H

 

 

KCP12

1

 

 

 

 

 

 

 

 

 

 

 

K10–K13 input comparison register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

KCP11

1

 

 

 

 

 

 

 

 

 

 

 

 

 

R/W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

KCP10

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

 

0

EIK0

0 3

2

 

 

 

 

 

 

 

 

 

 

Unused

 

 

 

0 3

2

 

 

 

 

 

 

 

 

 

 

Unused

FFE4H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R

 

 

R/W

0 3

2

 

 

 

 

 

 

 

 

 

 

Unused

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EIK0

0

 

Enable

Mask

 

Interrupt mask register (K00–K03)

 

 

 

 

 

 

 

 

 

 

 

0

0

 

0

EIK1

0 3

2

 

 

 

 

 

 

 

 

 

 

Unused

 

 

 

0 3

2

 

 

 

 

 

 

 

 

 

 

Unused

FFE5H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R

 

 

R/W

0 3

2

 

 

 

 

 

 

 

 

 

 

Unused

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EIK1

0

 

Enable

Mask

 

Interrupt mask register (K10–K13)

 

 

 

 

 

 

 

 

 

 

 

0

0

 

0

IK0

0 3

2

 

 

(R)

 

(R)

 

Unused

 

 

 

0 3

2

 

Yes

 

No

 

Unused

FFF4H

 

 

 

 

 

 

 

 

 

R

 

 

R/W

0 3

2

 

(W)

(W)

 

Unused

 

 

 

 

 

 

 

 

 

 

 

 

IK0

0

 

Reset

Invalid

 

Interrupt factor flag (K00–K03)

 

 

 

 

 

 

 

 

 

 

 

0

0

 

0

IK1

0 3

2

 

 

(R)

 

(R)

 

Unused

 

 

 

0 3

2

 

Yes

 

No

 

Unused

FFF5H

 

 

 

 

 

 

 

 

 

R

 

 

R/W

0 3

2

 

(W)

(W)

 

Unused

 

 

 

 

 

 

 

 

 

 

 

 

IK1

0

 

Reset

Invalid

 

Interrupt factor flag (K10–K13)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*1 Initial value at initial reset

*2 Not set in the circuit

*3 Constantly "0" when being read

K00–K03: K0 port input port data (FF21H)K10–K13: K1 port input port data (FF25H)

Input data of the input port terminals can be read with these registers.

When "1" is read: High level

When "0" is read: Low level

Writing: Invalid

The reading is "1" when the terminal voltage of the eight bits of the input ports (K00–K03, K10–K13) goes high (VDD), and "0" when the voltage goes low (VSS).

These bits are dedicated for reading, so writing cannot be done.

30

EPSON

S1C63558 TECHNICAL MANUAL