Hi,
The title of my question is a little misleading. I am currently playing about with parallel port programming in windows xp using the C and the inpout32.dll (needed for access to the port).
I have an LED connected to pin 25 (ground) and pin 5 (one of 8 data outs), and using a program I have written that uses the oup32(loca, data) function in the inpout32.dll I can make the led turn on and off.
The wierd thing is that if i set 0x37A to 0xFF the led turns off. If I set 0x37A to 0x00 the led turns on!
I dont understand why this is; surely it should be the other way around. I know some pins are inverted, but none of the data lines are.
Also, could someone explain to me what the memory address 0x378 to 0x37F is used for. Obviously most of it is used for the 25 data pins, but what about the rest???
Any and all suggestions or help would be greatly appreciated.
Many thanks,
jOe
we are all of us living in the gutter.
But some of us are looking at the stars.
The title of my question is a little misleading. I am currently playing about with parallel port programming in windows xp using the C and the inpout32.dll (needed for access to the port).
I have an LED connected to pin 25 (ground) and pin 5 (one of 8 data outs), and using a program I have written that uses the oup32(loca, data) function in the inpout32.dll I can make the led turn on and off.
The wierd thing is that if i set 0x37A to 0xFF the led turns off. If I set 0x37A to 0x00 the led turns on!
I dont understand why this is; surely it should be the other way around. I know some pins are inverted, but none of the data lines are.
Also, could someone explain to me what the memory address 0x378 to 0x37F is used for. Obviously most of it is used for the 25 data pins, but what about the rest???
Any and all suggestions or help would be greatly appreciated.
Many thanks,
jOe
we are all of us living in the gutter.
But some of us are looking at the stars.