Shop OBEX P1 Docs P2 Docs Learn Events
data transfer between basic stamp and motorola — Parallax Forums

data transfer between basic stamp and motorola

ArchiverArchiver Posts: 46,084
edited 2004-03-05 18:28 in General Discussion
hi, i'm doing a project, using motorola 68HC11 as master to control
other 5 basic stamps. 4 basic stamps are used to control servo motor
and sensor that mounted on servo motor, so that it can sense at
different angles. Another basic stamp is to control solenoid valve
to move the robot.
i want that 4 basic stamps to send the sensor reading to motorola,
izit possible to do that? which command i should use? izit SEROUT?
Can SERIN and SEROUT command be used to send data to motorola?
with the sensor reading, motorola will make decision to where the
robot moves, so i wan to send the instruction to the basic stamp
that control solenoid valve.
Is it possible for me to do this project? hope will get reply from u
soon, THANKS...

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-03-05 16:30
    At 02:49 PM 3/5/04 +0000, syheng2002 wrote:
    >hi, i'm doing a project, using motorola 68HC11 as master to control
    >other 5 basic stamps. 4 basic stamps are used to control servo motor
    >and sensor that mounted on servo motor, so that it can sense at
    >different angles. Another basic stamp is to control solenoid valve
    >to move the robot.
    >i want that 4 basic stamps to send the sensor reading to motorola,
    >izit possible to do that? which command i should use? izit SEROUT?
    >Can SERIN and SEROUT command be used to send data to motorola?
    >with the sensor reading, motorola will make decision to where the
    >robot moves, so i wan to send the instruction to the basic stamp
    >that control solenoid valve.
    >Is it possible for me to do this project? hope will get reply from u
    >soon, THANKS...
    >
    >You can use synchronous (SHIFTIN/SHIFTOUT) or asynchronous (SERIN/SEROUT)
    serial
    commands to communicate with the HC11. Synchronous will be fixed rate of speed,
    and with asynchronous you can set the speed (BAUD RATE via BAUDMODE) to fit your
    needs. Either will get the job done.

    Just as a warning, there are only certain Motorola SPI transfer formats that the
    PBASIC Stamp accepts. I believe they are formats ZERO and ONE, but don't quote
    me on that. The SPI formats available can be found in the M68HC11 Reference
    Manual
    (Motorola Reference Number M68HC11RM/AD) which is free for the asking from
    Motorola. The following link may be outdated [noparse][[/noparse] http://www.mot.com/sps/ ] or use
    the following link to view all the documentation on the HC11 from which you can
    download or order what you choose to: [noparse][[/noparse] http://tinyurl.com/ywn64 ].

    Regards,

    Bruce Bates
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-05 18:28
    That might be easier if the master were also a Stamp!

    But yes, SERIN and SEROUT are probably the best bet for exchange of
    data. The Mototola uP has one SCI port to help with the task, so it
    would be possible to hang all of the slave processors and the master
    on one bidirectional serial buss, in a wired OR configuration. Use
    the open baudmodes in the BASIC Stamp SEROUT commands. The Stamp
    manual discusses this type of wired OR configuration. You have to
    come up with an address protocol from the master that gives
    permission for slave device at a time to talk back with its sensor
    readings.

    -- Tracy



    >hi, i'm doing a project, using motorola 68HC11 as master to control
    >other 5 basic stamps. 4 basic stamps are used to control servo motor
    >and sensor that mounted on servo motor, so that it can sense at
    >different angles. Another basic stamp is to control solenoid valve
    >to move the robot.
    >i want that 4 basic stamps to send the sensor reading to motorola,
    >izit possible to do that? which command i should use? izit SEROUT?
    >Can SERIN and SEROUT command be used to send data to motorola?
    >with the sensor reading, motorola will make decision to where the
    >robot moves, so i wan to send the instruction to the basic stamp
    >that control solenoid valve.
    >Is it possible for me to do this project? hope will get reply from u
    >soon, THANKS...
Sign In or Register to comment.