I want to be able to connect a USB keyboard into a Teensy 3.2 via a UHS Mini USB Host and convert the signals to the standard PC AT [PS2 (MF2)] or PC XT code set based on a dipswitch.
Diagram:
USB Keyboard --> UHS Mini --> Teensy --> PS/2 or AT KB socket --> Vintage PC
I am unsure how to do this.
any project guidance would be greatly appreciated. This would help many retrocomputer users to be able to do this and not have to invest additional money for a keyboard. It would also allow it to work with a KVM switch.
Riva:
Would it be easier (and cheaper) to use something like this instead?
These are mere passive converters and from my experience these do not work with any keyboards I have tried and its based on if the keyboard has the USB Scanset embedded in it or not along with the PS/2 codes.
I really need to get from USB to the AT Scan code set (MF2) for an old vintage 1980's computers.
I would also like to be able to do XT scan codes as well from a flip of a dipswitch.
i know, but usb is more dominant than PS/2 and it would be easier to use the USB interface so that a simple USB switcher could be used for multiple retro computers. i have multiple retro computers and none of them use the same keyboard interface. One uses AT, One Uses XT and another uses a proprietary protocol.
If I can make a convert from USB to one of the Scan Codes mentioned then I can easily hook it all up to a USB keyboard switcher (similar to kvm).