Solved

Using Parallel Port for Input

Posted on 1998-08-03
2
223 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

697 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