Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Dieses Repo ist archiviert. Du kannst Dateien sehen und es klonen, kannst aber nicht pushen oder Issues/Pull-Requests öffnen.

ibm4704.txt 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. 4704 Keyboard
  2. =============
  3. Keyboard Models:
  4. Model 100 6019273 50-key (grid layout)
  5. Model 200 6019284 62-key Alpha(60% layout)
  6. Model 300 6019303 77-key Expanded Alpha
  7. Model 400 6020218 107-key Full key
  8. Resourse
  9. --------
  10. The IBM 4704: lots of pictures and info
  11. http://kishy.dyndns.org/?p=648#more-648
  12. Brochure:
  13. http://ed-thelen.org/comp-hist/IBM-ProdAnn/4700.pdf
  14. 4704 Keyboard Protocol
  15. ======================
  16. On powering up the keyboard sends keyboard id; A3h for 6019284(62-key), for example.
  17. After that firmware enters FC command mode and waits for parameter data from host
  18. so that it doesn't send any scancode until you send 'FF'(End of FC command).
  19. Connector
  20. ---------
  21. Keyboard Plug from front
  22. DSUB-9
  23. -------------
  24. \ N 2 3 4 5 /
  25. \ N N N N /
  26. ---------
  27. 2 GND
  28. 3 VCC 5V
  29. 4 DATA
  30. 5 CLOCK
  31. N No connection/No pin.
  32. Keyboard to Host
  33. ----------------
  34. Data bits are LSB first and Pairty is odd. Clock has around 60us high and 30us low part.
  35. ____ __ __ __ __ __ __ __ __ __ ________
  36. Clock \____/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
  37. ____ ____ ____ ____ ____ ____ ____ ____ ____ ____
  38. Data ____/ X____X____X____X____X____X____X____X____X____X________
  39. Start 0 1 2 3 4 5 6 7 P Stop
  40. Start bit: can be long as 300-350us.
  41. Inhibit: Pull Data line down to inhibit keyboard to send.
  42. Timing: Host reads bit while Clock is hi.
  43. Stop bit: Keyboard pulls down Data line to lo after 9th clock.
  44. Host to Keyboard
  45. ----------------
  46. Data bits are LSB first and Pairty is odd. Clock has around 60us high and 30us low part.
  47. ____ __ __ __ __ __ __ __ __ __ ________
  48. Clock \______/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
  49. ^ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ___
  50. Data ____|__/ X____X____X____X____X____X____X____X____X____X \___
  51. | Start 0 1 2 3 4 5 6 7 P Stop
  52. Request by host
  53. Start bit: can be long as 300-350us.
  54. Request: Host pulls Clock line down to request to send a command.
  55. Timing: After Request keyboard pull up Data and down Clock line to low for start bit.
  56. After request host release Clock line once Data line becomes hi.
  57. Host wirtes a bit while Clock is hi and Keyboard reads while low.
  58. Stop bit: Host releases or pulls up Data line to hi after 9th clock and waits for keybaord pull down the line to lo.
  59. Scancodes
  60. ---------
  61. Keyboard doesn't send Break code for all keys except for Alt by default.
  62. 6019284 62-key:
  63. ,-----------------------------------------------------------.
  64. | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|???|BS |
  65. |-----------------------------------------------------------|
  66. |Tab | Q| W| E| R| T| Y| U| I| O| P| ¢| \| PD2|
  67. |-----------------------------------------------------------|
  68. |Ctrl | A| S| D| F| G| H| J| K| L| ;| '| {}| PD3|
  69. |-----------------------------------------------------------|
  70. |Shif| <>| Z| X| C| V| B| N| M| ,| ,| /|???|Shift |
  71. |-----------------------------------------------------------|
  72. |Reset|blk|Alt | Space |Alt |blk|Enter|
  73. `-----------------------------------------------------------'
  74. +----------+---------------------+----------+----------+
  75. |` 00|PD1 04|Caps 20|LShift 30|Reset 31|
  76. |1 18|q 05|a 21|<> 3E|Rblank 41|
  77. |2 19|w 06|s 22|z 32|Alt 3F|
  78. |3 1A|e 13|d 23|x 33|Space 40|
  79. |4 10|r 14|f 24|c 34|Alt 3F|
  80. |5 11|t 15|g 25|v 35|Lblank 42|
  81. |6 12|y 16|h 26|b 36|Enter 2F|
  82. |7 08|u 17|j 27|n 37| |
  83. |8 09|i 01|k 28|m 38| |
  84. |9 0A|o 02|l 29|, 39| |
  85. |0 0F|p 03|; 2A|. 3A| |
  86. |- 1F|¢ 1B|' 2B|/ 3B| |
  87. |= 0D|\ 1C|{} 2C|??? 3C| |
  88. |??? 0C|PD2 1D|PD3 2D|RShift 3D| |
  89. |BS 0E| | | | |
  90. +----------+---------------------+----------+----------+
  91. Bit7 is 'press flag' which set 1 on press and 0 on release when break code is enabled.
  92. NOTE: When break code is enabled the key sends scancode with setting 7th bit on press
  93. and without it on release. That is, '`' sends 80h on press and 00h on release.
  94. keyboard command
  95. ----------------
  96. FF Soft Reset(0008h)
  97. FE Resend(00e8h)
  98. FD Buzzer stop?(00edh)
  99. FC Set Key flag(00f6h)
  100. FB Soft Reset(0008h)
  101. FA Reset(0000h)
  102. Keyboard response
  103. -----------------
  104. FF Not exist. [Outgoing buffer cannot have FFh(00h in fact)]
  105. FE Overflow(key event/receive data) at 00c5h, 0346h
  106. FE Memory test error at 0224h
  107. FD Command out of bound at 00d8h
  108. Key out of bound
  109. 7E Read/Parity error in receive from host at 00bch
  110. Set Key flag command(FC)
  111. ------------------------
  112. After 'Power on Reset' firmware enters this command mode and waits for data from host,
  113. so that you don't need to send 'FC' and it doesn't send any scancode until you send 'FF'.
  114. Data sent from host:
  115. bit: 7 6 ... 0
  116. en | |
  117. | `-----`--- scan code
  118. `------------- enable bit(0: enable repeat, 1: enable break)
  119. 00-77 Enable repeat(78-7F: invalid scancode)
  120. 80-F7 Enable break(F8-FF: invalid scancode)
  121. FE Resend(011ah) no need to use
  122. FF End(0114h) exits FC command mode.
  123. Response from keyboard:
  124. FD Out of bound - Invalid scancode
  125. Examples:
  126. To enable break code of all keys.
  127. FC 80 81 ... F7 FF