[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 579
  • Last Modified:

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?
0
FuturesTrader
Asked:
FuturesTrader
  • 2
  • 2
1 Solution
 
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
 
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now