Society of Robots - Robot Forum

Software => Software => Topic started by: Barnaby on December 28, 2007, 12:13:51 PM

Title: Problem with PBasic 'OUT' command
Post 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
Title: Re: Problem with PBasic 'OUT' command
Post by: Admin on January 03, 2008, 09:30:21 AM
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.
Title: Re: Problem with PBasic 'OUT' command
Post by: Barnaby on January 05, 2008, 12:38:35 PM
Thanks, but I meant computer port.  I can't find out how to specify a computer port to output the data to.


Barnaby
Title: Re: Problem with PBasic 'OUT' command
Post by: airman00 on January 05, 2008, 07:16:31 PM
To have easy use of a computers serial or parallel port just use RoboRealm or even Visual Basic
Title: Re: Problem with PBasic 'OUT' command
Post by: Admin on January 26, 2008, 10:10:28 AM
start -> settings -> control panel -> system -> hardware -> device manager