4-line lcd interfacing with 8051

Discussion in 'Embedded Systems and Microcontrollers' started by khan yousufzai, Sep 6, 2012.

  1. khan yousufzai

    Thread Starter New Member

    Aug 31, 2012
    please clarify me,when v interface 2 line lcd v use command 0x38,but which command will be used for 4 line lcd or greater,plz reply me i m waiting
    thanking brothers
  2. panic mode

    Senior Member

    Oct 10, 2011
    do you have datasheet for the display?
  3. t06afre

    AAC Fanatic!

    May 11, 2009
    If I remember correct a 4x20 display is in basic a 2x40 display. Consequently, the end address of line 1 and the start address of line 3 are consecutive. Also, the end address of line 2 and the start address of line 4 are consecutive.
    In the DD-RAM line 1 starts at address 0x00. Line 2 at address 0x40. Line 3 at address 0x14. And line 4 at address 0x54
    absf likes this.