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!

Using the Parallel Port Control Lines

Status
Not open for further replies.

porto99

Technical User
Nov 1, 2004
96
GB
I can use the 8 data lines of this port OK, but when it comes to using the other 4 output lines on the control section of the port I have no luck.

I keep getting 0x0C back when I read thses lines (no matter what I set it to):-

Note Using PortTalk for Windows 2000:

Code:
int ReadPortLPT1C(void)
{
int value = inportb(0x37a);
return value;

}

void WritePortLPT1C(int newData)
{
outp(0x37a, newData);
}

As I said it works fine for the data lines (8) at address 0x0378.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top