<?xml version="1.0" encoding="utf-8" ?>
				<!-- generator="e107" -->
				<!-- content type="Forum / topic" -->
				<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
				<channel rdf:about="http://www.8051projects.net/">
				<title>8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes : Forum / topic</title>
				<link>http://www.8051projects.net/</link>
				<description>Learn to make simple microcontroller projects, pic, 8051, avr and arm projects. download 8051 projects, tutorials, libraries, sample codes. join the microcontroller discussion forum and ask doubts regarding electronics. the best source for 8051 over internet.</description>
				<dc:language>en-gb</dc:language>
				<dc:date>2009-01-08T04:57:02-08:00</dc:date>
				<dc:creator>contact@nospam.com</dc:creator>
				<admin:generatorAgent rdf:resource="http://e107.org" />
				<admin:errorReportsTo rdf:resource="mailto:contact@nospam.com" />
				<sy:updatePeriod>hourly</sy:updatePeriod>
				<sy:updateFrequency>1</sy:updateFrequency>
				<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
				<items>
				<rdf:Seq>
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11326.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11326.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11326.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11326.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11326.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11326.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11326.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11326.html" />
				</rdf:Seq>
				</items>
				</channel>
						<item rdf:about="http://www.8051projects.net/forum-t11326.html">
						<title>Strange problem with String length in 8051</title>
						<link>http://www.8051projects.net/forum-t11326.html</link>
						<dc:date>2009-01-08T04:57:02-08:00</dc:date>
						<dc:creator></dc:creator>
						<dc:subject></dc:subject>
						<description>I am facing a very strange problem with string length in my program. I am getting following compiler error with Keil compiler:*** ERROR L107: ADDRESS SPACE OVERFLOW    SPACE:   DATA        SEGMENT: _DATA_GROUP_    LENGTH:  002EHProgram Size: data=111.2 xdata=0 code=2709The problem occurs if I take the size of string more than 40 i.e. char str[50]But if I reduce the size of string to 40 or less than 40 then code compile without any error.Please help me I need a string of around 160 length so that I can send an SMS using that string.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11326.html">
						<title>Re: Strange problem with String length in 8051</title>
						<link>http://www.8051projects.net/forum-t11326.html</link>
						<dc:date>2009-01-08T04:57:02-08:00</dc:date>
						<dc:creator>sashijoseph</dc:creator>
						<dc:subject></dc:subject>
						<description>Yup...an idata variable should work.It allows you to use all of the 256 bytes.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11326.html">
						<title>Re: Strange problem with String length in 8051</title>
						<link>http://www.8051projects.net/forum-t11326.html</link>
						<dc:date>2009-01-08T04:57:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>hi say2paul,maybe the problem is because the string is occupying the valuable RAM space( which is only 128 bytes in case of 8051). If the string is a fixed value ( u r not modifying the content in the program), try changing it to the following:constant char str[50] this will ensure that the string is stored in the program memory space instead of occupying the data RAM.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11326.html">
						<title>Re: Strange problem with String length in 8051</title>
						<link>http://www.8051projects.net/forum-t11326.html</link>
						<dc:date>2009-01-08T04:57:02-08:00</dc:date>
						<dc:creator>say2paul</dc:creator>
						<dc:subject></dc:subject>
						<description>pdi33 wrote ...hi say2paul,maybe the problem is because the string is occupying the valuable RAM space( which is only 128 bytes in case of 8051). If the string is a fixed value ( u r not modifying the content in the program), try changing it to the following:constant char str[50] this will ensure that the string is stored in the program memory space instead of occupying the data RAM.I cannot take it as constant as I need to append data to same string..I think idata can work in this case as I am using AT89C55WD with 256 bytes of RAM.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11326.html">
						<title>Re: Strange problem with String length in 8051</title>
						<link>http://www.8051projects.net/forum-t11326.html</link>
						<dc:date>2009-01-08T04:57:02-08:00</dc:date>
						<dc:creator>say2paul</dc:creator>
						<dc:subject></dc:subject>
						<description>Can I use AT24C08 (external memory) instead??</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11326.html">
						<title>Re: Strange problem with String length in 8051</title>
						<link>http://www.8051projects.net/forum-t11326.html</link>
						<dc:date>2009-01-08T04:57:02-08:00</dc:date>
						<dc:creator>say2paul</dc:creator>
						<dc:subject></dc:subject>
						<description>Anybody . . !</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11326.html">
						<title>Re: Strange problem with String length in 8051</title>
						<link>http://www.8051projects.net/forum-t11326.html</link>
						<dc:date>2009-01-08T04:57:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>128 bytes of memory of 8052 architecture is accessible directly using variables stored in ram, rest of 128 can only be accessed using indirect addressing.as sashi said try using idata (use the indirect part of your controller ram)e.g.CODE:<br />unsigned char idata abc&#91;50&#93;;<br />&nbsp;also if you want to use the external memory, its good but i would say a hectic process as reading and writing from eeprom is slow.try giving idata a chance</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11326.html">
						<title>Re: Strange problem with String length in 8051</title>
						<link>http://www.8051projects.net/forum-t11326.html</link>
						<dc:date>2009-01-08T04:57:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>hi say to paul,As so truely said by ajay, EEPROM programming is slow but if u are planning to use 160 bytes for ur application ,then the uC will have only 96 bytes for all the other processing including the stack. So  i feel u should keep the other global variables and static variables to a minimum. Try using local variables (variables inside functions) wherever possible so that the same RAM can be reused by the uC for multiple functions making the code more efficient.good luck.</description>
						</item>
				</rdf:RDF>