We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi Friends,
Am using 8051 for my Project...I just need to know how to edit/Change and Save the value in Internal Memory untill Reset. On Reset the original value will be backuped Automatically...Please say how to change and save values of Internal Memory...
Thanks in Advance...
Are you talking about this in your target hardware, or just how to do it in the Simulator?
When you say "Reset", is that just a reset (without power-cycle), or must it also include a power-cycle?
For target hardware, and to save data over a power-cycle, You need to provide some sort of Non-Volatile storage - there are many possibilities; eg: FRAM EEPROM Battery-backed SRAM Flash
No no Sir,
Am asking during Simulation...Some Internal Memories are changing constantly...Please say how to restore these values...
http://www.keil.com/support/man/docs/uv3/uv3_cm_save.htm
http://www.keil.com/support/man/docs/uv3/uv3_cm_load.htm
"Some Internal Memories are changing constantly"
Of course they are! It in is the very nature of programs that they use memory; therefore you should expect that memory contents should change constantly as the program executes!
It is also in the nature of memories that their content is undefined at start-up; if your software relies upon certain values being present in the memory at start-up, then you need to write code to do that. This is called Initialisation.
eg, see http://www.keil.com/support/man/docs/c51/c51_ap_startup.htm and the associated knowledgebase articles.