Internal eeprom - erase block


Closed Thread
Results 1 to 33 of 33

Hybrid View

  1. #1
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    ruijc, But why are you required to erase all of the data? Why not just keep a couple of pointers? 1 for number of data bytes recorded and 1 for the next data location. The reason for 2 is to verify if either is corrupted. Just update the 2 pointers when writing the data or clear them when you require a memory clear function.

    Dave Purola,
    N8NTA

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Hello Dave,

    Very interesting idea.

    It makes perfect sense. It's a completly diferent logic this way.

    Thanks

    What i thought was:

    I can reserve 4 bytes ( using 2 blocks of data...reserve more with more blocks ) of memory such as:

    1 will record the starting address for first block
    1 will record the ending point for the first block
    1 will record the starting point of second block
    1 will record the ending address of second block

    This way i can have variable size of block with data

    These can be stored either in the external or internal eeprom ( i guess it will be safer to store them in the external one )

    For reading it will lookup these bytes for it to know where to start colecting data and where to stop.

    To erase just simply put these to 0 ( reminding to check for 0 before start recording ).


    I think it can work this way, dont you think ?



    .

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    ruijc, Bygolly youv'e got it....... I have used this same method for about 3 years or so using 4 24LC1025's for data storage of depth, temperature, diveplane angle, and status at 1 second intervals for about 18 hours on my TempTracker.

    Dave Purola,
    N8NTA

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    So what Dave is suggesting is like a partition table.

    Instead of erasing all data, just erase or clear partition table.

    If the partition table is empty, the data is not accessible or is useless.

    --------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  5. #5


    Did you find this post helpful? Yes | No

    Default

    This way i can "erase" alot of blocks of data in a ms and also safely read only what i recorded in the previous session and not mix up data from previous recordings.

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  2. config bits
    By brianD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th February 2010, 13:45
  3. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  4. PortE problems (PIC18F4455)
    By RubenR in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th July 2006, 15:26
  5. Internal EEPROM Read/write Addressing Errors with 18F PIC's
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 18
    Last Post: - 12th July 2005, 19:42

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