Continue to Site

Welcome to EDAboard.com

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.

How to take inputs from D0 - D8 of printer port ?

Status
Not open for further replies.

omicron

Junior Member level 2
Joined
Sep 14, 2004
Messages
21
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Pakistan
Activity points
135
Use of Data pins of LPT

How we can take inputs from D0 - D8 of printer port
 

Re: Use of Data pins of LPT

omicron said:
How we can take inputs from D0 - D8 of printer port

Not all parallel ports are bidirectional, you can only do this on bidirectional ports.

If you need only a few inputs you can use some of the status lines.

You can find more information here:
http://www.nullmodem.com/DB-25.htm

Look under: DB-25 pins commonly used for the IBM-PC parallel port

best regards
 

Re: Use of Data pins of LPT

I came to know that using pin 5 of control pin. Does this work?
 

Re: Use of Data pins of LPT

omicron said:
I came to know that using pin 5 of control pin. Does this work?

If you are talking about LPT the answer is no as pin5 is a data line 3 which is not bidirectional in most ports.

The only inputs you have are pins 10 to 15.

best regards
 

Re: Use of Data pins of LPT

Just like on a PIC or so. Use the address 278 LPT2 or 378 LPT1 to access the ports.

Depending on the program that you use.
But the law stays the same. Access the address then read from or write to the
address. Always watch the size of the data you send.

Just make sure you set in the BIOS that the port is Bi-directional.

Tell me what program you use and I could send you a little example.

Enjoy and good luck.

:sm32:
 

Re: Use of Data pins of LPT

Sorry here is the pin layout:

1 -strobe
2-9 D0-7
10 -Ack
11 Busy
12 PE
13 Select
14 -Auto Feed XT
15 -Error
16 -Init
17 -Select in
18-25 GND (mostly shielding)

:sm35:
 

Re: Use of Data pins of LPT

I will be using Labwindows for the interfacing task. I have read some where, that using the LPT port in ECP mode will make it bidirectional. But the problem lies with the controlling of that bidirectional mode.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top