printer ports - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

printer ports

I know how to send data out of a printer port. I can make little LEDs glow, but, how can I record data coming in, and, what pins on the printer port do this. I

intend on using this function within an external C++ routine.


  • Wouldn't this be a question for the C++ board?

    Anyway, I'd imagine you could do it with the IOSTREAM

    functions, streaming input and output from LPT1.

    It's worth noting that not all ports are bidirection,

    i.e. some are write only. I'd suggest getting a book on

    hardware for reading the actual pins from the ports, etc.

    If you just want the port numbers, go to Control Panel,

    System, and click on the device driver for the LPT port.

    The last page on it's driver menu should list the resources

    used, which will include the port number.


Sign In or Register to comment.