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

XRAM usage in AT89c51rc2

Hi all,
I'm using at89c51rc2 by atmel and keil uvision2. Programming in C.

i might have some problem when accessing the 1024 bytes of Xdata (available on chip). Some variables are being corrupted without any sense.

I've been reading about the theme and what i'm doing is:

I set AUXR as follows in startup.a51 to use the 1024 bytes of xram. Also, in uvision I set onchip memory (0x00-0x3FF)

AUXR DATA 8EH
.....
.....
STARTUP1:
MOV AUXR,#0CH

uvision options:
Memory model: large
code rom size: large

and actually my xdata is about 600 bytes.

thanks in advance