no text on LCD


Closed Thread
Results 1 to 31 of 31

Thread: no text on LCD

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    19

    Default no text on LCD

    i have a 4x20 line lcd display with a program to say hello world.

    when the program is run it just shows up as a small block in the top left corner

    when the capacitors each side of the crystal are removed (2 x 33nf) it shows up as 2 lines of blocks

    can some one tell me why it is doing this and not displaying my text?
    Attached Images Attached Images   

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dj tempo View Post
    i have a 4x20 line lcd display with a program to say hello world.
    when the program is run it just shows up as a small block in the top left corner
    when the capacitors each side of the crystal are removed (2 x 33nf) it shows up as 2 lines of blocks
    can some one tell me why it is doing this and not displaying my text?
    Code? 1-2 second pause after startup to let the LCD startup? Contrast voltage is obviously set ok.

  3. #3
    Join Date
    Jun 2007
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    code in attatchment:
    Attached Files Attached Files

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dj tempo View Post
    code in attatchment:
    That doesn't look much like PicBasic to me...why not download the PicBasic demo from melabs and see how much easier it is to use that?

  5. #5
    Join Date
    Jun 2007
    Location
    SW England
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    Dj:

    I could be barking up the wrong tree here, and confess to having little knowledge of the 4 x 20 LCD. But from looking at your two attached photos a possible cure might be that you need to connect LCD pin #5 to ground?

    Good luck.

  6. #6
    Join Date
    Jun 2007
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    yup, pin 5 is deffo connected to ground, its on the back of the lcd,
    one question i must ask is: should the crystal be making a square wave?
    (im running a 4 MHZ with 2x33pf caps) the signal measured between the 2 crystal legs pin 15-16 is more like a saw tooth waveform but with about 5 ms of flat at 0v, im assuming the problem is within my code.

    im just getting frustrated now.

  7. #7
    Join Date
    Jun 2007
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    That doesn't look much like PicBasic to me...why not download the PicBasic demo from melabs and see how much easier it is to use that?
    cheers bud, couldyou point me in the right direction for this software, poss a download link.

  8. #8
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    If you post a SCHEMATIC of how you've got your hardware connected, along with the PIC you're using, I'm sure someone on this forum could throw a few lines of code together to write to your LCD and perhaps also flash a confidence LED to prove your hardware is working and post you a HEX with which you could program your PIC. That at least would prove if it's your hardware or software that's causing you grief. Then you could buy PICBasic and become a fully paid-up member... gives you status... people give up their seat for you on the bus... women will want you to kiss their babies (or claim you're the father)... you can run for president... etc etc...

Similar Threads

  1. Replies: 2
    Last Post: - 5th November 2009, 17:07
  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. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. LCD issue with EasyPIC5
    By manwolf in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 15th June 2008, 09:17
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

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