Thread: Using the parallel port in C

  1. #1
    Registered User
    Join Date
    Jul 2008

    Using the parallel port in C


    I haven't connected much hardware to my PC before, so I thought it would be interesting to do so. I want to use my parallel port to input and output data, possibly doing something like this:

    I'm using plain C, and not C++ or anything.


  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    It is possible, but if you have a modern OS (such as Windows NT onwards or any version of Linux), you can't write directly to the parallel port - you will need a driver to access the port itself. The linked page shows how this works.

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

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. Parallel Port to USB controller and outb()
    By coletek in forum Linux Programming
    Replies: 1
    Last Post: 06-05-2009, 06:57 AM
  3. Replies: 3
    Last Post: 02-29-2008, 01:29 PM
  4. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  5. Segmentation Fault - Trying to access parallel port
    By tvsinesperanto in forum C Programming
    Replies: 3
    Last Post: 05-24-2006, 03:28 AM