Epson S1C88650 User Manual

Page 56

Advertising
background image

48

EPSON

S1C88650 TECHNICAL MANUAL

5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Input Ports)

Table 5.5.5.1(b) Input port control bits

SR R/W

Address Bit

Name

Function

Comment

1

0

00FF20 D7

D6

D5

D4

D3

D2

D1

D0

PK01

PK00

PSIF1

PSIF0

PTM1

PTM0

Constantly "0" when

being read

0

0

0

R/W

R/W

R/W

K00–K07 interrupt priority register

Serial interface interrupt priority register

Clock timer interrupt priority register

PK01

PSIF1

1
1
0
0

Priority

level

PK00

PSIF0

1
0
1
0

Level 3
Level 2
Level 1
Level 0

PTM1

1
1
0
0

Priority level

PTM0

1
0
1
0

Level 3
Level 2
Level 1
Level 0

D7

D6

D5

D4

D3

D2

D1

D0

00FF24

EK07

EK06

EK05

EK04

EK03

EK02

EK01

EK00

K07 interrupt enable

K06 interrupt enable

K05 interrupt enable

K04 interrupt enable

K03 interrupt enable

K02 interrupt enable

K01 interrupt enable

K00 interrupt enable

0

Interrupt

enable

Interrupt

disable

R/W

D7

D6

D5

D4

D3

D2

D1

D0

00FF28

FK07

FK06

FK05

FK04

FK03

FK02

FK01

FK00

K07 interrupt factor flag

K06 interrupt factor flag

K05 interrupt factor flag

K04 interrupt factor flag

K03 interrupt factor flag

K02 interrupt factor flag

K01 interrupt factor flag

K00 interrupt factor flag

0

(R)

Interrupt

factor is

generated

(W)

Reset

(R)

No interrupt

factor is

generated

(W)

No operation

R/W

K00D–K07D: 00FF54H

Input data of input port terminal K0x can be read
out.

When "1" is read:

HIGH level

When "0" is read:

LOW level

Writing:

Invalid

The terminal voltage of each of the input port K00–
K07 can be directly read out as either a "1" for
HIGH (V

DD

) level or a "0" for LOW (V

SS

) level.

This bit is exclusively for readout and are not
usable for write operations.

PULK00–PULK07: 00FF56H

Controls the input pull-up resistor.

When "1" is written: Pull-up ON
When "0" is written: Pull-up OFF
Reading:

Valid

PULK0x is the pull-up control register
corresponding to the input port K0x that turns the
pull-up resistor built into the input port ON and
OFF.
When "Gate direct" is selected by mask option, the
corresponding pull-up control register is
disconnected from the input line, so it can be used
as a general-purpose register.
When "1" is written to PULK0x, the corresponding
input port K0x is pulled up to high. When "0" is
written, the input port is not pulled up.
At initial reset, this register is set to "1" (Pull-up
ON).

Advertising