Adressing a 16 x 1 Alphanumeric LCD Display


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Location
    Santiago, Chile
    Posts
    77

    Angry Adressing a 16 x 1 Alphanumeric LCD Display

    I have connected a Wayton 1 x 16 character display using the 4 bit connection as in the manual and set the defines to 1 line.
    I can only get characters to the 8th character.
    The datasheet states that the 9th character has the address 40 but if I use that as my address in LCDOUT $FE,$40 the screen is just blank. I tried increasing the value one by one but seem to be getting no joy.
    Do I need to connect it with 8 bits?

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Chris,

    $40 is the address for the second 8 characters.

    But the address has to be sent with the "Set DDRAM" command ($80).

    $80 + $40 = $C0

    hth,

    Added: Don't forget to set the LCD to 2 lines. (even though it's a 1x16)
    Code:
    DEFINE LCD_LINES 2 'Number lines on LCD
    DT

  3. #3
    Join Date
    Apr 2007
    Location
    Santiago, Chile
    Posts
    77


    Did you find this post helpful? Yes | No

    Talking

    Thanks Darrel,

    You seem to always be my savior, all is working fine now!

    Best Regards

    Chris

    Quote Originally Posted by Darrel Taylor View Post
    Hi Chris,

    $40 is the address for the second 8 characters.

    But the address has to be sent with the "Set DDRAM" command ($80).

    $80 + $40 = $C0

    hth,

    Added: Don't forget to set the LCD to 2 lines. (even though it's a 1x16)
    Code:
    DEFINE LCD_LINES 2 'Number lines on LCD

Similar Threads

  1. Thermo 7 segments - little problem
    By fratello in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 27th July 2013, 07:31
  2. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 13:35
  3. one line led light make image
    By bioul in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 12:19
  4. HSERIN doesn´t work
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th July 2007, 14:23
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts