reading, writing, and displaying from eeprom


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    969


    Did you find this post helpful? Yes | No

    Question I think I got it

    Rhatidbwoy

    I am finding it quite difficult to comprehend your code without comments. Anyway,

    See the following fragment of your code in the ENTER routine

    tra = 0
    tra1 = 38
    for e = 0 to 48
    lookup2 e,[ee7,ee8,ee9,ee10,ee11,ee12,ee13,ee14,ee15,ee16,ee1 7,ee18,_
    ee19,ee20,ee21,ee22,ee23,ee24,ee25,ee26,ee27,ee28, ee29,ee30,_
    ee31,ee32,ee33,ee34,ee35,ee36,ee37,ee38,ee39,ee40, ee41,ee42,_
    ee43,ee44,ee45,ee46,ee47,ee48,ee49,ee50,ee51,ee52, ee53,ee54,_
    ee55],ee
    serout 0,4,[TRA1,ee]
    write tra, ee
    tra = tra + 1 ' next tra
    tra1 = tra1 + 1
    next e

    From this, I infer the TRA variable is used as an address for eeprom write. If you see, this variable is initialized to zero and writes the 48 bytes from address 0 onwards. You read from address 7. Confirmation if this is the problem will be garbled data from channel 0 up when you happen to change channel 2 and higher.

    Jerson

  2. #2
    Rhatidbwoy's Avatar
    Rhatidbwoy Guest


    Did you find this post helpful? Yes | No

    Default

    ok that make sense. Pointing at it really help. going blind at such a young age. Me that is. Ok, I will have to try that and see what happens.

    Then the other thing that I will have to do is make more notes to what is doing what. Thanks!

  3. #3
    Rhatidbwoy's Avatar
    Rhatidbwoy Guest


    Did you find this post helpful? Yes | No

    Default Tried sample program

    I have made the corrections as far as the TRA in label ENTER and still gt no good response. Thinking that there was a problem with how I am going at the read write i used the sample program with some modification and got it to work.

    The READ/WRITE sample program was for SEROUT so I changed it to LCDOUT and I got for the information to work. I was also available to see that the information that I was working with was stored in the eeprom. That is a good thing.

    With my program knowing that I have to set everything I tried a few lines and see if anything would change. Nothing. A few lines as far as a channel in one menu then a channel in another menu. Nothing. I am still plucking the minds to figure what can be done.
    Attached Files Attached Files

  4. #4
    Rhatidbwoy's Avatar
    Rhatidbwoy Guest


    Did you find this post helpful? Yes | No

    Default

    ok. got the problem figure out. I would have like the information to go from line to linet. I was writing it as line = linet. Not the way to go. I needed for it to be linet = line.

Similar Threads

  1. Puzzling issue with I2CWRITE to 24LC512
    By aberco in forum General
    Replies: 4
    Last Post: - 22nd August 2008, 17:47

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