|
-
Apr 24th, 2007, 09:25 AM
#1
Thread Starter
Addicted Member
-
Apr 24th, 2007, 03:47 PM
#2
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
-
Apr 24th, 2007, 05:55 PM
#3
Thread Starter
Addicted Member
Re: Controlling a digital I/O
 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.
 Originally Posted by Al42
Are the voltage levels on the pins changing?
No, not at all.
 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.
-
Apr 25th, 2007, 06:37 AM
#4
Thread Starter
Addicted Member
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?
-
Apr 28th, 2007, 02:11 PM
#5
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|