PLEASE HELP...read write issues


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2011
    Posts
    6

    Angry PLEASE HELP...read write issues

    I've been working on this code and im not getting any numbers but a blinking cursor. I want to display the decimal values that i've stored in the eeprom on my lcd screen. I can't figure out if it's the array that is throwing things off.

    MC var byte[4]
    Y var byte

    X = 0

    Data @0, 5, 4, 3, 2, 1 'stores values into EEPROM

    pause 2000 'let lcd start up (2sec wait)

    Loop:
    lcdout $FE, 1, "Program is starting"
    pause 3000
    lcdout $FE, 1
    lcdout $FE, $C0

    for x = 0 to 4
    read x, Mc[x]
    lcdout $FE, dec1 MC[x]
    pause 1000
    next x
    lcdout $FE, 1
    lcdout $FE, "End of program"
    pause 3000
    lcdout $FE, 1
    goto loop

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: PLEASE HELP...read write issues

    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: PLEASE HELP...read write issues

    Your array is [4] bytes, but you read your array in 0-4, which goes up to 5 bytes. So you either should change your array to 5, or just read 0-3.

  4. #4
    Join Date
    Oct 2005
    Location
    Loveland CO USA
    Posts
    83


    Did you find this post helpful? Yes | No

    Default Re: PLEASE HELP...read write issues

    If you think the LCD is the problem....Have you tried "hello world" to the LCD? Try something very simple first.

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: PLEASE HELP...read write issues

    Quote Originally Posted by ronsimpson View Post
    If you think the LCD is the problem....Have you tried "hello world" to the LCD? Try something very simple first.
    Yeah, . . . I was kind of wondering if it was displaying his other text too.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  6. #6
    Join Date
    Feb 2011
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Re: PLEASE HELP...read write issues

    I get everything else when having text show up on LCD...LCD not the problem

Members who have read this thread : 1

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