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

Direct memory adddressing

Hi,
I want to read in my program, the data stored at a particular location in external ROM. How do I do that in 'C'?
Regards
Sonali

Parents
  • Does it really need to be a particular location in external ROM, or does it just need to be in ROM rather than RAM?

    Look up the following in the manual:
    Absolute Variable Location;
    * The _at_ keyword;
    * Memory-specific pointers;
    * Accessing Absolute Memory Locations;
    * Absolute Memory Access Macros;

    All the manuals are accessible via the 'Books' tab in the uVision Project window.

    See the thread "preset of a code-byte"
    http://www.keil.com/forum/msgpage.asp?MsgID=2645

Reply
  • Does it really need to be a particular location in external ROM, or does it just need to be in ROM rather than RAM?

    Look up the following in the manual:
    Absolute Variable Location;
    * The _at_ keyword;
    * Memory-specific pointers;
    * Accessing Absolute Memory Locations;
    * Absolute Memory Access Macros;

    All the manuals are accessible via the 'Books' tab in the uVision Project window.

    See the thread "preset of a code-byte"
    http://www.keil.com/forum/msgpage.asp?MsgID=2645

Children