Dear Sir;
Currently am doing Project in p89c51rd2 and using the Header file REG51F.h. After my code compile it will show the error "Data Segment too large".
How can i reduce this or avoid this error?
Please help me
p89c51rd2 is a 256 Ram memory then how it makes error, i cant understand
Thanks Thilak.S
Do you understand the different memory spaces of the 8051 architecture? See: http://www.keil.com/support/man/docs/c51/c51_le_memareas.htm
If you don't, then you have some basic study to do first: http://www.keil.com/books/8051books.asp www.8052.com/.../120112 http://www.8052.com/tutorial
If you do, then it should be obvious that, when one memory space is full, you will have to consider using another. Or just reduce the amount of data required by your program!
The compiler output shows you how much of each of the various memory spaces is being used.
"p89c51rd2 is a 256 Ram memory then how it makes error, i cant understand"
Note that's just 256 bytes of RAM - and it has to include space for the stack.
It is really quite easy to use up 256 bytes of RAM!
The p89c51rd2 also has 768 Bytes XRAM (ie, XDATA)...