Shop OBEX P1 Docs P2 Docs Learn Events
Passing form BS2 to SX/B — Parallax Forums

Passing form BS2 to SX/B

glasoglaso Posts: 38
edited 2005-03-18 19:54 in General Discussion
I'm a BS2 user and, although, I've been improving my progrmming skills in Pbasic I'm far of being an expert. Now I want to take the next step (or jump) and begin experimenting with the SX chips and the SX/B compiler. What are the main differences between Pbasic and SX/B basic?...
Could I pass my programs from BS2 to SX/B without expending much time and loosing much functionality?
Would you recommend SX/B for a non expert (maybe a novice) in Pbasic?

Thanks!!!

Comments

  • YanirYanir Posts: 11
    edited 2005-03-18 16:12
    this doesn't answer your question directly, becuase i don't use SX/B, but i recently switched from BS1 to the SX, and it's not a huge transition, you can take all of the hardware concepts you learned on the BS series and jump right into the SX. The books that come with the kit are great you can dive right into assembly programming. They teach you everything you need to know when you need to know it.

    I upgraded when i needed a faster processor to make video signals and the BS1 was falling short.

    The biggest difference i found was how you do calculations. Not exactly what you would expect, but you'll see. I think in SX/B thats not an issue though.
    Good luck, and have fun.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-03-18 16:13
    You cannont simply load your BS2 programs into the SX/B compiler and run them -- they will need to be reworked. Don't fret, this is fun stuff and you'll learn a lot along the way. The best thing to do is download and install the SX-Key IDE, that way you can look at the SX/B help file. It has enough examples that you'll be able to start seeing the differences. In fact, you can attempt to compile your projects even before you get an SX-Key.

    So, the recommendation is to read and study the SX/B help file. Remember, SX/B is still very new so that's currently the best resource for SX/B. If you subscribe to Nuts & Volts magazine go back and have a look at the December '04 and January '05 issues -- I did projects with SX/B, including the "background serial" thing that a lot of BASIC Stamp users ask for.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
  • glasoglaso Posts: 38
    edited 2005-03-18 17:17
    Thank you Jon, I will follow your advice.... The important thing is that I don't need to know assembly, just learn this new kind of basic and start translating some stuff.
  • James NewtonJames Newton Posts: 329
    edited 2005-03-18 18:44
    http://www.sxlist.com/techref/microchip/seepicsrc/index.htm

    All the Basic Stamp commands with an explanation of how to do the same thing in assembly.

    The second listing on each page is in SXKey / SASM / Parallax assembler

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ---
    James Newton, Host of SXList.com
    james@sxlist.com 1-619-652-0593 fax:1-208-279-8767
    SX FAQ / Code / Tutorials / Documentation:
    http://www.sxlist.com Pick faster!



  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-03-18 19:54
    Glaso -- While you can succeed with the SX using SX/B only, it will really be to your benefit to learn assembly and integrate it into your programs.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
Sign In or Register to comment.