This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

write/erase time for a sector in 89V51RD2

hi,

i would like to know the write and erase times for a sector for a 89V51RD2 microcontroller. if you have this info please share it.

Also i see from the datasheet that the write/erase cycles are 10000. is this for one sector or for the entire block? the origin of this question is can the lifetime of the device be calculated as

lifetime of flash = 10000 * number of sectors ?

i will use one sector at a time and then when this sector is full erase and begin writing again to this sector. when the number of write/erase cycles are over then i move over to the next sector. will this work?

any inputs will be helpful. thanks in advance.

Parents
  • you are overcomplicating it
    use a struct

    x
    x
    x
    cksm
    used
    

    to write after start/power fail:
    start from the beginning, the first struct where used is ff is where you write then keep a RAM pointer till next fail

    to read after powerfail finf the first where used is ff go one back, if cksm is OK, use it, if not, go one more back

    i have done this many times, the abive just works

Reply
  • you are overcomplicating it
    use a struct

    x
    x
    x
    cksm
    used
    

    to write after start/power fail:
    start from the beginning, the first struct where used is ff is where you write then keep a RAM pointer till next fail

    to read after powerfail finf the first where used is ff go one back, if cksm is OK, use it, if not, go one more back

    i have done this many times, the abive just works

Children