ON 20040303@2:35:05 AM at page: http://www.piclist.com/techref/member/DZ-yahoo-/index.htm#38049.1076851852 Douglas Zhang[DZ-yahoo-] 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