HW-SPAR3E-SK-US-G Xilinx Inc, HW-SPAR3E-SK-US-G Datasheet - Page 65

no-image

HW-SPAR3E-SK-US-G

Manufacturer Part Number
HW-SPAR3E-SK-US-G
Description
KIT STARTER SPARTAN-3E
Manufacturer
Xilinx Inc
Datasheets

Specifications of HW-SPAR3E-SK-US-G

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
122-1507
Table 8-3: Common PS/2 Keyboard Commands
Spartan-3E FPGA Starter Kit Board User Guide
UG230 (v1.2) January 20, 2011
Command
ESC
Caps Lock
` ~
0E
76
ED
TA B
EE
F3
FE
FF
Ctrl
0D
14
58
Shift
12
1 !
16
R
15
Q
Turn on/off Num Lock, Caps Lock, and Scroll Lock LEDs. The keyboard acknowledges receipt of an
“ED” command by replying with an “FA”, after which the host sends another byte to set LED status. The
bit positions for the keyboard LEDs are shown below. Write a ‘1’ to the specific bit to illuminate the
associated keyboard LED.
Echo. Upon receiving an echo command, the keyboard replies with the same scan code “EE”.
Set scan code repeat rate. The keyboard acknowledges receipt of an “F3” by returning an “FA”, after
which the host sends a second byte to set the repeat rate.
Resend. Upon receiving a resend command, the keyboard resends the last scan code sent.
Reset. Resets the keyboard.
F1
1C
05
2 @
A
1E
1Z
Z
7
1D
W
Alt
11
1B
F2
06
The host can also send commands and data to the keyboard.
of some often-used commands.
The keyboard sends commands or data to the host only when both the data and clock lines
are High, the Idle state.
Because the host is the bus master, the keyboard checks whether the host is sending data
before driving the bus. The clock line can be used as a clear to send signal. If the host pulls
the clock line Low, the keyboard must not send any data until the clock is released.
The keyboard sends data to the host in 11-bit words that contain a ‘0’ start bit, followed by
eight bits of scan code (LSB first), followed by an odd parity bit and terminated with a ‘1’
stop bit. When the keyboard sends data, it generates 11 clock transitions at around 20 to
30 kHz, and data is valid on the falling edge of the clock as shown in
3 #
S
26
22
X
24
E
F3
04
23
D
4 $
25
6
21
C
2D
R
Figure 8-3: PS/2 Keyboard Scan Codes
0C
2B
F4
5 %
F
2E
2A
V
2C
Ignored
T
34
G
6 ^
36
5
32
B
F5
03
35
Y
Space
www.xilinx.com
33
7 &
H
29
3D
31
N
0B
F6
3C
U
4
3B
8 *
3E
J
Description
3A
M
F7
83
43
I
42
K
9 (
46
, <
41
0A
F8
44
O
3
4B
L
0 )
45
> .
49
4D
P
4C
Caps Lock Num Lock
F9
01
E0 11
; :
- _
4E
Alt
4A
/ ?
[ {
54
2
F10
09
52
' "
= +
55
Table 8-3
5B
] }
F11
Back Space
78
Shift
59
Enter
5A
E0 14
1
66
Figure
Ctrl
provides a short list
5D
\ |
F12
07
UG230_c8_03_021806
8-2.
Scroll Lock
Keyboard
E0 6B
E0 75
E0 74
E0 72
0
65

Related parts for HW-SPAR3E-SK-US-G