Solved

ps2 keyboard port maximum data rate?

Posted on 2011-09-13
5
536 Views
Last Modified: 2012-05-12
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
Comment
Question by:FuturesTrader
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:inetman
ID: 36533412
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
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 36533424
This page looks like it has the info: http://www.computer-engineering.org/ps2protocol/  Note the variable clock rate, 10-16.7KHz.
0
 

Author Comment

by:FuturesTrader
ID: 36533515
would a safe assumption be that a 10khz clock rate translates to a single character worst case delay of ~100 microsecs?
0
 

Author Comment

by:FuturesTrader
ID: 36533522
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
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 36533576
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction: When experiencing some peculiar problem with the functioning of your PC, how many times has it happened that you look for a solution and even google can’t help? It could be that you are one of the only few people on earth who ma…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now