Shop OBEX P1 Docs P2 Docs Learn Events
PWMPAL Commands — Parallax Forums

PWMPAL Commands

alanealane Posts: 1
edited 2005-07-19 18:41 in BASIC Stamp
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

  • JoshuaJoshua Posts: 2
    edited 2005-07-19 18:30
    i noticed in the Parallax document PWMPAL (#280020) on page 8 there is some sample code.

    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
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-07-19 18:41
    Alane,

    The baudmode value also indicated polarity -- inverted baudmodes have larger values.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.