Page 1 of 1

PS/2 Keyboard User Module

Posted: Sun Sep 26, 2010 10:25 am
by gramo
I've been experimenting with PS2 Keyboards for the last couple of days, and made a handy user module up if anyone is interested.

You can find it here swKBD.bas

While the above module can, and does use TMR2 interrupts - they are for timeouts only (and plug-and-play polling). They can be disabled via simple options, and driven purely by blocking calls (ie, wait for a key to be pressed before returning).

Thoughts/ideas welcomed

Posted: Sun Oct 03, 2010 4:16 am
by gramo
Version 1.1 Notes
  • FIX: Swordfish version 2.2.0.1 no longer generates an error on KBD_UCASE elements.
  • FEATURE: Detects if the PS/2 Keyboard is connected, and handles all re-programming on-the-fly (allows keyboards to be disconnected/connected and remain functional).
  • IMPROVEMENT: Increased performance up to 250 samples/second (4mS per packet ... MAX).
  • IMPROVEMENT: Removed all interrupt routines - completely software driven (frees up TMR2 for other tasks)
  • IMPROVEMENT: In the unlikely event that a packet fails validation, the module will attempt to retrieve the packet instead of resetting the keyboard (up to 3 attempts)

Re: PS/2 Keyboard User Module

Posted: Tue Apr 19, 2016 9:00 pm
by animo3d
Hi... does anyone have this module... looks like is not longer available in the digital-diy website...

Thanks

Re: PS/2 Keyboard User Module

Posted: Tue Apr 19, 2016 11:57 pm
by Jerry Messina
It's still there, but you have to dig around to find it.

Here's a copy...

Re: PS/2 Keyboard User Module

Posted: Wed Apr 20, 2016 4:50 am
by animo3d
thanks...!

Re: PS/2 Keyboard User Module

Posted: Wed Apr 20, 2016 5:13 pm
by bitfogav
Just for reference the links can also be found at the bottom of the swordfish module page too.. I updated all the broken links sometime ago.. :roll:
http://www.sfcompiler.co.uk/wiki/pmwiki ... er.Modules