This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to Read/Write sequential data from/into a Memory

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.

Parents

  • 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.

Reply

  • 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.

Children