Shop OBEX P1 Docs P2 Docs Learn Events
bs2sx programming different from bs2? — Parallax Forums

bs2sx programming different from bs2?

raulduke1011raulduke1011 Posts: 17
edited 2008-04-09 02:19 in BASIC Stamp
I have been using a bs2 from the start as I have been learning about microcontrollers and the boe-bot for the past several months. Yesterday I received my bs2sx which I ordered because of the increased speed and storage. However, I was caught off guard to find that the when I loaded my existing boe-bot code (I did change the bs2 directive to bs2sx) the program failed as my boe-bot no longer roams around but rather has an epileptic seizure. As I'm breaking it down it really looks like the main problem lies in the servo control. From looking at the stamp reference manual it appears that the command "pulsout 1, 1100" on the bs2 is roughly equal to "pulsout 1, 100" on the bs2sx. Is this correct? Does the increased performance also effect command usage? Does anyone have an answer or perhaps a pointer to where I can find this info myself? Thanks.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-04-08 15:30
    A number of the statements use different timing. For example, the serial statements (SERIN / SEROUT) use different Baud mode constants which are listed in the manual in the chapters on these statements. Similarly, statements that do timing (other than PAUSE) use a different time "tick". There are examples in the manual of the use of conditional compilation to adjust for this. Look in the index for the section on conditional compilation.
  • raulduke1011raulduke1011 Posts: 17
    edited 2008-04-08 15:46
    Thanks Mike. That's what I thought but just wanted some confirmation.
  • ercoerco Posts: 20,260
    edited 2008-04-09 02:19
    Have·a look at http://www.parallax.com/dl/docs/cols/nv/vol2/col/nv71.pdf for converting BS2 programs to others, including bank switching.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
Sign In or Register to comment.