Keil Logo Arm Logo

Discussion Forum

Regarding Program and Data memory

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
bhaskar reddy
Posted
21-Apr-2012 07:30 GMT
Toolset
C51
New! Regarding Program and Data memory

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

Read-Only
Author
Andrew Neil
Posted
21-Apr-2012 07:51 GMT
Toolset
C51
New! "Bible" time!

You need to study the so-called "bible" for the 8051; Links here:
http://www.8052.com/faqs/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

Read-Only
Author
Neil Kurzman
Posted
25-Apr-2012 01:05 GMT
Toolset
C51
New! RE: Regarding Program and Data memory

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

Read-Only
Author
Andrew Neil
Posted
25-Apr-2012 06:17 GMT
Toolset
C51
New! RE: Regarding Program and Data memory

"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,...

Read-Only
Author
erik malund
Posted
25-Apr-2012 13:21 GMT
Toolset
C51
New! wrong way around

"data is the 256 bytes of internal RAM"

Half of that is IDATA.

IDATA is the 256 bytes of internal RAM

Half of that is DATA.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.