Society of Robots - Robot Forum
Software => Software => Topic started by: Barnaby on December 28, 2007, 12:13:51 PM
-
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
-
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.
-
Thanks, but I meant computer port. I can't find out how to specify a computer port to output the data to.
Barnaby
-
To have easy use of a computers serial or parallel port just use RoboRealm or even Visual Basic
-
start -> settings -> control panel -> system -> hardware -> device manager