Digital Signal Processing Reference
In-Depth Information
The keyboard powers up using this scan code as the default. Commands must
be sent to the keyboard to use other scan code sets. The PC sends out an
initialization command that forces the keyboard to use the other scan code.
The interface is much simpler if the default scan code is used. If the default
scan code is used, no commands will need to be sent to the keyboard. The keys
in Table 11.4 for the default scan code are typematic (i.e. they automatically
repeat the make code if held down).
Table 11.4 Scan Codes for PS/2 Keyboard.
Break
Code
1 0E F0 0E 31 1C F0 1C 90 77 F0 77
2 16 F0 16 32 1B F0 1B 91 6C F0 6C
3 1E F0 1E 33 23 F0 23 92 6B F0 6B
4 26 F0 26 34 2B F0 2B 93 69 F0 69
5 25 F0 25 35 34 F0 34 96 75 F0 75
6 2E F0 2E 36 33 F0 33 97 73 F0 73
7 36 F0 36 37 3B F0 3B 98 72 F0 72
8 3D F0 3D 38 42 F0 42 99 70 F0 70
9 3E F0 3E 39 4B F0 4B 100 7C F0 7C
10 46 F0 46 40 4C F0 4C 101 7D F0 7D
11 45 F0 45 41 52 F0 52 102 74 F0 74
12 4E F0 4E 43 5A F0 5A 103 7A F0 7A
13 55 F0 55 44 12 F0 12 104 71 F0 71
15 66 F0 66 46 1A F0 1A 105 7B F0 7B
16 0D F0 0D 47 22 F0 22 106 79 F0 79
17 15 F0 15 48 21 F0 21 110 76 F0 76
18 1D F0 1D 49 2A F0 2A 112 05 F0 05
19 24 F0 24 50 32 F0 32 113 06 F0 06
20 2D F0 2P 51 31 F0 31 114 04 F0 04
21 2C F0 2C 52 3A F0 3A 115 0c F0 0C
22 35 F0 35 53 41 F0 41 116 03 F0 03
23 3C F0 3C 54 49 F0 49 117 0B F0 0B
24 43 F0 43 55 4A F0 4A 118 83 F0 83
25 44 F0 44 57 59 F0 59 119 0A F0 0A
26 4D F0 4D 58 14 F0 14 120 01 F0 01
27 54 F0 54 60 11 F0 11 121 09 F0 09
28 5B F0 5B 61 29 F0 29 122 78 F0 78
29 5D F0 5D 62 E0 11 E0 F0 11 123 07 F0 07
The remaining key codes are a function of the shift, control, alt, or numlock keys.
Make
Code
Break
Code
Make
Code
Break
Code
Make
Code
Key#
Key#
Key#
Search WWH ::




Custom Search