connecting keyboard
brandan
Posts: 52
How do I connect a keyboard to the propellor? I didn't see anyplace saying how to do this.
Comments
http://www.adafruit.com/products/857
http://www.parallax.com/downloads/propeller-tool-software.
If you are using Brad's Spin Tool or SimpleIDE, you don't get than nice library of Examples unless you copy it over from the Propeller Tool software package (requires installing the same on a Windows machine).
+++++++++++
Wiring the keyboard or mouse requires +5 VDC and the conventional PS/2 lines with pullup resistors. The Propeller Demo Board or the Propeller Proto Board have schematics that show how to properly wire for these.
+++++++++++
I suppose that you can make an adapter for a USB keyboard to PS/2, but I just saved the one's that came with keyboards that have since died.
The adaptor is just a dumb gender bender plus it's bulky so if you are designing in a keyboard socket then skip the old old PS/2 and just make it a USB socket but wired for PS/2. This is what I have done for several of my products plus I have solder jumpers for the USB socket so that I could use it as pure USB (though that is very resource hungry).
A long dissertation on using a keyboard with a microcontroller
http://www.freescale.com/files/microcontrollers/doc/ref_manual/DRM014.pdf
Interrupts (yech!), protocols and scan codes
http://www.nerdkits.com/videos/interrupts_and_ps2_keyboard/