المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Controlling a Parallel Port



C# Programming
10-10-2010, 02:01 AM
I have written a program in C# using inpout32.dll which, when you press a button, it sets all the data pins on the paralell port to high by setting the address as 888 and the decimal value 255 to that address. I have heard that when a pin on the port is a high, it is outputting a voltage of 5v, but it shows about 1.5v constantly, not changing, while none of the other data ports do anything. I have a feeling this is not working because I either have the wrong address, or I am setting the wrong value.



In my BIOS, it says that the address is 378h, which I know if 888 in decimal, which is why I am setting it as the address. I also have the mode set to EPP. Can somebody tell me what I am doing wrong?