Solved

Max speed of parllel port

Posted on 2001-06-24
2
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

In this article you will get to know about pros and cons of storage drives HDD, SSD and SSHD.
Great sound, comfort and fit, excellent build quality, versatility, compatibility. These are just some of the many reasons for choosing a headset from Sennheiser.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

690 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