PWMPAL Commands
alane
Posts: 1
I am new to using PWMPAL commands. As I read the Parallax document PWMPAL (#28020)· page 4, the BAUD that they use for a BS2 is 6.· I am confused with that number. In previous SEROUT commands for Basic Stamp·I have been using a BAUD rate of 9600 corresponding to a BAUD mode of 16468. Where does the "6" that the document is using comes from? Thanks.
Comments
in the sample code underconstants it states this:
'
[noparse][[/noparse] Constants ]
#SELECT $STAMP
#CASE bBS2, BS2E, BS2PE
T9600 CON 84
T19K2 CON 32
T38K4 CON 6
#CASE BS2SX, BS2P
T9600 CON 240
T19K2 CON 110
T38K4 CON 45
#ENDSELECT
PpBaud CON T38K
______________________________________________ I believe that the 6 stands for 38.4 Baud.
But i could be wrong hopefully someone can confirm.
Joshua
Post Edited (Joshua Morris) : 7/19/2005 6:33:15 PM GMT
The baudmode value also indicated polarity -- inverted baudmodes have larger values.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax