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.
Dear All, I'm really new for 8051 programming. I coding with C and I've a structure variable below, typedef struct PERSON_ST{ int ID; char Name[10]; char Age; }; struct PERSON_ST person; I want to store this data for 100 records. I don't know how to read/write a sequential data from/into a volatile memory. Do you have any suggestion? Thank you for any answers. Nat.
Golly, this is so obviously (being a basic C issue) not a question specific to 8051's or Keil tools, that I have to suspect that you are trying to solicit an answer for some kind of homework. Even the structure members "smell" of homework.
I really want to know HOW TO Save/ReStore data from External Memory. I 'm new for Microcontroller Programming. Help me please.
See chapter 5 of the following tutorial. http://home.netcom.com/~tjensen/ptr/pointers.htm
With the Keil tools, you can locate variables in external memory with the "xdata" memory type specifier. See chapter 3 of the C compiler manual, under "Memory Areas", page 90. Did you mean "copy to a non-volatile memory"? Copying to a normal volatile RAM is pretty straightforward. If so, the particular memory device you're using (flash, EEPROM, whatever) will have some particular sequence of bits you have to poke to make it store a value. See the appropriate datasheet for the part that you're using.
Thank you very much for all reply. I will try it again.
Interesting link about pointers. Thanks for the info, Walt. --Geert