1 Attachment(s)
[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.
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.
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:
Out &H4E, &H87
Out &H4E, &H87
Out &H4E, &H7
Out &H4F, &H9
Out &H4E, &HF4
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.
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?
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