Author Topic: Problem with PBasic 'OUT' command  (Read 1733 times)

0 Members and 1 Guest are viewing this topic.

Offline BarnabyTopic starter

  • Jr. Member
  • **
  • Posts: 10
  • Helpful? 0
Problem with PBasic 'OUT' command
« 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
I am an amateur (very) robot builder.  By the last count, I have built:
1 (working) Robot
Have a look a it on my website!
http://electrolympics.bravehost.com

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,632
  • Helpful? 169
    • Society of Robots
Re: Problem with PBasic 'OUT' command
« Reply #1 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.

Offline BarnabyTopic starter

  • Jr. Member
  • **
  • Posts: 10
  • Helpful? 0
Re: Problem with PBasic 'OUT' command
« Reply #2 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
I am an amateur (very) robot builder.  By the last count, I have built:
1 (working) Robot
Have a look a it on my website!
http://electrolympics.bravehost.com

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,653
  • Helpful? 21
  • narobo.com
Re: Problem with PBasic 'OUT' command
« Reply #3 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
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,632
  • Helpful? 169
    • Society of Robots
Re: Problem with PBasic 'OUT' command
« Reply #4 on: January 26, 2008, 10:10:28 AM »
start -> settings -> control panel -> system -> hardware -> device manager

 


Get Your Ad Here