| Products | Support | Sales | Company | |
BASIC Stamp II SX Baud SettingsUser manuals for our products include demo programs for the Parallax BASIC Stamp II (BS2). A new high-speed variant of the BS2, called the BS2-SX, requires different baudmode settings than the original. This tip tells how to set the correct baudmode for your BS2-SX. Baudmodes, Old and NewWhat Parallax calls a 'baudmode' is a value that specifies the bit timing and other parameters for its SEROUT 0,$4054,["Hello!"]In some cases, you'll see the baudmode value set as a constant whose name, rather than the number itself, is used throughout the program.
N9600 CON $4054 ' 9600 baud, inverted.
To change the baudmodes in a program for the BS2-SX, you must find all of the
For applications other than our products, there are a lot of possible baudmodes. These are listed in the data sheets for the BS2-SX. If the
SEROUT 0,$4054,["Hello!"]
SEROUT 0,$40F1,["Hello!"]If the program uses a named constant to define the baudmode, just locate that line and make the change once:
N9600 CON $4054 ' 9600 baud, inverted.
N9600 CON $40F1 ' 9600 baud, inverted.
That's all you need to know to update the baudmode settings for the new BS2-SX. See the Parallax documentation for more information on the BS2-SX's higher speed and additional features. |