Menu

lcd support 4x20 display

Help
2010-11-12
2013-05-30
  • Nobody/Anonymous

    Hi,
    I usally work with LCD display 4x20. GSB supports in lcd.h only the 2x16 types. My display needs an additional initialisation.
    I have to send some binary code to the lcd control register.
    Is there any possibility to solve that problem?

    Juergen

     
  • kent_twt4

    kent_twt4 - 2010-11-12

    I use a 20x4 lcd all the time with no problems.  If I remember right the Hitachi controller has one 40 byte wide register or times two for the four line display.  I helped out on a 16x4 display in this post.  The locate command must be used on the four line display, because the controller registers are interleaved by lines 0 & 2, and 1 & 3, is that what you mean?

     
  • Nobody/Anonymous

    I'm using a 20x4 Display from ELECTRONIC ASSEMBBLY using a Controller KS0073, similiar to HD44780. In my assembler programs I used a special sequence for initialising that display. For this type of display I included a code for "extended function set".
    I tried to change the initialisation sequence in lcd.h, but I failed.

    Juergen

     
  • kent_twt4

    kent_twt4 - 2010-11-15

    Looks like it is there for you in lcd.h by using LCDWriteChar.  For testing:

      Print "100"
      LCDWriteChar b'11100100'
      LCDWriteChar b'11110100'
      Print " "
    
     
  • Nobody/Anonymous

    Thanks, Kent.

    I've learned, that I can use that "LCDWriteChar" command from lcd.h in my own programs.
    I tested your test program, but i could only write characters into my display. I need to write command words to the Display to change to ext. function set.
    So I tried the following:

    Print "100"
    SET LCD_RS OFF
    LCDWriteChar (B'11100100')
    LCDWriteChar (B'11110100')
    SET LCD_RS ON
    Print "  "

    But the codes B'11100100' and b'11110100' came as charakters to the display, not as control commands.

    Is there any possibility to write control commands to the display???

    Juergen

     
  • Nobody/Anonymous

    Some questions get an answer while writing them into a forum….

    I found that command WriteLDCByte in lcd.h. So I can write commands to the display. It works, but I'm not yes satisfied. So I go on with try ans error….

    Juergen

     
  • kent_twt4

    kent_twt4 - 2010-11-19

    Ooops, I mistook the "extended char set" of the Hitachi for your KS0073 "extended function set" in my example.  I see where the confusion was after taking a quick peek at the KS0073 data sheet.  Not exactly what you would call a clone.

    I see they have layed out a pretty could example with the initialization, timimg, and function commands.  Sounds like you have some display output going, so that's good.  Best of luck.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.