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.
I want to define some values in code memory with specific location. For example
code unsigned char MyArray[] _at_ 0xF000 = {0x01, 0x02};
After that, I can use "MyArray[0]" and "MyArray[1]" to access the memory at 0xF000 and 0xF001. How can I achieve this?
Go to the description of _at_ in the manual:
http://www.keil.com/support/man/docs/c51/c51_le_absvarloc.htm
At the bottom of the page is a list of Related Knowledgebase Articles - and one of them is titled "INITIALIZING AN ABSOLUTELY LOCATED VARIABLE"
If you follow that link, you will also find links to previous threads on the same subject...