20*4 LCD line address

Discussion in 'General Electronics Chat' started by Dritech, Feb 23, 2012.

  1. Dritech

    Thread Starter Well-Known Member

    Sep 21, 2011
    756
    5
    Hi,

    Can someone tell me what is the address for a 20*4 LCD to go to the second, third and forth line please?
     
  2. MrChips

    Moderator

    Oct 2, 2009
    12,432
    3,360
    Line 1 is 0x00
    Line 2 is 0x40
    Line 3 is 0x14
    Line 4 is 0x54

    Edit: add 0x80

    Line 1 is 0x80
    Line 2 is 0xC0
    Line 3 is 0x94
    Line 4 is 0xD4

    Make sure you send this to the Instruction Register, not the Data Register
     
    Last edited: Feb 23, 2012
    Dritech likes this.
  3. Dritech

    Thread Starter Well-Known Member

    Sep 21, 2011
    756
    5
    Hi,

    When i write those values, noting is being displayed. Do you know what can be causing this?

    EDIT: OK, i was not adding 10000000 binary to the values.

    Thanks :)
     
  4. Dritech

    Thread Starter Well-Known Member

    Sep 21, 2011
    756
    5
    How can i use the arrows in the attached diagram below please?
     
  5. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,866
    991
    Just write a 0x10 or 0x11 character to your LCD.
     
  6. Dritech

    Thread Starter Well-Known Member

    Sep 21, 2011
    756
    5
    Hi, I wont be displayed when i write 10 or 11 since these characters are not with the main characters. Attached is the datasheet.
     
  7. MrChips

    Moderator

    Oct 2, 2009
    12,432
    3,360
    You can create five new characters of your own design by writing to CGRAM.
     
  8. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,866
    991
    What does this mean?
     
Loading...