Success at last!
I found some documentation on the control register, and use pins 12 and 14; they have to be pulled low with a resistor to ground. I've experiemented, and found that the highest resistance I can use is right around 1.4k ohms.
This presents just a minor problem: instead of just ...
Search found 9 matches
- Thu Apr 03, 2008 5:48 am
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 6247
- Tue Apr 01, 2008 10:05 pm
- Forum: QBasic / QuickBasic related
- Topic: A motorcycle 'slow race' timing system
- Replies: 1
- Views: 2284
A motorcycle 'slow race' timing system
What I have in mind is a low-cost timing setup, used to measure the time between two events -- both of which would be the interruption of a light beam. Extreme accuracy isn't necessary -- 0.01 seconds would be fine, so no high-speed industrial stuff needed.
I want to measure the amount of time a ...
I want to measure the amount of time a ...
- Tue Apr 01, 2008 9:34 pm
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 6247
- Mon Mar 31, 2008 7:48 pm
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 6247
- Sat Mar 29, 2008 11:55 pm
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 6247
Re: Parallel port
I think your calculation of 956 being the port address is incorrect. 956 is possibly being written to by the system thereby returning decimal 255 every time.
Actually the 956 is correct, normal for an IBM Thinkpad. I can go into Device Manager and examine LPT1, and the resources listed are 03BC ...
Actually the 956 is correct, normal for an IBM Thinkpad. I can go into Device Manager and examine LPT1, and the resources listed are 03BC ...
- Fri Mar 28, 2008 10:23 pm
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 6247
- Thu Mar 27, 2008 11:31 pm
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 6247
- Thu Mar 27, 2008 5:44 am
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 6247
Output to parallel port
I've read several forums and they all seem to agree on the way to output data to the parallel port, using OUT. Makes sense.
The question, then, is: why doesn't this work?
956 = output port on an IBM laptop.
d%=inp(956)
print d%
o%=118 : out 956,o%
d=inp(956) : print d%
o%=23 : out 956,o%
d%=inp ...
The question, then, is: why doesn't this work?
956 = output port on an IBM laptop.
d%=inp(956)
print d%
o%=118 : out 956,o%
d=inp(956) : print d%
o%=23 : out 956,o%
d%=inp ...
- Thu Mar 27, 2008 4:10 am
- Forum: QBasic / QuickBasic related
- Topic: Qbasic slow execution speed
- Replies: 11
- Views: 9235