if the CARM compiler have the key word define the external data just like "xdata" in 51?
Usage of __ram see: http://www.keil.com/support/man/docs/ca/ca_le_ram.htm
But this is the usage of RAM Function, it can make the function copy to RAM. And what I want is to define a variable at external RAM, not a function. So, how should I do?
Variables are by default in RAM (except when you apply the 'const' keyword). Therefore it makes no sense to apply another __ram keyword for variables. Reinhard
Take a look again to: http://www.keil.com/support/man/docs/ca/ca_userclass.htm Imaging that NVRAM is your external RAM. Of course you may also use 'XRAM' as userclass or any name you want. Reinhard
I do it. thanks alot Reinhard