Going back to basics, some advice on memory storage


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: Going back to basics, some advice on memory storage

    Henrik,

    If I follow your post correctly I can do the following

    Code:
    DATA @8,0 
    
    EE_CH1_Max DATA WORD 4095
    EE_CH2_Max DATA WORD 4095
    
    etc
    and then

    Code:
    read EE_CH1_Max, WORD CH1_Max
    read EE_CH2_Max, WORD CH2_Max
    The part I can't get my head round is assuming you place the data statement at the start of the code so this happens when the code is run, what distinguishes it from a fresh install and a reboot as surely the code is executed from the start when powered up and will use the data command when it reaches that line of code ?

  2. #2
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: Going back to basics, some advice on memory storage

    Oh it's so much easier with labels than using all that location, lowbyte hughtbyte stuff !!!

    I now have a set of preset values loaded first time after the chip is programmed, and user variables saved once changed by the user, which are retained in the event of a power fail...

    Now to do a few more bits before following Richards examples to tidy up the code and make ot a bit more compact...

Similar Threads

  1. I2C storage issue
    By lerameur in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th November 2010, 19:42
  2. Memory Overflow? Urgently need advice
    By curian88 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th April 2010, 14:42
  3. data storage label
    By MINHLE in forum General
    Replies: 6
    Last Post: - 17th December 2009, 14:04
  4. internal storage space?
    By gtrplaya101 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th October 2009, 06:45
  5. The basics
    By malc-c in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 22nd June 2008, 00: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