Solved

Max speed of parllel port

Posted on 2001-06-24
2
240 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

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

14 Experts available now in Live!

Get 1:1 Help Now