Shop OBEX P1 Docs P2 Docs Learn Events
serout — Parallax Forums

serout

jcleaverjcleaver Posts: 17
edited 2006-02-11 15:36 in General Discussion
new to the basic stamp
trying to setup a display using a 1 pin serial lcd (at89c2051 ic)
cannot get display to work
using bs2x
not alot of information with the lcd but seem to be set for 9600 baud

some of there example code serout txd 9600[noparse][[/noparse] "9" cr]
cannot use this code with my stamp ver
any help???confused.gif

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-02-10 22:26
    You should post the code you are using now so we can see what might be wrong with it.· Plus you really should try (Google) to get more information on this display or at least a datasheet.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • jcleaverjcleaver Posts: 17
    edited 2006-02-10 22:32
    thanks for the quick responce

    have tried all the sample·programs for the serout



    plus just a simple

    main:

    serout 1, 16780, [noparse][[/noparse]"hello", cr]

    pause 1000

    goto main

    tried many number for the baud display is connected to pin 1
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-02-10 23:31
    Perhaps the signal is true, not inverted.· I use a template that makes SEROUT/SERIN baudmode parameters easy to set -- no matter what BS2 module is being used.· That template is attached.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • jcleaverjcleaver Posts: 17
    edited 2006-02-10 23:57
    thanks will try and let you know
  • jcleaverjcleaver Posts: 17
    edited 2006-02-11 00:08
    here my completed program

    still not working??



    · ' =========================================================================
    '
    '·· File.......
    '·· Purpose....
    '·· Author..... Jon Williams -- Parallax, Inc.
    '·· E-mail..... jwilliams@parallax.com
    '·· Started....
    '·· Updated.... DD MMM YYYY
    '
    '·· {$STAMP BS2sx}
    '·· {$PBASIC 2.5}
    '
    ' =========================================================================


    '
    [noparse][[/noparse] Program Description ]


    '
    [noparse][[/noparse] Revision History ]


    '
    [noparse][[/noparse] Conditional Definitions ]


    '
    [noparse][[/noparse] I/O Definitions ]


    '
    [noparse][[/noparse] Constants ]

    #SELECT $STAMP
    · #CASE BS2, BS2E, BS2PE
    ··· T1200······ CON···· 813
    ··· T2400······ CON···· 396
    ··· T4800······ CON···· 188
    ··· T9600······ CON···· 84
    ··· T19K2······ CON···· 32
    ··· TMidi······ CON···· 12
    ··· T38K4······ CON···· 6
    · #CASE BS2SX, BS2P
    ··· T1200······ CON···· 2063
    ··· T2400······ CON···· 1021
    ··· T4800······ CON···· 500
    ··· T9600······ CON···· 240
    ··· T19K2······ CON···· 110
    ··· TMidi······ CON···· 60
    ··· T38K4······ CON···· 45
    · #CASE BS2PX
    ··· T1200······ CON···· 3313
    ··· T2400······ CON···· 1646
    ··· T4800······ CON···· 813
    ··· T9600······ CON···· 396
    ··· T19K2······ CON···· 188
    ··· TMidi······ CON···· 108
    ··· T38K4······ CON···· 84
    #ENDSELECT

    SevenBit······· CON···· $2000
    Inverted······· CON···· $4000
    Open··········· CON···· $8000

    Baud··········· CON···· T9600


    '
    [noparse][[/noparse] Variables ]


    '
    [noparse][[/noparse] EEPROM Data ]


    '
    [noparse][[/noparse] Initialization ]

    Reset:


    '
    [noparse][[/noparse] Program Code ]

    Main:
    txd CON 1

    · here:

    · SEROUT TxD,baud,[noparse][[/noparse]"Hello world", CR]
    · PAUSE 1000

    · GOTO here
    · END


    '
    [noparse][[/noparse] Subroutines ]
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-02-11 00:33
    Without providing better information on the LCD you're trying to talk to nobody will be able to help. Do you have a link to a data sheet?

    And did you try inverted mode?· If not, change the Baud defintion line to this:

    Baud··· CON···· Inverted | T9600

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • dandreaedandreae Posts: 1,375
    edited 2006-02-11 00:35
    I know that the Hitachi 44780 chips work with the BASIC Stamps, I'm not sure about the Atmel chips?· Parallax carries a serial LCD for $29.95, here is a link for more information:· http://www.parallax.com/detail.asp?product_id=27976


    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Tech Support
    dandreae@parallax.com
    Http://www.parallax.com

    ·
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-02-11 00:37
    I think he's using one of those dirt-cheap, barely documented Chinese serial "backpacks" that one can get from eBay for a few bucks. As I remember, other customers tried them too and found that the few dollars saved was not worth the headache and frustration....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-02-11 04:25
    hmm, yeah I remember someone who got one of those, later Ill see if I can dig up the thread, they too had many problems with it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·1+1=10
  • jcleaverjcleaver Posts: 17
    edited 2006-02-11 15:36
    That saying the least so much for cheap very little product info
    did get it working ended being 8 bit 9600 no parity (240) still cant control the cursor properly
Sign In or Register to comment.