<?xml version="1.0" encoding="utf-8"?>
				<!-- generator="e107" -->
				<!-- content type="Forum / topic" -->
				<rss  version="2.0">
				<channel>
				<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>

<language>en-gb</language>
				<copyright><a rel="license" href="http://creativecommons.org/licenses/by-nc/2.5/in/" target="_blank"><img alt="Creative Commons License" width="80" height="15" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/2.5/in/80x15.png" target="_blank" /></a>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc/2.5/in/" target="_blank">Creative Commons Attribution-Noncommercial 2.5 India License</a>.<a href='http://www.8051projects.net/disclaimer.htm' target='_blank' />Rickey's World Disclaimer</a></copyright>
				<managingEditor>Ajay Bhargav - contact@nospam.com</managingEditor>
				<webMaster>contact@nospam.com</webMaster>
				<pubDate>Mon, 01 Dec 2008 11:38:39 -0800</pubDate>
				<lastBuildDate>Mon, 01 Dec 2008 11:38:39 -0800</lastBuildDate>
				<docs>http://backend.userland.com/rss</docs>
				<generator>e107 (http://e107.org)</generator>
				<ttl>60</ttl>
				<textInput>
				<title>Search</title>
				<description>Search 8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes</description>
				<name>query</name>
				<link>http://www.8051projects.net/search.php</link>
				</textInput>
						<item>
						<title>A little bit of a problem with while loop..</title>
<link>http://www.8051projects.net/forum-t10549.html</link>
<description><![CDATA[How do I use the internal timer in the 8051 for my programs? I need to use it to send a delayed SMS.<br /><br /><br />edit: I've changed the thread title. Before, I was asking on how to use the internal timer.]]></description>
<pubDate>Wed, 02 Jul 2008 22:53:21 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t10549.html</guid>
</item>
						<item>
						<title>Re: A little bit of a problem with while loop..</title>
<link>http://www.8051projects.net/forum-t10549.html</link>
<description><![CDATA[You would need to first initialise certain registers.<br />The TMOD register has to be 1st loaded with a value indicating which(of the 4) modes the timer will use.<br />If 16 bit mode(mode 1) is used,the TH and TL registers are to be loaded with an initial value from which the up count starts.In 16 bit mode the timer can count from 0x00 to 0xffff.So say you load TH and TH with 0x2B and 0x2C respectively,then the timer will start counting from 0x2B2C to 0xFFFF.<br />Now each count represents some fixed amount of delay(depending on the xtal),say d.Thus the total delay would be the total no. of counts * d.In the above case ( FFFF-2B2C) * d.<br />d can be found by dividing the xtal frequency by 12 and dividing 1000000 by the derived value to arrive at 'd' in micro seconds.<br />For eg. with a 11059200Hz xtal.....<br />11059200/12= 921600.<br />1000000/921600 = 1.085 us<br /><br />Thus after every 1.085us the timer will increment.<br />Plz read the datasheet for more info.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Thu, 03 Jul 2008 05:28:56 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t10549.html</guid>
</item>
						<item>
						<title>Re: A little bit of a problem with while loop..</title>
<link>http://www.8051projects.net/forum-t10549.html</link>
<description><![CDATA[Thanks. Uh..about the datasheet..I don't see it.]]></description>
<author>Judgement&lt;darknovat2t@nospam.com&gt;</author>
<pubDate>Thu, 03 Jul 2008 05:49:51 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t10549.html</guid>
</item>
						<item>
						<title>Re: A little bit of a problem with while loop..</title>
<link>http://www.8051projects.net/forum-t10549.html</link>
<description><![CDATA[Yes you're right... the Atmel datasheet doesn't have it.<br />Use this tut instead<a class='bbcode' href='http://www.8051projects.net/out.php?link= http://www.8052.com/tuttimer.phtml' rel='external'  target='_blank'> http://www.8052.com/tuttimer.phtml</a>]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Thu, 03 Jul 2008 08:34:13 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t10549.html</guid>
</item>
						<item>
						<title>Re: A little bit of a problem with while loop..</title>
<link>http://www.8051projects.net/forum-t10549.html</link>
<description><![CDATA[Thanks. But now I have another problem. I can't end my while loop using return(1); <br />It always gives me an error. Is there any way I can solve this? Or is there any alternative I can take? <br /> <div class='indent'><br />void read_sms(void)<br />{<br />	int r,y;<br />	r=0; y=0;<br /><br />	while(y!=1)<br />	{<br />		int r=0;<br />		for(r=0;r&lt;13;r++)<br />		{<br />			tx0(readsms[r]);<br />		}<br />	}<br />}<br />      <br /></div> <br />How can I stop the while loop? Thanks..]]></description>
<author>Judgement&lt;darknovat2t@nospam.com&gt;</author>
<pubDate>Sun, 06 Jul 2008 05:08:22 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t10549.html</guid>
</item>
						<item>
						<title>Re: A little bit of a problem with while loop..</title>
<link>http://www.8051projects.net/forum-t10549.html</link>
<description><![CDATA[well, u have to set the integer y to 1 to come out of the loop. The condition would be that u do that within the read_sms() function as the variable is local and will not be modified but instead stored and regained if u try setting that variable in the interrupt routine. The best thing would be to define the variable outside the routine (global variable and i think ur problem would be solved.<br /><br />Ps. <br />if ur tx0() function is returning a 1 then just modify ur instruction to:<br />y = tx0(readsms[r]);<br />]]></description>
<author>pdi33&lt;islurpundalik@nospam.com&gt;</author>
<pubDate>Sun, 06 Jul 2008 05:25:48 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t10549.html</guid>
</item>
				</channel>
				</rss>