LCD Control


Closed Thread
Results 1 to 29 of 29

Thread: LCD Control

Hybrid View

  1. #1
    boboco's Avatar
    boboco Guest

    Question LCD Control

    Hi All,

    I use PBP.

    I know this must be an old hat, but I've been trying this one for days. I'm using a Displaytech 162 LCD 2 x 16 on a PIC16F877 port d and, do what I will, I can't get it to write the second line. I've tried all sorts of DEFINES etc. without success.

    If I define the display as one line, which I still suppose it to be, first line is normal, second line nothing. If I define the device as 2 line, however, I get no display at all.

    Second line adress is given as 40H, but I've tried almost anything to no purpose.

    I've driven lots of LCDs with lots of PICs and had some problems, but this is new to me. Or is the display most probably defect?

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Can you provide any datasheet for us? sometime we feel lazy to search... at least me
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Add 80h to the character address to make
    the Display Data RAM Address Set command.
    (When you add 80h you set bit 7).


    $00 + $80 = $80
    $40 + $80 = $c0

    Code:
    LCDOUT $FE,$80, "Hello on line 1"
    LCDOUT $FE,$C0, "Hello on line 2"
    Best regards,

    Luciano

  4. #4
    boboco's Avatar
    boboco Guest


    Did you find this post helpful? Yes | No

    Unhappy Lcd ??

    Hi Luciano, Hi Mister_e,

    I have already tried the code as you write, Luciano, it doesn't work on this unit but thanks all the same.

    If the unit isn't defect I'm wondering if the display controller chip is non-compatible to the Hitachi, it's a KS0070 but I believe it to be OK. I've got the data sheet in PDF and can send it to you if you require it, Mister_e. Checking through the command and address register it seems to be similar to the Hitachi controller. I'm beat.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    well, post your PDF here or the link to get it.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    boboco's Avatar
    boboco Guest


    Did you find this post helpful? Yes | No

    Default Lcd

    Hi Steve,

    attached the PDF. Maybe you can find something. Thanks for the effort.

    Greetings,

    Rob

Similar Threads

  1. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  2. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  3. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. 4x40 LCD control problem
    By NL2TTL in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th January 2005, 11:43

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