Solved

Using Parallel Port for Input

Posted on 1998-08-03
2
222 Views
Last Modified: 2010-04-26
Hi,
I'm trying to use the parallel port for inputing a couple of switches into a laptop computer.  I have a requirement to be completely standalone, running just on the batteries of the laptop.  That leaves me with a problem of providing a 5V source to use to hold the input bits high to allow the switch to ground them out and provide the input (this is how I think I'll have to do it).  My question is, "Can I use the data bits safely to provide a constant 5V source by holding a logic 1 (or zero as the case may be) on them?"  I am planning a load resister of 10k.  My plan will be to put the resistor between pins 2(D0) and 11(BSY) and the switch between pin 11 and 18(GND).  I'll read the switch input in the BSY bit of the status register.  Will this work safely?  Thanks.
Mark
0
Comment
Question by:mustang070597
2 Comments
 

Author Comment

by:mustang070597
ID: 1122121
Edited text of question
0
 
LVL 2

Accepted Solution

by:
warmcat earned 100 total points
ID: 1122122
Mustie -

Most implementations already have a pullup resistor on BUSY, which is usually something between 1K and 10K.  Your additional resistor will cause no problems but will usually be unnecessary.  The 10K value is playing it very safe: there are no issues if you chose a 1K resistor.  Your whole plan will work fine.

-Andy
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Multiple times a day Computer loses internet connection 17 101
Need a device to send message to phone when power is out 3 101
Thoughts on PC Doctor 11 62
S1200BTL Rack Mount Case 4 31
We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question