Search found 9 matches
- Thu Apr 03, 2008 5:48 am
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 3614
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 taking...
- Tue Apr 01, 2008 10:05 pm
- Forum: QBasic / QuickBasic related
- Topic: A motorcycle 'slow race' timing system
- Replies: 1
- Views: 1507
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 mot...
- Tue Apr 01, 2008 9:34 pm
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 3614
Great news about port 966, did you try 956?. D'oh! Maybe that explains the screen color weirdness. Yes, it's a typo, and it's in the code. So when I 'try' 956, I'm back to where I was. The more I read about this, the more confusing it gets... I'll be happy if I can just find a way to read into VB t...
- Mon Mar 31, 2008 7:48 pm
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 3614
Aha! Results. I used a DOS 6.22 diskette, booted into DOS and used Valerie's code, and it worked just like it was supposed to. I modified it a bit: defint d,o,p,x portid=966 DOG: CLS d% = INP(portid) : PRINT d% print "*" inp (portid) out portid,118 print INP(portid) for x=1 to 221 OUT portid,x print...
- Sat Mar 29, 2008 11:55 pm
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 3614
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-03B...
- Fri Mar 28, 2008 10:23 pm
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 3614
Not really having much luck here. To avoid any NT complications, I'm using a DOS 6.22 boot disk, running in strictly DOS, and adjusted the code like this: defint d,o DOG: CLS d% = INP(956) : PRINT d% o% = 118 : OUT 956,o% d% = INP(956) : PRINT d% o% = 23 : OUT 956,o% d% = INP(956): PRINT d% END All ...
- Thu Mar 27, 2008 11:31 pm
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 3614
OK, I downloaded 4.5. Haven't played with it much yet, but it looks like it has quite a number of new features to explore & play with. The HELP is built-in now! I'll still keep my manual -- all 8 pounds of it, or whatever it weighs... Anyway -- apart from the mistake in line 4 (there should be d% in...
- Thu Mar 27, 2008 5:44 am
- Forum: QBasic / QuickBasic related
- Topic: Output to parallel port
- Replies: 12
- Views: 3614
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(956)...
- Thu Mar 27, 2008 4:10 am
- Forum: QBasic / QuickBasic related
- Topic: Qbasic slow execution speed
- Replies: 11
- Views: 6184
Notice that, by right-clicking on the icon, selecting Properties, selecting the Screen tab, then Full Screen, QB will open with a full screen, from there on. One can always go back and select the Window option as the start-up default. Geez, I've been here about six minutes and I've already learned ...