Shop OBEX P1 Docs P2 Docs Learn Events
Serial comms at 115,200 baud? — Parallax Forums

Serial comms at 115,200 baud?

Kevin HortonKevin Horton Posts: 21
edited 2007-10-09 23:33 in BASIC Stamp
I need to chose a microcontroller for an application where I will need to receive RS-232 data at 115,200 baud. The info that I can find on the Parallax site talks about max speed for comms to a PC, but I've seen some references that suggest that faster speeds are possible.

Can any of the BASIC Stamps receive RS-232 data at 115,200 baud?

If none of these products can do this could you recommend another microcontroller I should consider? I also need to monitor 5 discrete inputs (e.g. momentary switches to control modes) and drive 6 LEDs. I will be using a Mac running OS X to write the software, and load it to the microcontroller.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Kevin Horton
Ottawa, Canada

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2007-10-06 18:09
    You came to the right places for high speed.· The BS2sx can do so, it clocks at 50Mhz. Also, the BS2p which has several pluses over the BS2sx including a bit less power consumption and a larger available instruction set in PBasic.· The BasicStamp will only handle these speeds without flow control.

    Alternatively, you can use an SX28 protoboard and SX/B to program. That would be less expensive and you could have genuine RS-232 level drivers or RS-422/485 drivers on installed on the protoboard. It will easily run at 50Mhz, but can go to 80-100Mhz

    And, if you really want more speed, the Propeller at·80Mhz·can go beyond 115k, provide video and keyboard interface, and generally knock your socks off at 160MPS.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "Everything in the world is purchased by labour; and our passions are the only causes of labor." -- David·Hume (1711-76)········
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan

    Post Edited (Kramer) : 10/7/2007 6:16:07 AM GMT
  • JonathanJonathan Posts: 1,023
    edited 2007-10-06 18:15
    I have used a 2p to talk to a CMUcam at 115k, and it worked. Can't say more than that, but it did function.

    Jonathan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
  • Kevin HortonKevin Horton Posts: 21
    edited 2007-10-06 19:08
    Thanks for the info. I'm sure I will be back here with many more questions if I end up going with a BASIC Stamp.

    I'll look into the SX28 too.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Kevin Horton
    Ottawa, Canada
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2007-10-07 06:52
    I forget to mention the latest addition to the BasicStamps, the BS-2px at 32Mhz. Even more features and software capabilities. It has a voltage comparitor that can be used to monitor for low batteries. That comes in handy in remote battery powered sites and R/C flight control.

    So there is really a lot to explore.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "Everything in the world is purchased by labour; and our passions are the only causes of labor." -- David·Hume (1711-76)········
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • Kevin HortonKevin Horton Posts: 21
    edited 2007-10-07 11:03
    I'll be studying the BS-2sx and BS-2px in more detail, as they are certainly candidates. The SX-28 and Propeller are not useful to me, as there is no OS X development environment. I am quite interested in the Propeller, but I am not prepared to purchase a new computer, and learn how to keep Windows secure.

    I am also considering the Arduino family of designs, which seem to do what I need, and they have an open source OS X development environment.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Kevin Horton
    Ottawa, Canada
  • SSteveSSteve Posts: 808
    edited 2007-10-09 23:33
    You can't use the BS2px with OS X. Parallax never released a library for it, so MacBS2 can't compile for it. You can use anything else in the Basic Stamp family, though.

    Parallax is a fantastic company with some great products, but they've been very clear that multi-platform support is not in the plans in the foreseeable future.

    I was lucky enough to have an old Win2k laptop that I was able to take out of mothballs to use with the SX and Propeller. I made one project with the SX28, but anything I do in the future will probably be with the Prop. It's a brilliant design that's worth suffering through Windows for.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    OS-X: because making Unix user-friendly was easier than debugging Windows

    links:
    My band's website
    Our album on the iTunes Music Store
Sign In or Register to comment.