Questions:
hi,all
I am doing a PS2 keyboard interfacing project with the microcontroller but meet some strange problems:
1. It usually sends out two or three bytes when a key is pressed, but none of them is the value in the keyboard translation table.
2. When connecting the keyboard to a pc at the same time, the bytes sent out are different from those without connection to pc. And they are always changing. However, the pc can get the input without any error.
3. The clock input ususally seems causing 12 cycles when a byte is being sent, but according to the sources online it should be 11 cycles.
Could anyone give some thoughts on those problems to me ??
I am also wondering whether we need to do some initializations to the keyboard. Do anyone have any ideas about that??
Thanks in advance