Author Topic: Need advice on ProAtom 24 seiral communication  (Read 1451 times)

0 Members and 1 Guest are viewing this topic.

Offline Robotboy86Topic starter

  • Robot Overlord
  • ****
  • Posts: 139
  • Helpful? 0
Need advice on ProAtom 24 seiral communication
« on: July 09, 2007, 12:46:16 PM »
I am looking to use the BasicAtom Pro24 as a sub system for a more advanced robot, its basic job will to be taking in input from 4-6 sensors and making motors adjusting of some sort.  The other thing I was looking at for this, is communication to the main CPU.  I was planning to do this via Serial, but there are problems:

1.  The basic stamp has to sit and wait for a communication.

2.  While waiting, it does nothing else.  This would result in robotic failure :(

So I was browsing other basic options. and saw the basic atom pro 24m..

it claims to have a buffered serial communication system.. 

which would basically allow it to recieve serial data while not listening, correct?

Could someone explain what it means by buffered?

Offline KambeiX

  • Full Member
  • ***
  • Posts: 79
  • Helpful? 0
Re: Need advice on ProAtom 24 seiral communication
« Reply #1 on: July 09, 2007, 01:32:22 PM »
robotboy, most microcontrollers with hardware serial communications (like pic, avr, and stamps) have a buffer that recieves a character and holds it on memory while you decide what to do with it.

I don't know with basic stamps, but with "normal" microcontrollers, there are interrupts that trigger when a serial commmunication is detected and also they have special registers for that, so in your code you ask "Is there data in the buffer?" and it will return either a 0 or 1.

Look in the PBASIC reference if there is an interruption for serial communications or at least a command that will let you check if there is data available.

Offline Robotboy86Topic starter

  • Robot Overlord
  • ****
  • Posts: 139
  • Helpful? 0
Re: Need advice on ProAtom 24 seiral communication
« Reply #2 on: July 09, 2007, 01:39:33 PM »
Thats what I had thought, but I read about the basic stamps that they had nothing like that, so I was unsure. 

Appreciate the response,

Cheers

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,585
  • Helpful? 169
    • Society of Robots
Re: Need advice on ProAtom 24 seiral communication
« Reply #3 on: July 11, 2007, 06:56:40 PM »
Just send your serial data continuously so the robot wont have to wait?

Or have your robot use the last serial command until it recieves a new one.

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1785 Views
Last post March 06, 2007, 10:12:02 PM
by Charlie1138
8 Replies
3691 Views
Last post May 02, 2007, 05:02:10 AM
by Admin
5 Replies
1837 Views
Last post March 21, 2008, 09:08:08 PM
by Admin
1 Replies
1164 Views
Last post March 25, 2008, 08:31:13 AM
by Steve Joblin


Get Your Ad Here

data_list