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

Define struct on external EEPROM

Hello all,
I'm facing a little understanding problem.
At my design I use the AT89C51RD2 micro and also two external memory devices – SRAM and parallel EEPROM.
At my code I have several structs that I want them to be at the external EEPROM. What I did (and I think it's not OK) is to define such a parameter in the global memory area and then copy him to the external EEPROM. I think it's not OK to do so because I waste global memory area on data that I don't want him to be there. Also, in this case I receive duplicate data.
As I understand I can't do something like "volatile DATA xdata stData _at_ 0x8000;"
Where DATA is a struct compose from many data types like char, int and other structs.
Can anyone know a way to define a struct (bigger then one byte) directly in external memory?

0