|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Offsets with Far Memory AccessInformation in this article applies to:
QUESTIONI need to manage an EEPROM on an Atmel device, and I am using the 'far' memory type as explained in Keil\C51\EXAMPLES\FarMemory\E2PROM on 80C51RD2. Within the EEPROM, I store offsets to other elements using WORD variables. However, when I try to access these objects, the code fails. My access code looks like:
It seems to be impossible to access EEPROM space by just using an offset. Do you have a solution to that problem? ANSWERYes, there is a solution. You can use the FARRAY macros to define an EEPROM memory. The following example shows you how to do that.
MORE INFORMATION
SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.