Eeprom accidentally erased?


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Josuetas View Post
    Now i don´t know if the discussion should be open here but.. this error seems to be of the device, else microchips. Does this happen to the uC`s of other companies like ATMEL or MOTO?
    i heard it happen on most popular brands, not always in the eeprom section, sometimes in the code section as well.

    Can you post your schematic, code and your config fuses? ... just for my own curiosity. If, for some reason, you can't post it in the public area, you can post it on my e-mail.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    968


    Did you find this post helpful? Yes | No

    Default

    I have my electronic safe working around the 628A and it works like a song. Out in the field for years now. Never had a problem with eeprom corruption. I save the user codes in EEPROM and read them from there for comparison.

    I suspect your code is 'running away' either due to power glitches or maybe an oversight in coding. To confirm this theory, I can suggest you to try MPSIM(I use it extensively to debug). Put a breakpoint on every WRITE statement which puts data into the EEPROM. This you can find by getting the addresses from the LST file. Then just run your code. If it breaks, you have the answer.

    Power line glitches may be hard to catch. In my case, the safe works off 4 D size cells (6V in all) directly. I know I am violating the Vcc(typ) spec. However, what I'm trying to convey is to power the unit by batteries if you suspect power line glitches.

    Hope you are able to 'catch the culprit'.

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. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 03:17
  3. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 06:26
  4. Values in EEPROM get erased on power cycle
    By senojlr in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th September 2005, 04:32
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 19:59

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