Electronic Circuits and Projects Forum



problem with lcd

  1. #1
    geboy geboy is offline

    problem with lcd

    hi everyone. I got a lcd volt meter project from internet. my friend is doing that project. He has not
    connected any inputs or anything but he is getting ouput at lcd as shown in pictureVOLT METER.jpg
    I do not under stand what is the problem
    I have also attached the necessary files as below
    Attached Files

  2. #2
    Ian Rogers Ian Rogers is offline
    Super Moderator
    Appears to me like a timing issue.... I thought you had to specify Xtal speed.
    0
    I'd give my left arm to be ambidextrous
    Nigel's tutorials in asm... http://www.winpicprog.co.uk/
    Nigel's tutorials.. re-written in C. http://www.electro-tech-online.com/c...torials-c.html

  3. #3
    Nigel Goodwin Nigel Goodwin is offline
    Super Moderator
    It probably doesn't help having massively long leads to the display - however, it's the sort of 'wrong characters' you can get if two of the data lines are shorted together (or to ground), so it's worth checking carefully for shorts.
    0
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  4. Thread Starter #4
    geboy geboy is offline
    I told him to change the configuration of pic to RC oscillator and also changed the crystal to RC(R=3.3k and C=100pf) and now it displays correctly. Why is that?
    0

  5. #5
    Ian Rogers Ian Rogers is offline
    Super Moderator
    Like I said... A timing issue.... A R/C configuration will be running considerably slower... The timings on the LCD are now WELL above the minimum settings..

    I thought that you needed to specify a crystal frequency with that compiler (I may be wrong ).
    0
    I'd give my left arm to be ambidextrous
    Nigel's tutorials in asm... http://www.winpicprog.co.uk/
    Nigel's tutorials.. re-written in C. http://www.electro-tech-online.com/c...torials-c.html

  6. #6
    dr peppers dr peppers is offline
    The 44780 chipset needs a time delay inbetween writing characters, as the chip needs to update the display, if you try to write another character or certain instructions too soon after the last one then the display will corrupt, if you wait to long it will still work fine.

    Your mates delay routine was probably not taking long enough as the xtal frequency wasnt setup correctly.

    I assume that the software is using the minimum wiring communication protocol, if all the connections from the display were made available there is a busy flag that can be read before writing the next character.

    Basically I've just expanded on the post above.
    0

Tags
Similar Threads
Thread Starter Forum Replies Last Post
Problem with LCD code? spondootre Microcontrollers 15 29th April 2008, 09:15 AM
Security Door Project.Problem With Lcd.Plese Help!! muras Electronic Projects Design/Ideas/Reviews 8 18th July 2006, 07:12 AM
wierd problem with lcd jijita General Electronics Chat 0 29th August 2004, 08:02 PM
problem with LCD module samcheetah General Electronics Chat 14 24th August 2004, 06:31 AM
code problem with lcd wg128 64b jijita Microcontrollers 0 23rd August 2004, 07:44 PM
Electronic Circuits  |  Learning Electronics

Join our community with over 100,000 Members! It's free, easy and when you're logged in you have many more features! Click to register.
Page Time: 0.08182 seconds      Memory: 7,416 KB      Queries: 17      Templates: 0