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

how to select a address in the far memory

we are using p89c669 ,and the compiler is keil uvision 2,
what should we do to select these addressess?

far unsigned char lcd_command _at_ 0x020000;
far unsigned char lcd_data    _at_ 0x028000;

Parents
  • I'm not sure the _at_ method works for far memory (or if it does, it doesn't work very well, at least up to version 7.20).

    I suggest you either use the <absacc.h> macros for absolute memory access, or use the linker to position the variable segments of dedicated source files at fixed addresses.

Reply
  • I'm not sure the _at_ method works for far memory (or if it does, it doesn't work very well, at least up to version 7.20).

    I suggest you either use the <absacc.h> macros for absolute memory access, or use the linker to position the variable segments of dedicated source files at fixed addresses.

Children