Shop OBEX P1 Docs P2 Docs Learn Events
HomeWork vs. BOE boards: LCD incompatibility issue — Parallax Forums

HomeWork vs. BOE boards: LCD incompatibility issue

BigMikeBigMike Posts: 34
edited 2008-02-09 18:30 in BASIC Stamp
Hello Parallax,

For a while now I've been using the BASIC Stamp HomeWork Board to run the Parallax 16x2 backlit LCD screen using the following basic setup lines:
LcdBaud         CON     T19K2



Looking through all my files I have, somewhere along the lines I changed it to the following:
LcdBaud         CON     32




Ok, now both of these will work just fine when ran on the HomeWork board, but when I try the CON T19K2 command on my new Board of Education board running the BS2px24 chip, I get a "Undefined symbol" error, and if I change it to CON 32, it will send the code and run, but the text on my LCD screen is all messed up, it won't clear the screen, the backlight is not working, it keeps writing random stuff on the LCD.

So my question is this: What initialization code should I be using with the BS2px24 chip to use the Parallax 16x2 backlit LCD panel?

Thank you very much in advance!
BigMike

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-02-08 21:32
    The BS2px product brief (www.parallax.com/Portals/0/Downloads/docs/prod/stamps/BASICStamp2px.pdf) gives the information you need under the SEROUT command. It has other timing information that you may need for your programs as well.

    There's an example in the Parallax Basic Manual of the use of compile-time conditional statements to define Baud constants for the
    different models of Stamps. It hasn't been updated to include the BS2px. You probably used that example in your program to define the T19K2 constant.

    Post Edited (Mike Green) : 2/8/2008 9:38:50 PM GMT
  • BigMikeBigMike Posts: 34
    edited 2008-02-08 22:07
    Ahhh, I have that document and I never thought about looking there, sorry about that.


    EDIT: I just checked it out and it is one huge section smilewinkgrin.gif

    I did find the different baud rates and their values and symbols, so thank you [noparse]:)[/noparse]
  • BigMikeBigMike Posts: 34
    edited 2008-02-09 02:31
    Well, I still cannot figure this out.. I have tried many, many different setups and the best I can manage is an underscore carriage.

    I have found example scripts for a BS2px chip, but not the BS2px24 chip (which I have). Perhaps there is a difference?

    If anyone has a serial LCD display operating on a BS2px24 chip, could you share with me the beginning LCD initialization section that I may copy into my scripts so I can start using this thing?!

    Thanks!!
    BigMike
  • Mike GreenMike Green Posts: 23,101
    edited 2008-02-09 03:48
    BigMike,
    All you should need are the Baud constants. The examples you can download from Parallax
    from the webstore page for the display should work with the BS2px with the Baud constant
    changes. By the way, the BS2px and BS2px24 are the same. There has not been a BS2px40.
    #SELECT $STAMP
      #CASE BS2, BS2E, BS2PE
        T2400       CON     396
        T9600       CON     84
        T19K2       CON     32
      #CASE BS2SX, BS2P
        T2400       CON     1021
        T9600       CON     240
        T19K2       CON     110
      #CASE BS2PX
        T2400       CON     1646
        T9600       CON     396
        T19K2       CON     200   ' Probably not quite right, but close
    #ENDSELECT
    
  • BigMikeBigMike Posts: 34
    edited 2008-02-09 18:30
    Mike,

    Thanks again for your help. I thought I already tried that header info, I will try it again later this afternoon or tomorrow when I start installing my circuit into its application.

    I'll let you know if I get it or not!

    Thanks
    BigMike
Sign In or Register to comment.