C Board  

Go Back   C Board > Community Boards > Tech Board

Reply
 
LinkBack Thread Tools Display Modes
Old 06-11-2009, 01:32 AM   #1
Registered User
 
Join Date: Jun 2009
Posts: 9
input to parallel port prob

hello.. the prob is that when give status port a certain input and also to control port through open collector hex invertor,, the data output automatically switches to decimal value of '4' i.e (00000100) .. and also the 'init' (pin 16) of control port is not responding to any value. however when i give any value other than '0' to control port (0x37a) the init value responds...


ps: plz dont just reply telling to look for the query on parallel port in previous posts b/c i have and havnt found any so far. and also i hav googled as well..


thanks
tariq7868 is offline   Reply With Quote
Old 06-11-2009, 02:27 AM   #2
Deathray Engineer
 
MacGyver's Avatar
 
Join Date: Mar 2007
Posts: 3,211
Considering you pretty much ignored the fact this is a C forum and your question is about parallel ports and not C, I'll ignore your statement that you googled.

So with that said, find the documentation and check your program again. I'm not about to go rush off to figure out what you've done wrong... which is probably the problem. Oh, and one more thing... it helps to tell what "certain input" is causing unexpected behavior when you want to complain about it. Are we supposed to guess what input was given?
__________________
MacGyver is offline   Reply With Quote
Old 06-11-2009, 02:38 AM   #3
+++ OK NO CARRIER
 
quzah's Avatar
 
Join Date: Oct 2001
Posts: 10,179
I always use my psychic powers to figure out what is wrong, and assume they'll use theirs to see what the answer I came up with is!


Quzah.
__________________
Hundreds of thousands of dipshits can't be wrong.


Are you up for the suck?
quzah is offline   Reply With Quote
Old 06-11-2009, 02:54 AM   #4
C++ Witch
 
laserlight's Avatar
 
Join Date: Oct 2003
Location: Singapore
Posts: 10,211
Moved to Tech Board.
__________________
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar

Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
laserlight is offline   Reply With Quote
Old 06-11-2009, 12:35 PM   #5
Registered User
 
Join Date: Jun 2009
Posts: 9
its ok... the problem is solved.i was using windows xp and borland c compiler..it was just that that there should be 1 assigned to every line of the output of control port then input values can fed...but thanks anyway..
tariq7868 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on Accessing parallel port Luciferek C++ Programming 6 06-16-2008 05:36 PM
Parallel Port: Sending the signals as binary h3ro Tech Board 7 08-25-2007 12:22 PM
About aes gumit C Programming 13 10-24-2006 03:42 PM
programming the parallel port to control device griffmaster2005 C Programming 3 02-14-2005 07:50 AM
Help needed: Output to Parallel port. Ingsy C Programming 4 10-10-2001 12:06 PM


All times are GMT -6. The time now is 01:17 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22