Shop OBEX P1 Docs P2 Docs Learn Events
parallel lcd — Parallax Forums

parallel lcd

vontrappvontrapp Posts: 5
edited 2006-10-26 22:23 in BASIC Stamp
Hi,

I am using a 1-line 16-character lcd in 4 bit mode (unknown brand, type gdm1601c). Unfortunately it shows only the first 8 characters. Longer data is truncated after the 8th character.

Anybody knows why?

thanks,

Hans

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-10-26 20:37
    Hans,
    ·
    ·· Often these LCD Displays are 1 line, but need to be configured in two line mode, and the second half of the display is actually line 2.· It sounds weird, but I have a few like this.· I would try that. ·I bet that’s it.· I hope this helps.· Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • BenoitBenoit Posts: 47
    edited 2006-10-26 20:43
    Are you initializing the LCD with a 1 line mode?

    My LCD has 2 lines, and I use:
    LCDCMD Lcd, %00101000 ' set to 2-line mode with 5x8 font

    I think that in the case of a one line, you would need
    LCDCMD Lcd, %00100000

    Or something similar, according to the Stamp manual 2.2, page 163.

    -Ben
  • vontrappvontrapp Posts: 5
    edited 2006-10-26 22:06
    Hi Chris,

    Thanks for the reply. But how do I write to the second line? data is still truncated after the eigth character.

    thanks,

    Hans
  • vontrappvontrapp Posts: 5
    edited 2006-10-26 22:15
    Hi again,

    Just found it, by setting the ddram adres.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-10-26 22:23
    Correct, you have to set the address to the second line and start printing.· So, is it working now for you?· I remember the first time I saw one of these, the only reason I figured out what was happening was I wrote a program to keep incrementing and printing * and eventually the remainder of the display started filling up.· That’s when I realized what was happening and was able to make use of a few such surplus displays I obtained.· Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.