Quote:
Originally posted by
First, you must understand the concept behind the ports of the parallel port.
Data register (eg, port &H37A) - 8 lines out. This is pins 2 through to 9 in the parallel port connector (D0-D7 in the diagram)
Control register (port is data register +&H1) - 5 lines out (in the program anyway). This is pins 10, 11, 12, 13, 15 (marked Sx in the diagram).
Status register (port is data register +&H2) - 8 lines [i]in[/in]. Clicking 'Read' will get the status of those lines. Pins 1, 14, 16, 17.
All other pins (18, 19, 20, 21, 22, 23, 24, 25) are SG (system ground).
Just as a first go, shove the LED's +ve into, say pin 2 (D0 line). Now stick the other end into, say, pin 18 (system ground). Start the program, under "Data register" check "Bit 0 (D0, Pin 2)", then click send and the LED should light up. If not, check that your parallel port is at &H378, if not you will have to make changes to the code as it only works with &H378 - no code has been added to the comboboxes click event to change the UDT to other ports).