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.
I need to keep a critical variable in CODE space (target: c8051F320). What is the easiest way for updating it in C.
The 8051 cannot write to code space. If your hardware happens to map code memory into the xdata space as well as code space(a "von Neumann" memory architecture), then you can write to the address in xdata that corresponds to the proper place in code memory.
"...write to the address in xdata that corresponds to the proper place in code..." If the CODE space has Flash, you will also have to follow the flash-programming procedure - including any erase requirements... Doesn't the c8051F320 have EEPROM?
Yes, the CODE has flash. What is the programming procedure?
Yes, the CODE has flash. What is the programming procedure? varies from chip to chip, read the datasheet. (oops, sorry) Erik
Thank you all. I go it.