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

How to use flash for data storage in SST P89V51RD2.

I want to use only 1 KB memory as data storage from the flash memory of the SST 89E516RD. I have no idea about how to erase and write into flash for data storage. In the 89E516RD there is some thing written in datasheet as ROM : 64 + 8 KB . But I can't understand it. Also mention how to reserve some memory from flash for data storage. Please provide sample code if possible.
Thanks.

Parents
  • You'd better READ THE DATASHEET CAREFULLY AND THOROUGHLY.

    For SST 89E516RD, it has two seperate Flash Blocks(Block 0 and Block 1). As the device booting, it gets SFCF[1:0] configuration from specific bit SC0(Start-up Configuration bit).

    When SFCF[1:0] = 01/10/11, Block 0 is mapped in the total 64kB code space and Block 1 is only reachable through IAP commands. So you can easily use Block 1 as non-volatile storage.

    All the IAP commands and program flow charts are included PLAINLY AND CLEARLY in the datasheet.

Reply
  • You'd better READ THE DATASHEET CAREFULLY AND THOROUGHLY.

    For SST 89E516RD, it has two seperate Flash Blocks(Block 0 and Block 1). As the device booting, it gets SFCF[1:0] configuration from specific bit SC0(Start-up Configuration bit).

    When SFCF[1:0] = 01/10/11, Block 0 is mapped in the total 64kB code space and Block 1 is only reachable through IAP commands. So you can easily use Block 1 as non-volatile storage.

    All the IAP commands and program flow charts are included PLAINLY AND CLEARLY in the datasheet.

Children