Display "0" on LCD


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    ghoot's Avatar
    ghoot Guest

    Default Display "0" on LCD

    Hello,
    I have noticed that any number ending in zero "0" will not display on an LCD. I set up a loop something like this:

    FOR i=0 to 100
    LCDout #i
    Sleep 2
    next i

    and every time a number that ended in zero (0,10,20,30 etc.) was reached, the LCD was blank. Any ideas?

  2. #2


    Did you find this post helpful? Yes | No

    Default

    I would guess something in the lcd controller is defective. Have you tried another lcd?

  3. #3
    ghoot's Avatar
    ghoot Guest


    Did you find this post helpful? Yes | No

    Default

    Hi,
    The LCD is a 2x8 display. I've used 2 of the same brand "Crystalfontz", but haven't tried a different brand. Maybe that could be the problem. I hope not, cause I like the ones they have.

  4. #4
    Join Date
    Dec 2005
    Posts
    46


    Did you find this post helpful? Yes | No

    Default

    Well, 4 years later and I'm not much smarter and I still have the same problem. :-) Since zero is considered a terminator for a string, I guess this has something to do with the issue? Is there some way to tell PBP to use some other character as the terminator? Really strange that no one else has this issue. The display is a crystalfontz CFAH0802A-YYH-JP. Any ideas would sure be apreciated.
    Gary
    Last edited by g-hoot; - 13th May 2008 at 21:07.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by g-hoot View Post
    Well, 4 years later and I'm not much smarter and I still have the same problem. :-) Since zero is considered a terminator for a string, I guess this has something to do with the issue? Is there some way to tell PBP to use some other character as the terminator? Really strange that no one else has this issue. The display is a crystalfontz CFAH0802A-YYH-JP. Any ideas would sure be apreciated.
    Gart
    Try this:
    i var word
    FOR i=0 to 10000
    LCDout $fe, $80, DEC5 i
    next i

  6. #6
    Join Date
    Dec 2005
    Posts
    46


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Try this:
    i var word
    FOR i=0 to 10000
    LCDout $fe, $80, DEC5 i
    next i
    Thanks for the code. I gave it a try, but still no go, the LCD stills goes blank as soon as a number ending in zero is displayed. I'm guessing something to do with zero being a "terminator". Not real sure what that means. The LCDout command above uses a bunch of code. I have to delete a bunch of text out of other LCDout commands to get it to compile using:

    LCDout $fe, $80, DEC5 i

    instead of

    LCDout #i

    Gary

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    The LCDout command above uses a bunch of code. I have to delete a bunch of text out of other LCDout commands to get it to compile using:
    LCDout $fe, $80, DEC5 i
    instead of
    LCDout #i
    Gary
    Just use the code in the post above, and only that code, nothing else (except for maybe some initialization code)
    What else are you running, or trying to run at the same time?
    It sounds to me like you've got other things going that we're all not able to see for some reason or another. All this talk about a 'terminator' basically doesn't really apply. There is no real 'terminator' to speak of like a 'null' when using strings in VB or the like.
    What version of PBP are you using?

Similar Threads

  1. LCD Display
    By lambert in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th January 2010, 22:18
  2. LCD display not working properly
    By dilpkan in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 2nd February 2008, 07:43
  3. Replies: 14
    Last Post: - 26th September 2007, 05:41
  4. LCD Display not working - PIC heating...
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 24th September 2006, 07:35
  5. A/D display result on LCD
    By winsthon in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th January 2004, 10:09

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