It's possible, but there's no current object I know of that will do this. Someone needs to write one, because you are the Nth person to ask about this.
You need two lines: clock and data. At rest, both clock and data are high. (Double check this, I am 80% sure)
In a nutshell, the format is
1 start bit
8 data bits LSB first
1 parity bit
1 stop bit
The PC samples on falling clock edge, with clock running aorund 10kHz.
When a key is pressed, the scan code is sent. At the release, $f0 + scan code is sent. So for your case its: scancode , f0, scancode. Special characters take up to bytes. You can google out the AT PS/2 scancode table. For XT, there are some differences.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
In a nutshell, the format is
1 start bit
8 data bits LSB first
1 parity bit
1 stop bit
The PC samples on falling clock edge, with clock running aorund 10kHz.
When a key is pressed, the scan code is sent. At the release, $f0 + scan code is sent. So for your case its: scancode , f0, scancode. Special characters take up to bytes. You can google out the AT PS/2 scancode table. For XT, there are some differences.