Using EEPROM and variables in xdata at the same time
Ali Korhonen
I'm using P89C51RC+ microcontroller. I need to use large memory model(big variables) but while accessing eeprom (in xdtata) program hangs due to variable "overwriting" in xdata. How can I place variables to xdata and still use eeprom?
Read-Only
Author Mark Odell
Posted 1-Dec-2000 12:49 GMT
Toolset C51
RE: Using EEPROM and variables in xdata at the same time
Mark Odell
I'm using P89C51RC+ microcontroller. I need to use large memory model(big variables)
You should still use the small data model and explicitly allocate large objects by using the xdata keyword. In 12 years I've yet to use anything but the small model.
but while accessing eeprom (in xdtata) program hangs due to variable "overwriting" in xdata. How can I place variables to xdata and still use eeprom?
What kind of EEPROM? Do you mean the overlay feature is re-using addresses you don't want it to? If so, read up about how to exclude modules from overlay analysis.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.