Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

Discussion Groups | Rabbit-Semi | IBM PS2 keyboard decoder - issue

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

IBM PS2 keyboard decoder - issue - Marco Trapanese - Sep 4 12:49:45 2008

Hello!

I'm using the PS2 keyboard decoder library found in the files section
of this forum - thanks to Dave for sharing!

The main loop is very simple:

#use "PS2KEYBOARD.LIB"

void main() {
.
.
.
PS2K_Init();

for (;;) {
if (PS2K_KbHit()) decode_keyboard();
//msDelay(100);
}
}

I test if there is any char in the buffer and if so in the
decode_keyboard() I call PS2K_GetChar() to read the data.

It works but on my RCM4100 running at 60 MHz I experience a weird
behavior: sometimes I need to press several times a key to get a read,
others a short press leads to two or more calls.

I tried to add a delay in the main loop between 10 ms and 250 ms but
with no chance.

What should I do to obtain a reliable keyboard decoder?

Thanks
Marco / iw2nzm

------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )


Re: IBM PS2 keyboard decoder - issue - Marco Trapanese - Sep 20 11:14:51 2008

> I'm using the PS2 keyboard decoder library found in the files section
> of this forum - thanks to Dave for sharing!

> It works but on my RCM4100 running at 60 MHz I experience a weird
> behavior: sometimes I need to press several times a key to get a read,
> others a short press leads to two or more calls.

Nodoby uses this library?

Marco / iw2nzm

------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )