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

on-chip xram

hello everyone,
i am quite new to programming 8051..hoping to receive some help..
i have a pointer variable.The address stored in this variable resides in the on-chip XRAM.

unsigned char xdata *xloc;

i need the control of my program to be transferred to this address..how can it be done in C???
Thank You in advance for the help..

Parents
  • So have you selected a chip - or implemented external hardware - that allows your device to map XDATA memory into the CODE data space?

    If you haven't, then you are stuck having started to implement something you can't finish. The 8051 chip will only execute from CODE. So any "user-interactive project" that should allow someone to download applets to run just have to place that applet within CODE. Either with a chip that has IAP (In Application Programming), where you can reprogram some of the CODE flash memory. Or with a chip or external hardware that allows an area of XDATA and CODE to overlap so you can write your data to XDATA and then access it through CODE.

Reply
  • So have you selected a chip - or implemented external hardware - that allows your device to map XDATA memory into the CODE data space?

    If you haven't, then you are stuck having started to implement something you can't finish. The 8051 chip will only execute from CODE. So any "user-interactive project" that should allow someone to download applets to run just have to place that applet within CODE. Either with a chip that has IAP (In Application Programming), where you can reprogram some of the CODE flash memory. Or with a chip or external hardware that allows an area of XDATA and CODE to overlap so you can write your data to XDATA and then access it through CODE.

Children