Solved

Max speed of parllel port

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

Suggested Solutions

Title # Comments Views Activity
Best RAM for a PC 4 63
WiFi hub advice for a training workshop 7 35
Determine exact dimensions of screen 5 45
Windows 7 Professional 6 59
This is about my first experience with programming Arduino.
Great sound, comfort and fit, excellent build quality, versatility, compatibility. These are just some of the many reasons for choosing a headset from Sennheiser.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 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