Thread: programming the parallel port to control device

  1. #1
    Griffmaster
    Join Date
    Feb 2005
    Location
    Glasgow, Scotland, UK
    Posts
    3

    programming the parallel port to control device

    hi there i am new to the forum, I am working on being able to write a program in C that will allow me to control the parallel port. The reason for this is that I would like to be able to control a light bulb from the PC, thru a DAC, ADC and breadboard etc. I know that the port is 0x378 which can be set, but is there any other specific details I need to know?

    Your advice and suggestions would be much appreciated.

    Griffmaster

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Search: Key Word(s): parallel, port
    Oh look
    http://cboard.cprogramming.com/showt...=parallel+port
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Griffmaster
    Join Date
    Feb 2005
    Location
    Glasgow, Scotland, UK
    Posts
    3
    thanks for the link, i will be using windows 95/98 and MS visual studio 6 as compiler. most of the info i have found has been on linux. Just wondering if anyone has ever done this before and what the best way to approach it, have not used C to control hardware, just used it to write some simple programs.

    thanks

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    So did you do the search yourself, or did you just click on the first link offered to you?

    I can only assume that you gave up and posted another reply before you got to the "For Windows 95/98/NT/2000/Me/Xp" part of the first link I posted.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 02-29-2008, 01:29 PM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. Segmentation Fault - Trying to access parallel port
    By tvsinesperanto in forum C Programming
    Replies: 3
    Last Post: 05-24-2006, 03:28 AM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  5. Full control of parallel port?
    By The V. in forum Windows Programming
    Replies: 1
    Last Post: 10-28-2001, 03:24 PM