geekhack
geekhack Community => Keyboards => Topic started by: b0bb3r5 on Sat, 12 March 2011, 14:32:02
-
here is some info on the keyboard i found
Macintosh Plus Keyboard (M0110A):
Introduced and included with the Macintosh Plus in 1986, it was an extended keyboard that had a built-in numeric keypad. In 1987 it was updated to Apple's new Platinum gray color. It continued to use the telephone-cord style connector to the CPU and was interchangeable with the M0110. Though Apple switched all other keyboards to Apple Desktop Bus connectors by this time, this keyboard was manufactured unchanged for 4 more years until the Plus was discontinued in 1991.
Data port:
The Macintosh 128K, Macintosh 512K and Macintosh Plus from Apple used 4P4C connectors to connect the keyboard to the main computer housing. The connector provided power to the keyboard on the outer two conductors and received data signals on the inner pair. The cable between the computer and the keyboard was a coiled cord with an appearance very similar to a telephone handset cable.[6] The connector wiring, however, required a polarized straight through pinout. Using a telephone handset cable instead of the supplied cable could short out the +5 volt DC supply and damage the computer or the keyboard.[7]
Some consumer equipment such as DirecTV set top boxes include a 4P4C low-speed data port connector.[5] Such connectors can be adapted for use with a computer's serial port so that control commands can be sent from the computer to the set top box.
how would i go about converting the signal to usb with a teensy and is this a "AT Keyboard" ?
http://en.wikipedia.org/wiki/AT_keyboard
-
how would i go about converting the signal to usb with a teensy and is this a "AT Keyboard" ?
It's not an AT keyboard in any way.
The primary documentation for the early Mac keyboard protocol is in the original Inside Macintosh, Volume III. I won't link to this for copyright reasons but you won't have any trouble finding it.
Some documentation is also available at kbdbabel (http://kbdbabel.org/), particularly on the signalling (http://kbdbabel.org/signaling/index.html) and pinout (http://kbdbabel.org/conn/index.html) pages, and in the code of the 8051-based Mac-to-PS/2 (http://kbdbabel.cvs.sourceforge.net/viewvc/kbdbabel/kbdbabel/kbdbabel-mac-ps2/) adapter. Keep in mind that kbdbabel numbers bits backwards from Apple, which can be confusing.
Here is a table of Mac keyboard codes, with the equivalent USB code:
--------------- Macintosh -----------------------------------------------------
Code kbdbabel
US Int'l (reverse) USB Description
-- ----- ---- --- -----------
01 01 80 04 a and A
03 03 C0 16 s and S
05 05 A0 07 d and D
07 07 E0 09 f and F
09 09 90 0B h and H
0B 0B D0 0A g and G
0D 0F B0 1D z and Z
0F 11 F0 1B x and X
11 13 88 06 c and C
13 17 C8 19 v and V
15 15 A8 --
17 5B E8 05 b and B
19 19 98 14 q and Q
1B 1B D8 1A w and W
1D 1D B8 08 e and E
1F 1F F8 15 r and R
21 21 84 1C y and Y
23 23 C4 17 t and T
25 25 A4 1E 1 and !
27 27 E4 1F 2 and @
29 29 94 20 3 and #
2B 2B D4 21 4 and $
2D 2D B4 23 6 and ^
2F 2F F4 22 5 and %
31 31 8C 2E = and +
33 33 CC 26 9 and (
35 35 AC 24 7 and &
37 37 EC 2D - and _
39 39 9C 25 8 and *
3B 3B DC 27 0 and )
3D 3D BC 30 ] and }
3F 3F FC 12 o and O
41 41 82 18 u and U
43 43 C2 2F [ and {
45 45 A2 0C i and I
47 47 E2 13 p and P
49 55 92 28 Return (ENTER)
4B 4B D2 0F l and L
4D 4D B2 0D j and J
4F 4F F2 34 ' and "
51 51 8A 0E k and K
53 53 CA 33 ; and :
55 -- AA 31 \ and |
57 5F EA 36 , and <
59 15 9A 38 / and ?
5B 5D DA 11 n and N
5D 57 BA 10 m and M
5F 59 FA 37 . and >
61 61 86 2B Tab
63 69 C6 2C Spacebar
65 49 A6 35 ` and ~
67 67 E6 2A Backspace
69 63 96 58 Enter (KP)
6B 6B D6 --
6D 6D B6 --
6F 6F F6 E2 Left Alt
71 71 8E E1 Shift
73 73 CE 39 Caps Lock
75 75 AE E0 Left Control
77 77 EE --
79 79 9E -- Keypad prefix
7B 7B DE --
7D 7D BE --
7F 7F FE --
-- 0D AA 64 \ and | (Non-US)
-- 65 32 § and ± (Non-US)
--------------- Keypad --------------------------------------------------------
Prefixed by 0x79 (kbdbabel 9E).
Code kbdbabel
US Int'l (reverse) USB Description
-- ----- ---- --- -----------
03 03 C0 63 .
05 05 A0 4F Cursor Right
0D 0D B0 50 Cursor Left
0F 0F F0 53 Clear
11 11 88 51 Cursor Down
19 19 98 58 Enter
1B 1B D8 52 Cursor Up
1D 1D B8 56 -
25 25 A4 62 0
27 27 E4 59 1
29 29 94 5A 2
2B 2B D4 5B 3
2D 2D B4 5C 4
2F 2F F4 5D 5
31 31 8C 5E 6
33 33 CC 5F 7
37 37 EC 60 8
39 39 9C 61 9
--------------- Mac Plus ------------------------------------------------------
Prefixed by 0x71 0x79 (and/or 0x79 0x71 ?), according to kbdbabel.
(kbdbabel: 9E 8E)
Code kbdbabel
US Int'l (reverse) USB Description
-- ----- ---- --- -----------
05 05 A0 55 Keypad *
0D 0D B0 57 Keypad +
11 11 88 53 Keypad Clear
1B 1B D8 54 Keypad /
===============================================================================