8x2 Lcd


Closed Thread
Results 1 to 7 of 7

Thread: 8x2 Lcd

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Looking into my crystal ball a bit more ... you do not have many defines for the LCD (see manual). Are you relying on the default values for those you have not shown? (not the best of practices if you are)

    I am predicting that
    Code:
    Define LCD_DBIT 4
    should be
    Code:
    Define LCD_DBIT 0
    (only if you have the four data lines on RA0-RA3). If not, RA5 is input only and also will be causing you grief.

    Let us know....
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  2. #2
    Join Date
    Jun 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Darrel

    I will give that a try when I get home this afternoon.

    Paul

    I have tried Define LCD_DBIT 0 with the same results. But will set it back to this when I try it again.

    Thanks to both of you for the suggestions. I'll let you know how it goes.

    Ron

  3. #3
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Use 0 if your four data lines are RA0-RA3
    Use 4 if your four data lines are RA4-RA7 (but this will not work as noted above)

    If you still have issues, you might want to post a schematic and the rest of your code (if there is more) - more and better info usually means more and better help

    Good Luck
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  4. #4
    Join Date
    Jun 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Thanks for the help.. It is up and working. Don't really know what happened. The code looks the same except for:

    DEFINE LCD_LINES 2
    ANSEL = %00000000

    and:

    Define LCD_DBIT 0

    I had tried the LCD_DBIT 0 before but no help.. And ANSEL =%00000000. So maybe the LCD_LINES 2... I did not think that made a difference. But I greatly appreciate the help. It made me look at things and I did learn some more.

    Ron

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 20:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 20:54
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 17:56
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 03:30
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 15:44

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