The computer has a parallel port. Your suggestion is?
The computer has a parallel port. Your suggestion is?
COM1 should be found at address (dec) 888. Databit D0 is found on DB25 pin #2, and ground is any of pins 18-25.
You need a resistor in this case, as the parallel port can't source more than a couple mA of current safely. You'll break it if you try to drive only a raw LED. Connect the anode to pin 2 and the cathode to one leg of a 470 ohm resistor, and the end of the resistor to pin 18.
Or just use a high impedance 'scope probe or multimeter to see that the voltage on pin 2 swings high (either to +3.3 or 5.0 volts) when the pin is triggered.
Here's a diagram with more information:
http://kartikmohta.com/tech/parallelport/
That said, try the IOTest utility, with a port 888, value 255 (that'd be all 8 data pins high, just for testing). Or value '1' will drive just pin 2. DirectRT and MediaLab will both let you set the duration of the output pulse, from 1 to many tens or hundreds of mS.
Last edited by JEC; 09-26-2013 at 07:24 PM.
Actually Com 1 is port 1016.
I think you meant Lpt 1 is port 888.
I will test your suggestion in the morning.
Thank You
Sam
Confident this will work and we can set the pulse duration to whatever we want, how will the program be scripted to turn that data bit on at the exact time a tone is being sent to the subject?
I have constructed the circuit. Positive of the led to pin 2, negative of the led to the resistor 250 to 470 ohm range, resistor to pin 19 on the connector.
When I plug in the connector to lpt1, the led is already lit. All data pins are 3.3v changing the bios for epp or ecp makes no difference. Once the machine boots all data lines are high. Verified this on a second computer.
Last edited by ARLUser; 09-27-2013 at 09:14 AM. Reason: ommission
I just attached my test device to the computer that will be used for data collection. The led is lit as soon as the device is plugged into the parallel port.
I run the ttl i/o test and enter 888 as the port, set byte value to 0 and send byte now. It turns the led off. So monitor port 888 = 0. I enter 1 for the byte value and 500ms for duration, send byte now, and the led turns on then off. a value of 255 for byte also works. now the question is hoe to program the lpt port to turn on at the same time a stimulus tone is being output.
Last edited by ARLUser; 09-27-2013 at 09:35 AM. Reason: typo