input to parallel port prob

This is a discussion on input to parallel port prob within the Tech Board forums, part of the Community Boards category; hello.. the prob is that when give status port a certain input and also to control port through open collector ...

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

  2. #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?

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    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.
    Hope is the first step on the road to disappointment.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,409
    Moved to Tech Board.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

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

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, 06: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

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