faster port access

This is a discussion on faster port access within the C Programming forums, part of the General Programming Boards category; i used inpout32.dll in my program to give me control over the printer port, but it is to slow. I ...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    17

    faster port access

    i used inpout32.dll in my program to give me control over the printer port, but it is to slow. I am using it to control a Infra red Circuit and speed is Crucial .

    Is there a faster way to access this port.
    When i find myself in times of trouble. mother mary comes to me, speaking words of wisdom, let it be C

  2. #2
    Registered User
    Join Date
    Oct 2004
    Posts
    120
    Don't use the printer port Google for the specs for that port and see what the physical HW is capable of supporting throughput wise. Since that will probably be depressing, you might not even bother to look at ways of compressing the signal (which might not even be possible if you can't change the IR circuit) to get better throughput.

    All in all I'd say your out of luck.

  3. #3
    Registered User
    Join Date
    Oct 2004
    Posts
    120
    Heres one clip from googling...

    decent link for info

    The Enhanced Parallel Port (EPP)
    The EPP was developed in 1992 by Intel, Xircom and Zenith and is sometimes referred to as the Fast Mode Parallel Port. EPP can operate at close to the ISA Bus speed, providing about ten times the data rate of the older Parallel Port modes. Transfer rates in the order of 500K to 2MBytes per second are possible. This is achieved by allowing the hardware contained in the port to provide flow control, (hand shaking) rather than have the service routines do it.

    The IEEE incorporated the EPP standard into its document 1284-1994 but because some minor changes they made to the 1992 version of the standard, we now have two incompatible standards for EPP. There is the original EPP Standards Committee version 1.7, and the IEEE 1284 version. Because the differences were only minor, new peripherals can be designed to cope with the two variations, but older peripherals made to the original EPP 1.7 standard may not work with the newer IEEE 1284 ports.

  4. #4
    Registered User
    Join Date
    Apr 2002
    Posts
    17
    i have it working perfectly in dos so i know the printer port can do the job. it is just inpout32.dll is a slow way to control the port.
    When i find myself in times of trouble. mother mary comes to me, speaking words of wisdom, let it be C

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,649
    You'll want to use GiveIO or UserPort to give your process access to the IN and OUT instructions - then you can do it in assembly

    I talk about it here.

    gg

  6. #6
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    i though the topic read "faster porn access"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Parallel Port IO ops not working properly
    By microtechno in forum Linux Programming
    Replies: 16
    Last Post: 06-08-2009, 12:33 PM
  2. Can't Read From Serial Port
    By HalNineThousand in forum Linux Programming
    Replies: 14
    Last Post: 03-20-2008, 05:56 PM
  3. Serial port read..can someone tell me..
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 06-27-2002, 08:21 AM
  4. Need help or info about serial port communication
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 01-08-2002, 12:48 PM
  5. Need help to access COM port in C++
    By rizmayo in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2001, 02:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21