ps2 keyboard port maximum data rate?

I'm programming a hardware keyboard wedge and wondering about the data rate. What maximum data rate might I expect from a desktop's ps2 keyboard port?
FuturesTraderAsked:
Who is Participating?
 
Dave BaldwinFixer of ProblemsCommented:
No, that interface is much slower than that.  10KHz data rate at 11 bits per character is only 900 bytes per second.  But this is a bidirectional interface and the controller in the computer can take over and send status bytes back to the keyboard.  Or worse yet, interrupt the current transmission and require it to be resent.  Since PS2 was a keyboard or mouse interface, speed was not considered to be an issue.
0
 
inetmanCommented:
keystrokes per minute is the number your looking for. So 255 should be a good size, as I do not know of anyone that types that many keys per second. normal people type 30-60 wpm. I can do slightly better.. so if you set your buffer to that size it should work great.
0
 
Dave BaldwinFixer of ProblemsCommented:
This page looks like it has the info: http://www.computer-engineering.org/ps2protocol/  Note the variable clock rate, 10-16.7KHz.
0
 
FuturesTraderAuthor Commented:
would a safe assumption be that a 10khz clock rate translates to a single character worst case delay of ~100 microsecs?
0
 
FuturesTraderAuthor Commented:
hmmm... actually a worst case delay would occur when the character arrived at the port at exactly the worst time in the clock cycle.. or if the clock is generated in the keyboard the character would be sent at that time. Either way would the worst case single character delay be about 200microsecs?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.