More Parallel Port Control

Instead of going in the assembly route to control a  parallel port we can use QBasic and get the same results. With QuickBasic you can compile the code and use BATCH scripts to run them or even if you’re crafty enough you can make a simple program to control it.

Here is a simple test script in basic to turn on all of the port’s pins and turns them off in pulses. You can use a LED or a Multimeter as a output to see if it works.

CLS
DO
OUT (888), 255
SLEEP 5
OUT (888), 0
SLEEP 1
LOOP WHILE INKEY$ = “”

This puts all of the pins high for five seconds and low for one second.

Be aware that not all parallel ports use the same address.

Advertisements

2 thoughts on “More Parallel Port Control

    • Believe it or not but you can do a lot in QBasic. If I could remember Basic programming better (It’s been 20 years) I could do a lot more of a program but nevertheless a simple little script is enough to get things going.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s