Solved

ps2 keyboard port maximum data rate?

Posted on 2011-09-13
5
540 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 83

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 83

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dell optiplex 3020 - power light blinks Orange 3 319
Do I Need a New Power Supply for My PC? 6 78
Dell server memory configuration on R410 9 93
Desktop upgrades 39 65
Hello It is a very old trick to use a ram disk in order to boost PC performances, in the past, when in home environments the fastest common devices were floppy disks a part of the very small ram memory available was used to create a virtual hard …
I have purchased two new systems and both are now Universal Extensible Firmware Interface (UEFI) based. UEFI is replacing BIOS for the desktop PC. It is a Linux based firmware with enough robustness it can communicate with a website without loading …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

786 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