Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
You don't need to install drivers to do this. Just earch for inpout32.dll and download it to your system32 folder. In you code, import (or Lib) it in your code and you can use the Inp32() and Out32() functions anywhere. It works with C++, VB and I'm even using it with C#.
I looked at all the solutions I could find and this worked the best and was the easiest to use. You can even download the source code if you want to customize it.
A couple of things to be aware of:
1. If you use the Inp32() function, make sure that your parallel port supports bi-directional data and be sure to set it in your BIOS for bi-directional. Otherwise it won't work.
2. Make sure you understand the registers. You have to write bits to the control register in order to read inputs.
3. If you need to do any real-time continuous processing, like reading switches or generating continuous pulses, be aware that the best resolution you will get is about 15 ms, the Windows process service rate.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.