EEPROM issues


Closed Thread
Results 1 to 2 of 2

Thread: EEPROM issues

  1. #1
    timmers's Avatar
    timmers Guest

    Default EEPROM issues

    Hi all,
    Been having problems with EEPROM locations getting overwritten.

    Device is 18F2620
    We run interrupts from pbp (ON INTERRUPT GOTO ...)
    Now re-reading the pbp manual we find that we should have been masking interrupts before WRITEing. ahhemm, well we do now....

    We have used the DEFINE WRITE_INT 1 which appears to have cured the problem, so check your code.

    Is there any other tips for reliable EEPROM data management you would like to suggest?

    I have been told that to allways follow a READ or WRITE with a PAUSE. This may date back from the original flash devices being slow (16F84) and i'm unsure as to how valid this information is and should I worry with 18F's

    Thanks,
    Tim.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by timmers View Post
    Hi all,


    I have been told that to allways follow a READ or WRITE with a PAUSE.
    Thanks,
    Tim.
    Hi, Tim

    reading the EEPROM needs " no time " ... PBP Write command Polls the EEPROM EEIF flag ... so, there's no time to add to those PBP commands. ( this 'to add" pause is one more " urban legend " ...)

    "To be sure" you can read the written value and compare to the intended value to write ... can be useful if numerous writings used ... or very long device life expected ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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