Results 1 to 5 of 5

Thread: [RESOLVED] [HELP NEEDED] Controlling a digital I/O

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Posts
    160

    Resolved [RESOLVED] [HELP NEEDED] Controlling a digital I/O

    Has anyone here any experience with this?

    I have to send some signals to a digital I/O in order to turn on and off some leds connected to a couple of its pins.

    I'm using inpout32.dll and I'm not able to get this working.

    I've attached a copy of the schemes. I just use the DIO-O5, DIO-O6 and DIO-O7 outs (pins 15, 16 and 17).

    Any help?

    EDIT: It seems the picture deforms the page style, sorry, not intended at all.
    Attached Images Attached Images  
    Last edited by Neverbirth; Apr 25th, 2007 at 06:43 AM.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Controlling a digital I/O

    Are the pins active or passive?

    If they're passive, are you pulling them up?

    Are the voltage levels on the pins changing?

    Post your code for writing to a pin.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Posts
    160

    Re: Controlling a digital I/O

    Quote Originally Posted by Al42
    Are the pins active or passive?

    If they're passive, are you pulling them up?
    Well, since English is not my native language I don't know what you mean. If you are talking about the 'power factor' (I know this would not be the right term to use here... but I guess you know what I'm trying to say...) it shouldn't matter, I didn't build the board with the leds, and AFAIK it was built with this motherboard in mind, so all these things are already taken care of.

    Quote Originally Posted by Al42
    Are the voltage levels on the pins changing?
    No, not at all.

    Quote Originally Posted by Al42
    Post your code for writing to a pin.
    My code is basically the same from the sample... as already said I use inpout32.dll and this is what I have:

    VBCODE Code:
    1. Out &H4E, &H87
    2. Out &H4E, &H87
    3. Out &H4E, &H7
    4. Out &H4F, &H9
    5. Out &H4E, &HF4
    6. Out &H4F, &H0

    If I get all this, the last line is the one that sets the pin voltage. I'd like to just turn off the last two, and since I don't care about the others I've used a 0, but I've also tried some other values with no luck.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Posts
    160

    Re: Controlling a digital I/O

    Dunno, after talking with a person in charge of this it doesn't seem I'm doing anything incorrectly... I wonder if that is indeed the case, or if the manual is bad, or there is some Windows XP restriction involved...

    Any help?

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Posts
    160

    Re: [HELP NEEDED] Controlling a digital I/O

    Well, a couple of days ago a mate happened to find out that the manual was indeed bad and instead of

    Out &H4E, &HF4

    It was

    Out &H4E, &HF3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width