Shop OBEX P1 Docs P2 Docs Learn Events
Understanding Serout Sx/B baud rate and so on .. — Parallax Forums

Understanding Serout Sx/B baud rate and so on ..

dufflingduffling Posts: 73
edited 2005-04-14 04:23 in General Discussion
Im trying to workout something ..

If i program my Basicstamp to run my Serial LCD display , when i use serout , i set the baud rate to N9600 ,

If i duplicated the same program , same LCD , i can only get it to work using T9600

Is this because the logic on the output pins in Pbasic is inverted ? or opposite...

thanks again ..

·

Comments

  • BeanBean Posts: 8,129
    edited 2005-04-13 12:52
    Are you connecting the LCD serial pin directly to the stamp and SX I/O ?
    Can you post the code and/or schematic for each.

    It should be the same for both.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video Display Module" Available Now.

    www.sxvm.com

    "A problem well defined, is a problem·half solved."
    ·
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-04-13 14:58
    I've done lots of serial output to LCD displays with BASIC Stamps and SX/B and there is no conflict -- they work the same. Have a look at the SEROUT demo in the SX/B help file; you'll see that it uses "N9600" as the baud mode.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
  • dufflingduffling Posts: 73
    edited 2005-04-13 17:02
    yes i have the serial out pin direct to the LCD .. and the power connected in the usual way
    it has 3 pins .. serial .. and vss vdd
  • dufflingduffling Posts: 73
    edited 2005-04-14 04:23
    I think i have worked out what im doing wrong ..

    When i code for this LCD for the BS2 , In pbasic , i use the baud rate lcdbaud con 84 , when i code for bs2sx , i use lcdbaud con 240 which i understand is 8 bit no parity TRUE for this type of LCD


    my silly mistake..·I assume·this is the same as T9600 in sx/b ........

    thanks for the help.

    Post Edited (duffling) : 4/14/2005 5:45:37 AM GMT
Sign In or Register to comment.