Hello all, We have with us a AT89C51ED2 board with an external AT29LV020 flash. We have our CODE in the external flash. There are two types of data that we want to retain between system resets. One type of variables are those which will not change when the system resets. i mean they will be constants everytime we reset the boards. so we have decided to use const <datatype> code abc; so that they will not change and will be allocated in the ROM. Another type is that they might change during run time, and when the system resets, it must be able to get back the last value it was when the system was reset. For these kind of variables we write to the Internal Flash when the board resets using the IAP functions. First thing, are we doing it right, second, Is there any other way to store this data ? regards prasanna