Thanks to reader Hamster, who submitted this peachy Wiki page! Hamster has written some VHDL code for communicating with a PS/ 2 keyboard that can be found on the wiki! Useful stuff:
“It has lots of features:
- It does full start bit, stopbit and parity check
- … deglitches the signals, by requiring a state change of longer than 1us before it is acted upon
- Checks that the clock speed is within limits
- Can be adapted to stuff keyboard scan codes into a FIFO for later processing.”
You can check out Hamster’s code here.
If this is up your alley, give it a try, and post your results in the comments thread. Suggestions or improvements? Thanks again Hamster!