Shop OBEX P1 Docs P2 Docs Learn Events
Display problems — Parallax Forums

Display problems

ArchiverArchiver Posts: 46,084
edited 2003-02-05 13:11 in General Discussion
Hi,
I'am using the BS-2p40 together with a BPI-216 LCD-display. When is
start running the code (see bellow). I can see sometimes a test -
message. Only after 1 second, the display shows only some weird
characters. I've checked the dip-switches on the back, and the seemed
in the good position. I've also tested the same application with
another display, so I dont think that's the problem. Is there maybe
something wrong with my code ?

Thanks

Hans



'{$STAMP BS2p}

N9600 con $4054
I con 254
CLR con 1
pause 1000
serout 0,n9600,[noparse][[/noparse]I,CLR]
'the display is connected to P0 of the stamp
pause 1
serout 0,n9600,[noparse][[/noparse]"message"]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-02-04 21:37
    In a message dated 02/04/2003 16:21:46 Eastern Standard Time,
    herrhanz@y... writes:


    > N9600 con $4054
    > I con 254
    > CLR con 1
    > pause 1000
    > serout 0,n9600,[noparse][[/noparse]I,CLR]
    > 'the display is connected to P0 of the stamp
    > pause 1
    > serout 0,n9600,[noparse][[/noparse]"message"]
    >
    >

    Your code is wrong. Write:
    N9600 con 16468 (or the HEX number)For Hans.
    I con 254
    clr con 1
    L1 con 128
    L2 con 192

    serout 0, N9600, [noparse][[/noparse]I, clr]
    serout 0, N9600, [noparse][[/noparse]L1, "Hello"]
    serout 0, N9600, [noparse][[/noparse]L2, "Goodbye"]

    The test message appears when Vdd is applied to the display serial pin at
    startup.

    Sid



    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-04 21:38
    In a message dated 02/04/2003 16:21:46 Eastern Standard Time,
    herrhanz@y... writes:


    > I'am using the BS-2p40 together with a BPI-216 LCD-display. When is
    > start running the code (see bellow). I can see sometimes a test -
    > message. Only after 1 second, the display shows only some weird
    > characters. I've checked the dip-switches on the back, and the seemed
    > in the good position. I've also tested the same application with
    > another display, so I dont think that's the problem. Is there maybe
    > something wrong with my code ?
    >

    You are ignoring Line 2 - L2 con 192. The test message will come up if Vcc
    is supplied at start up.

    Sid


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-05 13:11
    --- "herrhanz <herrhanz@y...>"
    <herrhanz@y...> wrote:
    > I'am using the BS-2p40 together with a BPI-216
    > LCD-display. When is
    > start running the code (see bellow). I can see
    > sometimes a test -
    > message. Only after 1 second, the display shows only
    > some weird
    > characters. I've checked the dip-switches on the

    Hello Hans,

    I don't know if this applies to your setup (Not
    familiar with that particular display)...But a few of
    the serial displays I have used display a revision
    message, or something else during initialization. If
    you're using the PIC-N-LCD it displays a revision
    message as well...Hope this helps. By the way, if
    that is the case, you should still see it when you
    power up the LCD by itself.



    =====
    Chris Savage
    Knight Designs
    324 West Main Street
    Montour Falls, NY 14865
    (607) 535-6777

    http://www.knightdesigns.com

    __________________________________________________
    Do you Yahoo!?
    Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
    http://mailplus.yahoo.com
Sign In or Register to comment.