LCD vexation


Closed Thread
Results 1 to 6 of 6

Thread: LCD vexation

  1. #1
    Join Date
    Jun 2006
    Location
    Central Wisconsin, USA
    Posts
    3

    Question LCD vexation

    I am having an LCD issue that is beating me up. I have a project that works with a small LCD display but when I put a larger display on it, it doesn't work. The upper half of the display is 20 solid boxes, and the lower half is blank. I am using the 16F690 MCU and PICBASIC PRO (program sample zipped and attached). The small yet functional LCD Display is a TRULY MCC162B3 16X2 and the larger one is a CRYSTALFONTZ CFAH2002L-YYH-JP 20X2. The CRYSTALFONTZ unit works fine when I duplicate the demonstration in the LCDOUT section of the PBP manual (using a 16F84a). I have checked my connections many times and played with the timing parameters. I am stuck.
    Thank you
    Dennis
    Attached Files Attached Files

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    You say you have changed the timings, but I don't know how far you have gone. I use a wide variety of LCDs, and find the following parameters work with all of them.

    DEFINE LCD_COMMANDUS 2500
    DEFINE LCD_DATAUS 200
    Charles Linquist

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


    Did you find this post helpful? Yes | No

    Default

    what happen when you play with the contrast voltage?
    What if you use..
    Code:
    Start:
        PAUSE 2000
        LCDOUT $FE,1,"Hello"
        Here: Goto here
    how about the usual..
    is a simple Led Blink work
    How about your config fuses
    how about your crystal speed

    Sorry to asked but sometimes we have
    Steve

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

  4. #4
    Join Date
    Jun 2006
    Location
    Central Wisconsin, USA
    Posts
    3


    Did you find this post helpful? Yes | No

    Cool LCD still vexing

    I just tried your ideas but to no avail. I previously tried several values for COMMANDUS and DATAUS out to 5000 and 250 µS each. I also tried several PAUSES of 1000 to 5000 mS in various spots in the program. I didn't try mister e's idea, though, because I think that I need the list of DEFINES to make the 16F690 work. Right? This display did work with a 16F84a and a simple program like that one.
    Thank you for your consideration,
    Dennis

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


    Did you find this post helpful? Yes | No

    Default

    I hate that datasheet... see table 9-2

    ANSEL=0 will solve the problem.
    Steve

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

  6. #6
    Join Date
    Jun 2006
    Location
    Central Wisconsin, USA
    Posts
    3


    Did you find this post helpful? Yes | No

    Wink Vexing LCD Solved!

    Dear mister e,

    That was it!! Thank you so very much. I did use the ANSEL = 0 but on a bit level. I guess that maybe I over thought it, or not. Again, thank you.

    Best Regards,
    Dennis

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, 19:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 11:43
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 14: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