Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find the Parallel port adress?

Status
Not open for further replies.

mirr2001

Programmer
Mar 29, 2002
24
DK
I'm just trying to gain access to my parallel port, and have found out, that it is possible to do this with the _outp() function (Visual C++). But in order to use this function I need the adress of the port. Is there any function or standard value I could use?
 
In Windows device manager you can check to see which base port number is associated with the parallel port.
Example for Windows 98:
-Go to control panel
-Double click on System
-Select the Device Manager Tab
-Browse down to Ports (COM & LPT)
-You should see a list of LPT and COM ports here
-Select the LPT port you want to use (Double click)
-Select the Resources Tab
-Here you will see the Input/Output Range
Example: 0378-037A /*So your base port number is 0x378*/
-Data register is 0x378
-Status register is 0x379
-Control register is 0x37A

Hope this helps.

Annu

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top