Jump to content
Electronics-Lab.com Community

Input to the Parallel port


Recommended Posts

I used c++/vc++ and took outputs from the data pins of the parallel port(pin2-pin9) but the problem remains when i want to send a signal to the parallel port.

Some web sites say that the data pins are bidirectional, but then again they say that input has to be through the status pins.

but my problem remains with the fact that i cannot use the built in function in c inport/inportb to send a bit to the parallel port

this is what i tried to do.

use a switch which gives a 5v when turned on. i connected the switch to pin 2 of the parallel port n wrote a program in turbo c. but i was totally lost.

Could someone please give me a solution/suggestion in the most layman's term how to send a bit/signal to the parallel port. :'(

Link to comment
Share on other sites

It also depends upon which operating system you are using. Newer operating systems like XP are not as easy to do this for security reasons.
I think someone posted a copy of Parallel Port Complete in the Resources forum of this site. Download it. It should cure your problem since it has snippets of sample code to accomplish what you are trying to do.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...