Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
ARM PrimeCell PS-2 interface technical reference manual.pdf
Скачиваний:
14
Добавлен:
23.08.2013
Размер:
375.85 Кб
Скачать

Functional Overview

1

2

3

4

5

6

7

8

9

10

11

KMICLK

Stop

KMIDATA

0

1

2

3

4

5

6

7

Parity

Line control bit

Figure 2-4 Data sent to the keyboard (KMI transmit)

2.3.6Timing requirements

KMICLK

KMIDATA receive

KMIDATA transmit

KMICLK request- to-send

KMIDATA request- to-send

The timing requirements of the interface are shown in Figure 2-5 and Table 2-3.

Tkclk

Tkckl

Tkckh

Tdsi

Tdhi

Tdso

Tdho

 

Tki

 

 

 

 

Tkrg

 

 

 

 

 

 

 

 

 

 

 

Tksb

Figure 2-5 PrimeCell KMI timing and controller request to send protocol

DDI 0143C

© Copyright ARM Limited 1999. All rights reserved.

2-11

Functional Overview

Table 2-3 shows the nominal timings for the interface signals.

Table 2-3 Interface signals

Symbol

Parameters

Min

Typ

Max

Units

Notes

 

 

 

 

 

 

 

Tkclk

Keyboard clock period

1

-

100

μs

-

 

 

 

 

 

 

 

Tkckl

Keyboard clock LOW time

0.5

-

50

μs

-

 

 

 

 

 

 

 

Tkckh

Keyboard clock HIGH time

0.5

-

50

μs

-

 

 

 

 

 

 

 

Tdsi

Setup on KMIDATA to

1

-

Tkckh

μs

1

 

KMICLK falling for receive

 

 

- 1μs

 

 

 

 

 

 

 

 

 

Tdhi

Hold on KMIDATA to

1

-

Tkckh

μs

1

 

KMICLK rising for receive

 

 

- 1μs

 

 

 

 

 

 

 

 

 

Tdso

Setup on KMIDATA to

Tkckl

-

Tkckl

-

1

 

KMICLK rising for transmit

- 1μs

 

 

 

 

 

 

 

 

 

 

 

Tdho

Hold on KMIDATA from

0ns

-

1μs

-

1

 

KMICLK falling for transmit

 

 

 

 

 

 

 

 

 

 

 

 

Tki

Time for which KMICLK is

60.0

64

85.3

μs

1, 2

 

held low to request a send

 

 

 

 

 

 

 

 

 

 

 

 

Tkrg

KMICLK LOW from controller

1

-

-

μs

1

 

to KMICLK LOW from

 

 

 

 

 

 

peripheral for request to send

 

 

 

 

 

 

 

 

 

 

 

 

Tksb

KMICLK LOW to KMIDATA

1

-

-

μs

1, 3

 

LOW hold time for request to

 

 

 

 

 

 

send

 

 

 

 

 

Note 1 The KMIDATA and KMICLK signals in the diagrams and tables in this section relate to the respective external pad connections.

Note 2 Tki must be greater than 60.0 μs in order to guarantee that a keyboard will recognize a request-to-send command from the system. The request-to-send is timed by 512 cycles of the internal 8MHz clock, and this determines the maximum value of Tki.

Note 3 The KMIDATA will precede the KMICLK in this implementation, so the value for Tksb shown on the diagram above is negative, that is safe.

2-12

© Copyright ARM Limited 1999. All rights reserved.

DDI 0143C