89S8252 is having internal 2kb of EEPROM,that is defined in the xdata memory space i want to create a structure having the following content,But to write in that memory it require some different method. xdata struct EEPROM {
unsigned int Last_Data; struct EEPROM xdata *Node; };
struct EEPROM xdata * xdata p _at_ 0x0000; but if i am simulating this program data is not in the EEPROM but it is in the xdata RAM space
You still haven't bothered to look at the instructions for posting code, have you?
http://www.keil.com/forum/docs/thread8939.asp
Do you understand about pointer sizes now?
"89S8252 is having internal 2kb of EEPROM,that is defined in the xdata memory space"
Does this chip have an SFR that controls whether XDATA accesses got to RAM or EEPROM?
"but if i am simulating this program data is not in the EEPROM but it is in the xdata RAM space"
How have you configured the simulator to distinguish between EEPROM and RAM?
There is one internal SFR that will define Xdata or EEPROM , I want to define that EEPROM in the Xdata spcae, is it possible
"There is one internal SFR that will define Xdata or EEPROM"
You need to understand this very clearly:
"XDATA" refers simply to an address space; it tells you nothing about the type of device that is accessed by the address - eg, it could be RAM, ROM, Memory-Mapped IO or, in this case, EEPROM.
It is all XDATA - the SFR controls whether the particular XDATA address range accesses RAM or EEPROM.
uVision simulation for this part is described here: http://www.keil.com/dd/vtr/2982/1368.htm
Note that this is an 8051 derivative; not '251: http://www.keil.com/dd/chip/2982.htm
I got ur point,If I am defining the EEPROM in Xdata using the WMCON SFR, and i want to do the following operation
unsigned int xadat temp; temp = 0xAAAA;
In this case if u see the timing diagram of the xdata memory write,it is one machine cycle,but the EEPROM is takinh more time to complete write operation,so how i will add the wait state in this operation
what i have to do if my memory is slow than the microcontroller speed,how to add the wait states in memory access?
What has this got to do with simulation?
If the EEPROM is internal to the microcontroller, how can this be a problem?
What does the Datasheet say?
If u check the datasheet of the 89c51RD2,it is having the internal 1k RAM that i can use by defining the xdata variable,same thing i want to do it for the internal EEPROM of 89s8252,only difference is that we EEPORM require more time to write,