Software > Software

Problem with PBasic 'OUT' command

(1/1)

Barnaby:
Hi,
I've just recieved an ancient copy of PowerBasic, and the most useful commands for robotics seem to be the input and 'OUT' commands.  The syntax is stated as:

OUT port#, byte

But I'm stuck with the port# bit.  How do you find what number to put there to specify a paralell port or com port.  How do you do it?
Thanks,
Barnaby

Admin:
The datasheet for your microcontroller will specify when pin goes to which port letter and number.

If you can't find a datasheet, you can probably guess and measure the pins with a multimeter to see which one changes.

Barnaby:
Thanks, but I meant computer port.  I can't find out how to specify a computer port to output the data to.


Barnaby

airman00:
To have easy use of a computers serial or parallel port just use RoboRealm or even Visual Basic

Admin:
start -> settings -> control panel -> system -> hardware -> device manager

Navigation

[0] Message Index

Go to full version