beautypg.com

5 control of input ports – Epson S1C88650 User Manual

Page 55

background image

S1C88650 TECHNICAL MANUAL

EPSON

47

5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Input Ports)

5.5.5 Control of input ports

Table 5.5.5.1 shows the input port control bits.

Table 5.5.5.1(a) Input port control bits

SR R/W

Address Bit

Name

Function

Comment

1

0

00FF52 D7

D6

D5

D4

D3

D2

D1

D0

KCP07

KCP06

KCP05

KCP04

KCP03

KCP02

KCP01

KCP00

1

R/W

K07 input comparison register

K06 input comparison register

K05 input comparison register

K04 input comparison register

K03 input comparison register

K02 input comparison register

K01 input comparison register

K00 input comparison register

Interrupt

generated

at falling

edge

Interrupt

generated

at rising

edge

00FF54 D7

D6

D5

D4

D3

D2

D1

D0

K07D

K06D

K05D

K04D

K03D

K02D

K01D

K00D

R

K07 input port data

K06 input port data

K05 input port data

K04 input port data

K03 input port data

K02 input port data

K01 input port data

K00 input port data

High level

input

Low level

input

00FF56 D7

D6

D5

D4

D3

D2

D1

D0

PULK07

PULK06

PULK05

PULK04

PULK03

PULK02

PULK01

PULK00

1

R/W

K07 pull-up control register

K06 pull-up control register

K05 pull-up control register

K04 pull-up control register

K03 pull-up control register

K02 pull-up control register

K01 pull-up control register

K00 pull-up control register

On

Off

00FF58 D7

D6

D5

D4

D3

D2

D1

D0

CTK02H

CTK01H

CTK00H

CTK02L

CTK01L

CTK00L

K04–K07 port chattering-eliminate setup
(Input level check time)

K00–K03 port chattering-eliminate setup
(Input level check time)

"0" when being read

"0" when being read

0

0

0

0

0

0

R/W

R/W

R/W

R/W

R/W

R/W

CTK02H

1
1
1
1
0
0
0
0

CTK01H

1

1

0

0

1

1

0

0

CTK00H

1

0

1

0

1

0

1

0

Check time

[sec]

4/f

OSC3

2/f

OSC3

1/f

OSC3

4096/f

OSC1

2048/f

OSC1

512/f

OSC1

128/f

OSC1

None

CTK02L

1
1
1
1
0
0
0
0

CTK01L

1

1

0

0

1

1

0

0

CTK00L

1

0

1

0

1

0

1

0

Check time

[sec]

4/f

OSC3

2/f

OSC3

1/f

OSC3

4096/f

OSC1

2048/f

OSC1

512/f

OSC1

128/f

OSC1

None