PS/2 Keyboard User Module

Coding and general discussion relating to user created compiler modules

Moderators: David Barker, Jerry Messina

Post Reply
gramo
Registered User
Registered User
Posts: 200
Joined: Tue Mar 20, 2007 6:55 am
Location: Australia
Contact:

PS/2 Keyboard User Module

Post by gramo » Sun Sep 26, 2010 10:25 am

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
digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples.

Australian distributor for the Swordfish Compiler

gramo
Registered User
Registered User
Posts: 200
Joined: Tue Mar 20, 2007 6:55 am
Location: Australia
Contact:

Post by gramo » Sun Oct 03, 2010 4:16 am

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)
digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples.

Australian distributor for the Swordfish Compiler

animo3d
Posts: 21
Joined: Sun Sep 18, 2011 6:02 am
Location: Monterrey Mexico

Re: PS/2 Keyboard User Module

Post by animo3d » Tue Apr 19, 2016 9:00 pm

Hi... does anyone have this module... looks like is not longer available in the digital-diy website...

Thanks

Jerry Messina
Swordfish Developer
Posts: 1235
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: PS/2 Keyboard User Module

Post by Jerry Messina » Tue Apr 19, 2016 11:57 pm

It's still there, but you have to dig around to find it.

Here's a copy...
Attachments
swKBD.zip
(5.7 KiB) Downloaded 115 times

animo3d
Posts: 21
Joined: Sun Sep 18, 2011 6:02 am
Location: Monterrey Mexico

Re: PS/2 Keyboard User Module

Post by animo3d » Wed Apr 20, 2016 4:50 am

thanks...!

bitfogav
Registered User
Registered User
Posts: 166
Joined: Sat Oct 09, 2010 1:39 pm
Location: United Kingdom

Re: PS/2 Keyboard User Module

Post by bitfogav » Wed Apr 20, 2016 5:13 pm

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

Post Reply