Thread: input to parallel port prob

  1. #1
    Registered User
    Join Date
    Jun 2009

    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..


  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    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?

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    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!

    Hope is the first step on the road to disappointment.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Moved to Tech Board.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Jun 2009
    its ok... the problem is solved.i was using windows xp and borland c 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..

Popular pages Recent additions subscribe to a feed

Similar Threads

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