Shop OBEX P1 Docs P2 Docs Learn Events
How to set baud rate in lcd 4X20 — Parallax Forums

How to set baud rate in lcd 4X20

mikedivmikediv Posts: 825
edited 2010-06-17 01:22 in General Discussion
Hi guys I am using the parallax 4x20 lcd in my code there is a command """"""Baud··········· CON···· 32············· ' 19.2 Kbps (BS2)""""

What is the value to make it 9600 and can you please tell me how to make that calculation so I know it for myself

I can see that baud con 32 is equal to 19.2 so how do I calculate for other baud rates
thanks
·

Comments

  • hover1hover1 Posts: 1,929
    edited 2010-06-15 19:29
    Mike,

    Are you using a Basic Stamp? The Baudmode will be different with the different varients of the chip. You did RTFM didn't you [noparse]:)[/noparse]

    Page 423 of the Basic Stamp Manual 2.2.

    Jim
    mikediv said...
    Hi guys I am using the parallax 4x20 lcd in my code there is a command """"""Baud··········· CON···· 32············· ' 19.2 Kbps (BS2)""""

    What is the value to make it 9600 and can you please tell me how to make that calculation so I know it for myself

    I can see that baud con 32 is equal to 19.2 so how do I calculate for other baud rates
    thanks
  • electrosyselectrosys Posts: 212
    edited 2010-06-15 21:47
    @mikedv

    Look here at this web page, there is a fine buadmode table in both HEX and Decimal for all Basic Stamp modules and much more: http://www.emesystems.com/BS2rs232.htm
  • mikedivmikediv Posts: 825
    edited 2010-06-16 18:29
    Thanks guys ,, Yes Hover I did the reason I posted this Oh by the way basic stamp 2· or BS2 ,, I do know how to set baud rate on some code it seems to be differant I am unclear ,,normally I see baud tx-9600 or whatever· 19200 ,4800 but I have not run into baud con 32 I understand baud and constant but I do not understand why the value of 32 I can not seem to put it all together I am not even sure if 32 is a HEX or Dec
    looking at the chart Electro posted,,thank you very much by the way. I can not resolve the 32 so I guess maybe the question is how do I determine what the value is dec, HEX, Bin I do know binary so leave that out but I hope I Am explaing my problem correctly ,, the cod eI am using is just the sample code that comes with the 4X20 display you can download from the store and the 4X20 LCD


    Post Edited (mikediv) : 6/16/2010 6:34:58 PM GMT
  • electrosyselectrosys Posts: 212
    edited 2010-06-17 01:22
    mikede, as you know and you can see it at the Baudmode Table here: (http://www.emesystems.com/BS2rs232.htm) the 32 is Decimal = $20 HEX = 19200 buad for BS2, BS2e & BS2pe, and the rest are in the Table.

    If you got some times to read this web page (and the other pages like this)·there is some serial communications knowledge more then·basic understanding of it, which we need to work with microcotrollers. I think that, pages like this must be read more then one time and try to take some notes from the interesting parts and then look for more info like that.

    The Serial Communication is quite wide subject, there is a lot of writers with books, articals and web pages covering the subject, and yet there is more who writing about it, just like·some other electronics subjects, every day·samething new, with new boundaries!



    Post Edited (electrosys) : 6/17/2010 8:17:32 AM GMT
Sign In or Register to comment.