pc keyboard for speccy
is it possible to use a ps/2 keyboard for a speccy. I have a +2A, spectrum+ and toastrack, which all have broken keys. So an external keyboard would be very useful. I know they used to be advertised in crash and other speccy mags. But I have spae ps/2 keyboards that i could use but i imagie the mappings would be wrong and it would be impossible for someone like me :-(
Post edited by rustyredline on
Comments
or
on Ben's site
although I'm not sure if it's compatable with a +2a see Ben's thread
To do that:
- Remove bus connector and pass-thru connector to leave the actual interface board alone so that you can put it inside your computer.
- Wire power, GND, control and address lines from the computer to appropiate places in the interface. You will need to wire address pins A8 to A15, and A0. Control signals to wire are IORQ and RD.
- Route D0-D4 data lines from the interface right to pins 1-5 of Y keyboard connector. The X keyboard connector is not used here.
I did it this way: http://www.worldofspectrum.org/forums/showthread.php?t=38493
As I say there, it should also be possible to use a GAL to modify the matrix array (+2A's ULA) logic so it's not selected when a keyboard scan is activated.
That should be more easy than the 'resistor fix'.
But the EAR port is also read at the same time. If you disable the ULA when a read is made to port FEh, you will have to implement bit 6 in the GAL too, or you will end up with a deaf ULA :D
Good one, didn't think of that before.
Still a GAL is the easiest solution I think.
Indeed! I "repaired" (say, bypassed) a partially damaged ULA that way: display and RAM management were ok, but keyboard, ear, mic and speaker were not (still, the border did work). I programmed a GAL to take over keyboard, ear and speaker, lifted the ULA pins that control the keyboard (the damaged suffered by this ULA caused all keyboard inputs to go low), and put the GAL so it can read keyboard columns, plus EAR, and form a 8-bit value to output to the CPU (the CPU data bus side, not the ULA data bus side).
YouTube video:
http://www.youtube.com/watch?v=VDnqi15vf7E
GAL equations (CUPL format)