PS/2 Keyboard Input
![JonnyMac](https://forums.parallax.com/uploads/userpics/922/n74EUX0AORWZS.jpg)
The Propeller-heads shouldn't be the only ones to have fun with PS/2 keyboards. Today one of Parallax's cut little PS/2 breadboard adapters arrived so I did a bit of a web search and came up with a simple SX/B test program for it. The emphasis here is on simple. The function, GET_KEY, kind of works like the inline SERIN... it blocks until a key is pressed (or released). The routine checks for extended and break codes and will set flags accordingly.
This is just a first go but, perhaps, it will inspire others to give it a try a come up with a cleaner, more sophisticated (e.g. parity check) version.
This is just a first go but, perhaps, it will inspire others to give it a try a come up with a cleaner, more sophisticated (e.g. parity check) version.
SXB
![](/plugins/FileUpload/images/file.png)
4K
Comments
Dan
Thanks again.
Thanks for the keyboard program.
Here are two links to other ps/2 keyboard·programs:
http://www.sxlist.com/techref/ubicom/contest/psxkeys/index.htm
http://www.sxlist.com/techref/ubicom/lib/io/dev/keys/pckeytst-gfh.htm
Would be nice if all this will evolve into a PS/2 Virtual Peripheral.
regards peter
I'm not as clever with assembly as you, or PJV, or Bean, but I too am hoping to create a VP version for future projects.
regards peter
·
I do appreaciate all the input. It is a pleasure having a group like this for support.
Regards
Chet