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

A memory question on Atmel AT89C51CC03

From the data sheet, it says the Atmel AT89C51CC03 has 256 bytes RAM and 2048 byte ERAM. When I use Keil compile my code, at the end, Keil says data = 105, xdata = 2285...

There is no other warning, but should xdata be less than 2048? I am just wondering if this is the root cause of my problem.

Thanks,

Parents
  • Thanks for the advice. I thought that may cause the problem, but was surprised Keil wouldn't give any warning.

    The problem, in my case, is that most of the variables are used to drive a Profibus ASIC chip and this driver was developed by Siemens years ago. I really don't want to spend time to hack/modify their driver, so I guess I will have to add external memory or pick a different 8051 has more RAM.

Reply
  • Thanks for the advice. I thought that may cause the problem, but was surprised Keil wouldn't give any warning.

    The problem, in my case, is that most of the variables are used to drive a Profibus ASIC chip and this driver was developed by Siemens years ago. I really don't want to spend time to hack/modify their driver, so I guess I will have to add external memory or pick a different 8051 has more RAM.

Children