PCB design done + bom and readme
[sgikbd] / doc / sgi_man7_keyboard
1 keyboard(7)
2
3  NAME
4
5      keyboard - keyboard specifications
6
7  DESCRIPTION
8
9      The keyboard used on the 4D series, Indigo, Crimson and Onyx systems is
10      an up-down encoded 101-key keyboard.
11
12      The keyboard connects to the main electronics cabinet through a shielded
13      partially coiled cord and is detachable at the system cabinet only.  The
14      mouse plugs into either side of the keyboard.  Ports are provided on both
15      sides of the enclosure to allow access to left-handed and right-handed
16      mouse connectors.  The keyboard cord contains low voltage direct current
17      power feeds and two serial links; one for the mouse and one for the
18      keyboard.  The keyboard serial link is bidirectional, allowing for
19      control of indicator lights and other keyboard functions.  Each time a
20      key is pressed or released, a code is sent via the keyboard serial link.
21      Every key has a different upcode and downcode.  All keys function the
22      same way, allowing the system software to use keys in any manner.  Auto-
23      repeat is the only function that treats keys differently.  When auto-
24      repeat is enabled, a subset of the keys repeat when held down.  Multiple
25      key presses/releases result in all key transitions being reported.
26
27    Electrical Interface
28      The keyboard serial I/O interface uses RS423 levels and communicates
29      asynchronously to the system at 600 baud.  The format used is one start
30      bit followed by eight data bits, an odd parity bit and one stop bit, with
31      one byte sent per key up or down transition.  The idle state and true
32      data bits for the interface are Mark level or -5V, whereas false data
33      bits and the start bit are spaces or +5V.
34
35      The pin assignments for the keyboard connector on machines with DB-15
36      connectors are shown in the following table:
37
38                             KEYBOARD CONNECTOR PINOUT
39                          ________________________________
40                          Pin |_Signal |_Description      
41                           1  | GND    | Ground
42                           2  | GND    | Ground
43                           3  | GND    | Ground
44                           4  | KTXD   | Keyboard Transmit
45                           5  | KRCD   | Keyboard Receive
46                           7  | +12Vdc | Power
47                           8  | +12Vdc | Power
48                           9  | +12Vdc | Power
49                          10  | MTXD   | Mouse Transmit
50                          11  | NC     | Reserved
51                          12  | NC     | Reserved
52                          15  | -12Vdc | Power
53
54      The pin assignments for the DB-9 keyboard connector on the Personal IRIS
55      4D/20 and 4D/25 machines are shown in the following table for both the
56      CPU connector and the connectors on the keyboard itself.  The connectors
57      on each side of the keyboard are identical, so the mouse can be attached
58      on either side.
59
60                               KEYBOARD CABLE PINOUT
61                ____________________________________________________
62                Pin |_CPU Signal |_Keyboard Signal |_Description    
63                 1  | NC         | +5Vdc           | Power
64                 2  | KRCD       | KTXD            | Keyboard to CPU
65                 3  | NC         | -5Vdc           | Power
66                 4  | -12Vdc     | -12Vdc          | Power
67                 5  | MRCD       | MTXD            | Mouse to CPU
68                 6  | GND        | GND             | Ground
69                 7  | +12Vdc     | +12Vdc          | Power
70                 8  | KTXD       | KRCD            | CPU to Keyboard
71                 9  | GND        | GND             | Ground
72
73      The pin assignments for the DIN-6 keyboard connector on the CPU board of
74      some of the newer systems are shown in the following table:
75
76                               KEYBOARD CABLE PINOUT
77                          ________________________________
78                          Pin |_Signal |_Description      
79                           1  | KRCD   | Keyboard Receive
80                           2  | MRCD   | Mouse Receive
81                           3  | GND    | Ground
82                           4  | +8Vdc  | Power
83                           5  | KTXD   | Keyboard Transmit
84                           6  | -8Vdc  | Power
85
86      The pin assignments for the mouse port connector (on the keyboard, not on
87      the CPU) for keyboards with DB9 connector are shown in the following
88      table; either connector on the keyboard can be used for the mouse or for
89      the keyboard cable.
90
91                                     MOUSE PORT
92                            ____________________________
93                            Pin |_Signal |_Description  
94                             1  | +5V    | Power
95                             3  | -5V    | Power
96                             5  | MTXD   | Transmit Data
97                             9  | GND    | Ground
98
99      For machines whose keyboards have the DIN-6 connector on the keyboard, as
100      well as on the CPU, the pinout is shown in the following table.  The
101      connectors on both sides of the keyboard have identical pinout, either
102      can be used for the mouse and the cable to the CPU.
103
104                             KEYBOARD CONNECTOR PINOUT
105                          ____|________|__________________
106                          Pin |_Signal |_Description      
107
108                           1    KTXD     Keyboard Transmit
109                           2  | MTXD   | Mouse Transmit
110                           3  | GND    | Ground
111                           4  | +8Vdc  | Power
112                           5  | KRCD   | Keyboard Receive
113                           6  | NC     | Not Connected
114
115    Software Interface
116      The interface between the keyboard and the system is 600 baud
117      asynchronous.  The format used is one start bit followed by eight data
118      bits, an odd parity bit and one stop bit, with one byte sent per key up
119      or down transition.  The MSB of the byte is a 0 for a downstroke and a 1
120      for an upstroke.  Control bytes are sent to the keyboard with the same
121      speed and format.  The system software does all the processing needed to
122      support functions such as capitalization, control characters, and numeric
123      lock.  Auto-repeat for a specified set of characters can be turned on or
124      off by the system software by sending a control byte to the keyboard.
125      When auto-repeat is enabled, a pressed key begins auto-repeating after
126      0.65 seconds and repeats 28 times per second.  The keyboard initializes
127      upon power-up.  The configuration request control byte causes the
128      keyboard to send a two-byte sequence to the system.  The second byte
129      contains the eight-bit value set on a DIP switch in the keyboard.  All
130      keyboard lights (if any; some newer systems have keyboards without user
131      controllable lights) are controlled by the system software by sending
132      control bytes to the keyboard to turn them on or off.  Control bytes are
133      also used for long and short beep control and key click disable.  When
134      key click is enabled, the keys click when they are pressed.  The long
135      beep duration is 1 second and the short beep duration is 0.2 second.
136      There are three lights labeled NUM LOCK, CAPS LOCK, and SCROLL LOCK that
137      are under software control.  On older keyboards there are also four
138      general-purpose keyboard lights labeled L1 through L4.  The required
139      keycode mappings and control byte formats are shown in the following
140      tables.  Note that the legend names prefixed by two asterisks are
141      reserved and not implemented on the keyboard.  Legend names prefixed by
142      two exclamation marks do NOT have the auto-repeat enable capability.
143      Legend names prefixed by two dollar signs do NOT have the key click
144      enable capability.
145
146                           LEGENDS VS KEYCODES IN DECIMAL
147                    _____________________________________________
148                    ________Legend          |________Code        
149                             AKEY           |         10
150                             BKEY           |         35
151                             CKEY           |         27
152                             DKEY           |         17
153                             EKEY           |         16
154                             FKEY           |         18
155                             GKEY           |         25
156                             HKEY           |         26
157                             IKEY           |         39
158                             JKEY                     33
159                             KKEY           |         34
160                             LKEY           |         41
161                             MKEY           |         43
162                             NKEY           |         36
163                             OKEY           |         40
164                             PKEY           |         47
165                             QKEY           |          9
166                             RKEY           |         23
167                             SKEY           |         11
168                             TKEY           |         24
169                             UKEY           |         32
170                             VKEY           |         28
171                             WKEY           |         15
172                             XKEY           |         20
173                             YKEY           |         31
174                             ZKEY           |         19
175                            ZEROKEY         |         45
176                            ONEKEY          |          7
177                            TWOKEY          |         13
178                           THREEKEY         |         14
179                            FOURKEY         |         21
180                            FIVEKEY         |         22
181                            SIXKEY          |         29
182                           SEVENKEY         |         30
183                           EIGHTKEY         |         37
184                            NINEKEY         |         38
185
186                           LEGENDS VS KEYCODES IN DECIMAL
187                        ____________________________________
188                        ________Legend          |____Code   
189                             **!!BREAKKEY       |     0
190                             **!!SETUPKEY       |     1
191                             $$!!LEFTCTRL       |     2
192                            $$!!CAPSLOCKKEY     |     3
193                           $$!!RIGHTSHIFTKEY    |     4
194                           $$!!LEFTSHIFTKEY     |     5
195                             **!!NOSCRLKEY      |     12
196                               !!ESCKEY         |     6
197                               !!TABKEY         |     8
198                             RETURN.ENTER       |     50
199                               SPACEKEY         |     82
200                             **LINEFEEDKEY      |     59
201                             BACKSPACEKEY       |     60
202                                DELKEY          |     61
203                             SEMICOLONKEY       |     42
204                               PERIODKEY        |     51
205                               COMMAKEY         |     44
206                               QUOTEKEY"        |     49
207                            ACCENTGRAVEKEY~     |     54
208
209                               MINUSKEY               46
210                              VIRGULEKEY?       |     52
211                             BACKSLASHKEY       |     56
212                               EQUALKEY         |     53
213                            LEFTBRACKETKEY      |     48
214                            RIGHTBRACKETKEY     |     55
215                             LEFTARROWKEY       |     72
216                             DOWNARROWKEY       |     73
217                             RIGHTARROWKEY      |     79
218                              UPARROWKEY        |     80
219                                 PAD0           |     58
220                                 PAD1           |     57
221                                 PAD2           |     63
222                                 PAD3           |     64
223                                 PAD4           |     62
224                                 PAD5           |     68
225                                 PAD6           |     69
226
227                           LEGENDS VS KEYCODES IN DECIMAL
228                       ______________________________________
229                       ________Legend          |_____Code    
230                                PAD7           |      66
231                                PAD8           |      67
232                                PAD9           |      74
233                              **PADPF1         |      71
234                              **PADPF2         |      70
235                              **PADPF3         |      78
236                              **PADPF4         |      77
237                              PADPERIOD        |      65
238                              PADMINUS         |      75
239                             **PADCOMMA        |      76
240                             !!PADENTER        |      81
241                             $$!!LEFTALT       |      83
242                            $$!!RIGHTALT       |      84
243                            $$!!RIGHTCTRL      |      85
244                                 F1            |      86
245                                 F2            |      87
246                                 F3            |      88
247                                 F4            |      89
248                                 F5            |      90
249                                 F6            |      91
250                                 F7            |      92
251                                 F8            |      93
252                                 F9            |      94
253                                 F10           |      95
254                                 F11           |      96
255                                 F12           |      97
256                           !!PRINT.SCREEN      |      98
257                           $$!!SCROLL.LOCK     |      99
258                               !!PAUSE         |     100
259
260                              !!INSERT               101
261                               !!HOME          |     102
262                              !!PAGEUP         |     103
263                                !!END          |     104
264                             !!PAGEDOWN        |     105
265                            $$!!NUM.LOCK       |     106
266                            PAD.BKSLASH/       |     107
267
268                           LEGENDS VS KEYCODES IN DECIMAL
269                        ____________________________________
270                        __________Legend            |__Code 
271                                PAD.ASTER*          |  108
272                                 PAD.PLUS+          |  109
273                        config byte(1st of 2 bytes) |  110
274                        config byte(2nd of 2 bytes) | DIP SW
275                                GERlessThan         |  111
276                                  spare1            |  112
277                                  spare2            |  113
278                                  spare3            |  114
279                                  spare4            |  115
280                                  spare6            |  117
281                                  spare7            |  118
282                                  spare8            |  119
283                                  spare9            |  120
284                                  spare10           |  121
285
286                           KEYCODES IN DECIMAL VS LEGENDS
287                        ____________________________________
288                        ___Code    |_________Legend         
289                            0      |       **BREAKKEY
290                            1      |      **!!SETUPKEY
291                            2      |      $$!!LEFTCTRL
292                            3      |     $$!!CAPSLOCKKEY
293                            4      |    $$!!RIGHTSHIFTKEY
294                            5      |    $$!!LEFTSHIFTKEY
295                            6      |        !!ESCKEY
296                            7      |         ONEKEY
297                            8      |        !!TABKEY
298                            9      |          QKEY
299                            10     |          AKEY
300                            11     |          SKEY
301                            12     |      **!!NOSCRLKEY
302                            13     |         TWOKEY
303                            14     |        THREEKEY
304                            15     |          WKEY
305                            16     |          EKEY
306                            17     |          DKEY
307                            18     |          FKEY
308                            19     |          ZKEY
309                            20     |          XKEY
310
311                            21               FOURKEY
312                            22     |         FIVEKEY
313                            23     |          RKEY
314                            24     |          TKEY
315                            25     |          GKEY
316                            26     |          HKEY
317                            27     |          CKEY
318                            28     |          VKEY
319                            29     |         SIXKEY
320                            30     |        SEVENKEY
321                            31     |          YKEY
322                            32     |          UKEY
323                            33     |          JKEY
324                            34     |          KKEY
325                            35     |          BKEY
326
327                           KEYCODES IN DECIMAL VS LEGENDS
328                       ______________________________________
329                       ____Code     |_________Legend         
330                            36      |          NKEY
331                            37      |        EIGHTKEY
332                            38      |         NINEKEY
333                            39      |          IKEY
334                            40      |          OKEY
335                            41      |          LKEY
336                            42      |      SEMICOLONKEY
337                            43      |          MKEY
338                            44      |        COMMAKEY
339                            45      |         ZEROKEY
340                            46      |        MINUSKEY
341                            47      |          PKEY
342                            48      |       LEFTBRACKET
343                            49      |        QUOTEKEY
344                            50      |      RETURN.ENTER
345                            51      |        PERIODKEY
346                            52      |       VIRGULEKEY
347                            53      |        EQUALKEY
348                            54      |     ACCENTGRAVEKEY
349                            55      |     RIGHTBRACKETKEY
350                            56      |      BACKSLASHKEY
351                            57      |        PADONEKEY
352                            58      |       PADZEROKEY
353                            59      |      **LINEFEEDKEY
354                            60      |      BACKSPACEKEY
355                            61      |        DELETEKEY
356                            62      |       PADFOURKEY
357                            63      |        PADTWOKEY
358                            64      |       PADTHREEKEY
359                            65      |      PADPERIODKEY
360                            66      |       PADSEVENKEY
361
362                            67              PADEIGHTKEY
363                            68      |       PADFIVEKEY
364                            69      |        PADSIXKEY
365                            70      |       **PADPF2KEY
366                            71      |       **PADPF1KEY
367
368                           KEYCODES IN DECIMAL VS LEGENDS
369                       ______________________________________
370                       ____Code     |_________Legend         
371                            72      |      LEFTARROWKEY
372                            73      |      DOWNARROWKEY
373                            74      |       PADNINEKEY
374                            75      |       PADMINUSKEY
375                            76      |      **PADCOMMAKEY
376                            77      |       **PADPF4KEY
377                            78      |       **PADPF3KEY
378                            79      |      RIGHTARROWKEY
379                            80      |       UPARROWKEY
380                            81      |      !!PADENTERKEY
381                            82      |        SPACEKEY
382                            83      |       $$!!LEFTALT
383                            84      |      $$!!RIGHTALT
384                            85      |      $$!!RIGHTCTRL
385                            86      |           F1
386                            87      |           F2
387                            88      |           F3
388                            89      |           F4
389                            90      |           F5
390                            91      |           F6
391                            92      |           F7
392                            93      |           F8
393                            94      |           F9
394                            95      |           F10
395                            96      |           F11
396                            97      |           F12
397                            98      |     !!PRINT.SCREEN
398                            99      |     $$!!SCROLL.LOCK
399                           100      |         !!PAUSE
400                           101      |        !!INSERT
401                           102      |         !!HOME
402                           103      |        !!PAGEUP
403                           104      |          !!END
404                           105      |       !!PAGEDOWN
405                           106      |      $$!!NUM.LOCK
406                           107      |      PAD.BKSLASH/
407
408                           KEYCODES IN DECIMAL VS LEGENDS
409                        ____________________________________
410                        _Code  |___________Legend           
411                         108   |         PAD.ASTER*
412
413                         109              PAD.PLUS+
414                         110   | config byte(1st of 2 bytes)
415                        DIP SW | config byte(2nd of 2 bytes)
416
417                        CONTROL BYTES RECOGNIZED BY KEYBOARD
418              _________________________________________________________
419              BIT  |                    DESCRIPTION
420              TRUE |_________BIT 0 = 0         |_______BIT 0 = 1       
421               1   |        short beep         | complement ds1 and ds2
422               2   |         long beep         |          ds3
423               3   |       click disable       |          ds4
424               4   | return configuration byte |          ds5
425               5   |            ds1            |          ds6
426               6   |            ds2            |          ds7
427               7   |    enable auto-repeat     |        not used
428
429                                   DISPLAY LABELS
430                          _________________________________
431                          DISPLAY DESIGNATION |____LABEL   
432                                  ds1         |  NUM LOCK
433                                  ds2         |  CAPS LOCK
434                                  ds3         | SCROLL LOCK
435                                  ds4         |     L1
436                                  ds5         |     L2
437                                  ds6         |     L3
438                                  ds7         |     L4
439
440  NOTE
441
442      Indy, Indigo2, O2, OCTANE and Onyx2 use a PS/2 style keyboard (detailed
443      in pckeyboard(7)) that uses a different scan code set.  This difference
444      may break compatibility for some programs that operate with raw scan
445      codes.
446
447  SEE ALSO
448
449      keyboard(1), mouse(7), pckeyboard(7), pcmouse(7).