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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parallel Port Programming

Status
Not open for further replies.

Galilea

Programmer
Sep 11, 2000
4
0
0
GB
I am trying to program my parallel port for input/output data but having difficulties. Can anyone please lend my a hand? [sig][/sig]
 
Follows are Parrallel port information. If you dont use WinNT or 2000 only use _outp and _inp commands ,or use Assembler to read/write. You should know that when the pin is free it is logic 1

1– Data strobe 14 - Auto line feed
2– D0 15 - Error
3– D1 16 - Initialize Printer
4– D2 17 - Select Input
5– D3 18 - Return / Ground
6– D4 19 - Return / Ground
7– D5 20 - Return / Ground
8– D6 21 - Return / Ground
9– D7 22 - Return / Ground
10– Acknowledge 23 - Return / Ground
11– Busy 24 - Return / Ground
12– Paper End 25 - Return / Ground
13– Select

Base Address + 0 à $0378 -D0 .. D7
Base Address + 1 à $0378 -7. Bit Busy
6. bit Acknowledge
5. bit Paper end
4. bit Select
3. bit Auto line feed


No connected status

1- Data strobe - 1
10 - Acknowledge - 1
11 - Busy - 1
13 - Select - 1
14 - Auto line - 1
15 - Error - 1
16 - Initialize Prn - 0
17 - Select Input - 0
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top