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.
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.
Thank you very much dear...!!! One more thing I want to know i.e. What is the meaning of '[1:0]' as you mentioned in answer. e.g. - [1:0] = 01/11/00. So please tell me exact meaning of 1:0.
[1:0] is a range of bits. In this case bit 1 and bit 0. And two bits can take 4 values 00, 01, 10 and 11.
The above is a common notation when describing the meaning of individual bits or bit groups in registers or on ports.
So [3:0] would have been the four least significant bits.
Thank you very much sir...
An advantage with reading datasheets is that you would have realized this quite quickly from the text.
Despite Youtube, it's quite hard to remove the need for reading.