Shop OBEX P1 Docs P2 Docs Learn Events
BS2sx question — Parallax Forums

BS2sx question

Blackbird455Blackbird455 Posts: 124
edited 2007-09-26 14:17 in BASIC Stamp
Are there any differences in the programming language between the BS2sx and the BS2?
I see that the BS2 supports 42 PBASIC Commands, while the BS2sx supports 45. What are the additional 3 in the SX?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Noli nothis permittere te terere

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-09-25 17:04
    Download the current PBasic manual (here: www.parallax.com/dl/docs/prod/stamps/web-BSM-v2.2.pdf). There's a listing of commands starting on page 124 with indications of which Stamp models provide that command. The additional 3 are RUN, GET, and PUT.
  • Blackbird455Blackbird455 Posts: 124
    edited 2007-09-25 17:12
    Ok thanks........but other than those three , it still programs the same?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Noli nothis permittere te terere
  • Tracy AllenTracy Allen Posts: 6,664
    edited 2007-09-25 17:35
    All the Stamps program the same, using the STAMPW.EXE IDE. Many programs that you write can be programmed into any of the Stamps and they will operate the same. Nonetheless, there are some differences in timing you have to be aware of, as the 'sx is faster than the vanilla BS2. The programs will run faster, so if you have a program loop that flashes an LED, it might flash faster on the 'sx. But an instruction like PAUSE 1000 will cause a 1 second delay on any of the Stamps, so if you use that to determine the flash rate, they will be the same. Some parameters such as those that determine the baud rate for communication or the units for pulse measurement are different, too, so adjustments may be necessary. There are programming templates available that can automatically adjust the parameters for different Stamps you might want to program. If you are thinking about purchase, also consider the BS2p series, which have additional capabilities.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • Blackbird455Blackbird455 Posts: 124
    edited 2007-09-25 18:49
    Where can I find a schematic for the BS2sx OEM without the serial connection like this one http://www.parallax.com/dl/docs/prod/schem/bs2sxrevd.pdf?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Noli nothis permittere te terere
  • JSWrightOCJSWrightOC Posts: 49
    edited 2007-09-25 19:32
    What you might be looking for is the pinout and data sheet for the SX microcontroller. A0 and A1 connect to the I2C EEPROM, A2 and A3 are for the RS-232 serial port interface. B0-B7 are I/O pins 0-7 and C0-C7 are I/O pins 8-15. Then there's power, ground, reset, and the crystal connections. RTCC is not used and should be tied to ground.
  • Blackbird455Blackbird455 Posts: 124
    edited 2007-09-26 02:48
    Thanks all !!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Noli nothis permittere te terere
  • Blackbird455Blackbird455 Posts: 124
    edited 2007-09-26 13:46
    In the above mentioned schematic , the 10k resistor net Parallax PN 151-01032 cannot be found in their inventory. I am assuming that you could just make this out of 4(ea) 10k 1/4 watt resistors , right??

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Noli nothis permittere te terere
  • Mike GreenMike Green Posts: 23,101
    edited 2007-09-26 14:17
    Yes, you can substitute individual 10K resistors. The resistor pack saves on space, maybe on cost, and on assembly effort.
Sign In or Register to comment.