grv2k4
Newbie level 4
output data to lpt1
can anybody please explain the data patterns that is sent by the parallel port in (Turbo-C++ running under) Windows?
I created a custom LPT-connector by soldering the 16 wires(8 data bits, 8 Grounds) on to a 25 pin LPT male connector, and connected a number of LEDs on the other side of those wires. Then I created a C program to output data , using 0x3BC as the port address( i know this IS the correct port address) . However, the data displayed by the LEDs is random. If I issue 0xFF as the output, shouldn't ALL LEDs be lighted up? The result was however not that way.
I tried different combinations, (e.g. 0x00,0x04,0xf0 etc.), but the data patterns as shown by the LEDs does not seem to make any sense. Please Help!
--PeacE--
can anybody please explain the data patterns that is sent by the parallel port in (Turbo-C++ running under) Windows?
I created a custom LPT-connector by soldering the 16 wires(8 data bits, 8 Grounds) on to a 25 pin LPT male connector, and connected a number of LEDs on the other side of those wires. Then I created a C program to output data , using 0x3BC as the port address( i know this IS the correct port address) . However, the data displayed by the LEDs is random. If I issue 0xFF as the output, shouldn't ALL LEDs be lighted up? The result was however not that way.
I tried different combinations, (e.g. 0x00,0x04,0xf0 etc.), but the data patterns as shown by the LEDs does not seem to make any sense. Please Help!
--PeacE--