Commands for 4x20 Character Lcd display JHD 204A

Author
skg.sudheer
New Member
  • Total Posts : 13
  • Reward points : 0
  • Joined: 2009/10/06 02:44:37
  • Location: 0
  • Status: offline
2009/12/21 02:47:15 (permalink)
0

Commands for 4x20 Character Lcd display JHD 204A

Hi,

I am finding it difficult to work on 20x4 character LCD.I am unable to set the command for 20x4 Lcd as for 16x2 lcd (0x38).I am already using 16x2 lcd.Now i want to switch to 4x20 lcd.So can any one tell me the commands to set function for 20x4 character Lcd display????
#1

2 Replies Related Threads

    DarioG
    Scheisse Menschen
    • Total Posts : 52256
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: hi there
    • Status: offline
    RE: Commands for 4x20 Character Lcd display JHD 204A 2009/12/22 05:57:11 (permalink)
    0
    Hmmm, 20x4 and 16x2 should be almost similar. The character addresses i.e. "positions" should be shown in the LCD's datasheet.
    Usually they're at 0x80 and 0xC0 for 1st and 2nd line, and 3rd and 4th follow respectively from 1st and 2nd.

    Dario Greggio
    --
    Wouldn't it be wonderful, if you lost one son for every promise you don't keep?
    #2
    maxpower097
    Junior Member
    • Total Posts : 120
    • Reward points : 0
    • Joined: 2008/07/02 12:54:55
    • Location: 0
    • Status: offline
    RE: Commands for 4x20 Character Lcd display JHD 204A 2009/12/22 10:34:42 (permalink)
    0
    All I did was plug in my 204 into the same pins as the 16x2 LCD and it worked fine. Just had to adjust the line length to 20 and address 2 more lines. Its been a while but I think line 1 or 2 was 0x40 or 0x41.
    post edited by maxpower097 - 2009/12/22 10:36:09
    #3
    Jump to:
    © 2017 APG vNext Commercial Version 4.5