Hi, I am using P89V51RD2 micro controller for my application.I am using kiel software for writing programs.after building my code it is showing as fallows, Program Size: data=12.2 xdata=626 code=44295 creating hex file from "SGW"... "SGW" - 0 Error(s), 6 Warning(s). Please clarify the following 1.I want to know what does data=12.2 , xdata=626, code=44295 signifies? 2.In general which part of program comes under data RAM ? and which comes under code flash(In the data sheet it is mentioned that 64KB on-chip code flash and 1KB data RAM ) With Regards, Bhaskar Reddy abreddy1990@yahoo.com
You need to study the so-called "bible" for the 8051; Links here: www.8052.com/.../120112
And, of course, the Keil Manuals; eg, http://www.keil.com/support/man/docs/c51/c51_le_memareas.htm
The 8051 is a very long-established and widely-used architecture - so there are plenty of resources available; eg, http://www.keil.com/books/8051books.asp http://www.8052.com/tutorial http://www.8052.com/faqs
data is the 256 bytes of internal RAM xdata is the 0-64K of external RAM ( which may be built into the chip now a days) Code goes to the Flash
"data is the 256 bytes of internal RAM"
Half of that is IDATA.
"Code goes to the Flash"
Although Flash is usually used to store the code, the physical memory technology has nothing to do with the 8051 Address Space:
Flash could be mapped into XDATA space; Code could be in RAM; Other non-volatile technologies are available; etc, etc,...
IDATA is the 256 bytes of internal RAM
Half of that is DATA.