Skip to main content
Home▸ Forums▸ 68kMLA▸ PS2 Keyboard on Mac Plus — #9
Post #9 by bbraun
Source Forum68kMLA
CategoryTroubleshooting
Post DateMon, 10 Jun 2013 - 17:56
Original URLhttps://68kmla.org/bb/threads/ps2-keyboard-on-mac-plus.28252/
Post
I originally worked entirely with jumper wires like this:

ps2tomackbd.jpg

To actually assemble all the pieces onto the perfboard and have it working took maybe 20-30mins? I made a mistake on the first try and had the clock and data lines mixed up on the mac keyboard side, and once that got sorted out, it worked. There's really not that much to it. One thing that might be interesting would be turning the perfboard into a pcb. I might be able to handle that.

It's still powered by 5V (USB or whatever), since the mac keyboard interface can't supply enough power for most ps2 keyboards + this converter.

I've ordered some of the female connectors to not have the floppy wires soldered to the board. Hopefully that'll make it easier on the desk.

As for ADB, that's completely different, and a much more complicated protocol. I'll poke at it eventually, but it's not a simple thing.

Inside Macintosh Volume III was my reference for the scan codes, they're all there. The keyboard is reporting the ky pressed, so there is a scan code for capslock and shift and for 'k'. The keyboard is not aware of capital vs. lower case.

I've internally implemented logic to keep track of the state of the capslock key in order to make the capslock LED work properly on the PS2 keyboard. The keyboard tells me the capslock key was pressed, and I'm sending back a command to the keyboard to turn the LED on or off.

There are a bazillion extra keys on the PS2 keyboard, and I've thought about setting them up to do interesting things on the mac side, but haven't thought of much yet.