LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-01-2007, 03:13 PM   #1
pete1234
Member
 
Registered: May 2005
Distribution: Slack, FreeBSD,NetBSD, OpenBSD, Open Solaris, Minix
Posts: 172

Rep: Reputation: 30
Parallel Port Power Off


I'm wondering if there is a way to turn power to the parallel port off. I'm drawing 3.5V from the port to power a small circuit, and I'd like to be able to control it's power state. Any help is appreciated.
 
Old 03-01-2007, 04:48 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
What pins are you using for power and can you provide a description of your circuit? It is easy to create a program to toggle data or status lines. Google linux parallel port programming for some examples. I also suggest googling for information on how the parallel port works. BTW you can damage the port very easily if you draw to much current.

Last edited by michaelk; 03-01-2007 at 04:51 PM.
 
Old 03-01-2007, 08:09 PM   #3
pete1234
Member
 
Registered: May 2005
Distribution: Slack, FreeBSD,NetBSD, OpenBSD, Open Solaris, Minix
Posts: 172

Original Poster
Rep: Reputation: 30
I've googled, but I couldn't find a simple solution to just turn off power to the port. I'm using pin 6 and pin 18 (pins 25 through 18 are soldered together). There's no circuit to describe, I'm just fooling around. I'd finished my serial port radio transmitter and I had a few parallel cables lying around and figured I'd give those a whirl.
 
Old 03-02-2007, 06:11 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
BTW pin 6 is data bit 4. Its not a matter of turning on/off the port but changing the state of the desired data/status bit(s). The parallel port is a TTL device i.e. A logic 0 is 0 - 0.8 and a logic 1 is 2.4 - 5 volts.

http://www.faqs.org/docs/Linux-mini/...amming.html#s9
http://www.epanorama.net/circuits/parallel_output.html
http://parapin.sourceforge.net/

As previously stated you can eaisly damage the parallel port.
 
Old 03-02-2007, 06:59 PM   #5
pete1234
Member
 
Registered: May 2005
Distribution: Slack, FreeBSD,NetBSD, OpenBSD, Open Solaris, Minix
Posts: 172

Original Poster
Rep: Reputation: 30
Thanks for the reply. I guess I'll look into parapin.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Parallel Port & Serial Port device identification helpmeforlinux Linux - Hardware 3 01-02-2007 01:15 AM
Parallel port isra SUSE / openSUSE 1 10-03-2006 08:22 AM
About parallel port yugandhar Linux - General 1 07-11-2006 07:02 AM
Where is the parallel port? kwyjibo99 Linux - Hardware 5 07-20-2005 05:47 PM
What's using my parallel port?! DiBosco Linux - Hardware 10 06-20-2004 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration