Solved

Max speed of parllel port

Posted on 2001-06-24
2
243 Views
Last Modified: 2008-03-17
Whats the maximum speed for parllel port communication
I wrote a program something like this ( algoriuthm below)

Record the time
Write to parllel port 5000000 times 12
Record time

The program takes 11sec. Is that some what slow. I am getting the speed only as around 1Mhz. Also i am implementing the above using c. Is it the c overheads like increment of counter in for loop and stuff thats making it slow?
Should i switch to assembly for faster speed?
0
Comment
Question by:harisnshaw
  • 2
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
ID: 6222770
That's about the limit, 1M Byte/sec.  In fact, that is better than most.  Many PCs won't handshake data at the serial port much faster than 500 KB/s or so...

Going to assembly will not help much if at all because most of the delay is in the overhead for the parallel port and the slowness of the legacy I/O port hardware that implements the parallel port.  If you were to watch your code on a hardware analyzer, you'd see that 99% of the time is spent waiting on the hardware.  So you can optimize your code all day and at best improve the 1% to 0.5%.  In other words, it's a "drop in the ocean".
0
 
LVL 32

Expert Comment

by:jhance
ID: 6224201
Hello???
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Stuck in voice control mode on your Amazon Firestick?  Here is how to turn it off!!!
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

765 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