keyboardfpgaspartan

How to test PS/2 device


I have a logitech keyboard with a ps/2 connection. I also have a Baysis2 fpga that I would like to use to read keyboard input. The problem is, the keyboard doesn't seem to be receiving power. I may be wrong, but non of the lights on the keyboard turn on when I connect it to my board.

My question is: is this normal? I assume that the lights should turn on since the board is supposed to power the keyboard.

Can anyone provide me with some simple code to definitively test whether or not my keyboard is receiving data? Nothing I've tried has worked.


Solution

  • The LEDs on a keyboard need to be enabled by the host controller. They are defaulted to "off". If the keyboard is working can be tested if PS2_CLK is active when you press a key, because the keyboard is the bus master (clock source).

    Further reading: PS/2 Protocol in Detail