<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for uC Hobby</title>
	<atom:link href="http://www.uchobby.com/index.php/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.uchobby.com</link>
	<description>Microcontrollers Electronics Hobby</description>
	<lastBuildDate>Tue, 24 Jan 2012 09:58:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Resource Links by admin</title>
		<link>http://www.uchobby.com/index.php/resource-links/comment-page-1/#comment-2441</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 24 Jan 2012 09:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.uchobby.com/?page_id=605#comment-2441</guid>
		<description>@ElectroNick, your site is awesome, of course you can plug your blog.  I will add your link to the list. I hope you will do the same on your end.</description>
		<content:encoded><![CDATA[<p>@ElectroNick, your site is awesome, of course you can plug your blog.  I will add your link to the list. I hope you will do the same on your end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Resource Links by ElectroNick</title>
		<link>http://www.uchobby.com/index.php/resource-links/comment-page-1/#comment-2438</link>
		<dc:creator>ElectroNick</dc:creator>
		<pubDate>Mon, 23 Jan 2012 16:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.uchobby.com/?page_id=605#comment-2438</guid>
		<description>Can I shamelessly plug my own blog for this great list? 

http://elabz.com/  has mostly laser, CNC and mechatronics (robots, motor control) related projects and resources.

Thanks!</description>
		<content:encoded><![CDATA[<p>Can I shamelessly plug my own blog for this great list? </p>
<p><a href="http://elabz.com/" rel="nofollow">http://elabz.com/</a>  has mostly laser, CNC and mechatronics (robots, motor control) related projects and resources.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing delay() in Arduino Sketches &#8211; IsTime() to the rescue! by EmbeddingSome</title>
		<link>http://www.uchobby.com/index.php/2012/01/21/replacing-delay-in-arduino-sketches-istime-to-the-rescue/comment-page-1/#comment-2437</link>
		<dc:creator>EmbeddingSome</dc:creator>
		<pubDate>Mon, 23 Jan 2012 16:12:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.uchobby.com/?p=593#comment-2437</guid>
		<description>Despite the special handling needed for time-sensitive applications (and that would probably only affect clocks and long-time data loggers) , the IsTime() idea is very useful  for anything from button debounce to PWM motor control, POV displays and much more. I always re-write the part of the code that contains delay() if I&#039;m using someone else&#039;s code and never use delay() myself - it never actually made any sense to me to make the uC literally stop for any period of time - there&#039;s always a useful task that can be completed during that time.</description>
		<content:encoded><![CDATA[<p>Despite the special handling needed for time-sensitive applications (and that would probably only affect clocks and long-time data loggers) , the IsTime() idea is very useful  for anything from button debounce to PWM motor control, POV displays and much more. I always re-write the part of the code that contains delay() if I&#8217;m using someone else&#8217;s code and never use delay() myself &#8211; it never actually made any sense to me to make the uC literally stop for any period of time &#8211; there&#8217;s always a useful task that can be completed during that time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing delay() in Arduino Sketches &#8211; IsTime() to the rescue! by Axel Werner</title>
		<link>http://www.uchobby.com/index.php/2012/01/21/replacing-delay-in-arduino-sketches-istime-to-the-rescue/comment-page-1/#comment-2433</link>
		<dc:creator>Axel Werner</dc:creator>
		<pubDate>Sun, 22 Jan 2012 21:12:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.uchobby.com/?p=593#comment-2433</guid>
		<description>the idea is good. but as far i understand it it will not save me much code or headache if i use it instead of doing it manualy setting up two variables for &quot;lastTime&quot; and &quot;interval&quot; and then do a  if(millis()-lastTime&gt;interval) { lastTime=millis(); do more stuff here;}</description>
		<content:encoded><![CDATA[<p>the idea is good. but as far i understand it it will not save me much code or headache if i use it instead of doing it manualy setting up two variables for &#8220;lastTime&#8221; and &#8220;interval&#8221; and then do a  if(millis()-lastTime&gt;interval) { lastTime=millis(); do more stuff here;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing delay() in Arduino Sketches &#8211; IsTime() to the rescue! by admin</title>
		<link>http://www.uchobby.com/index.php/2012/01/21/replacing-delay-in-arduino-sketches-istime-to-the-rescue/comment-page-1/#comment-2430</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 22 Jan 2012 05:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.uchobby.com/?p=593#comment-2430</guid>
		<description>@ah I see your point now. Thank you! I just did not think about how the roll over would happen with the math. I actually did a test to prove it to myself.</description>
		<content:encoded><![CDATA[<p>@ah I see your point now. Thank you! I just did not think about how the roll over would happen with the math. I actually did a test to prove it to myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing delay() in Arduino Sketches &#8211; IsTime() to the rescue! by ah</title>
		<link>http://www.uchobby.com/index.php/2012/01/21/replacing-delay-in-arduino-sketches-istime-to-the-rescue/comment-page-1/#comment-2429</link>
		<dc:creator>ah</dc:creator>
		<pubDate>Sun, 22 Jan 2012 01:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.uchobby.com/?p=593#comment-2429</guid>
		<description>Well even after 50 days it’s not a problem.

Let’s say that you program is running for 4294967286 ms (which is 10 ms before overflow). And now you will call IsTime function next after 20ms. So the millis function return 10. Without any consideration of overflow you calculate this:

10 – 4294967286

And because the overflow (wrap around) nature of unsigned long the result is 20. It’s same result as if you calculate your formula for “overflow correction”:

(MAX – 4294967286) + 10

Actually result is 19 because you don’t consider the fact that actually overflow from MAX to 0 takes 1ms but it’s just a detail.

My point is if you skip the Rollover detection the behavior of IsTime function will be exactly the same.

PS: The code https://gist.github.com/1654676 is not in C# it’s C. Git just put the “#” character as a link after “C” – a bit unfortunate :)</description>
		<content:encoded><![CDATA[<p>Well even after 50 days it’s not a problem.</p>
<p>Let’s say that you program is running for 4294967286 ms (which is 10 ms before overflow). And now you will call IsTime function next after 20ms. So the millis function return 10. Without any consideration of overflow you calculate this:</p>
<p>10 – 4294967286</p>
<p>And because the overflow (wrap around) nature of unsigned long the result is 20. It’s same result as if you calculate your formula for “overflow correction”:</p>
<p>(MAX – 4294967286) + 10</p>
<p>Actually result is 19 because you don’t consider the fact that actually overflow from MAX to 0 takes 1ms but it’s just a detail.</p>
<p>My point is if you skip the Rollover detection the behavior of IsTime function will be exactly the same.</p>
<p>PS: The code <a href="https://gist.github.com/1654676" rel="nofollow">https://gist.github.com/1654676</a> is not in C# it’s C. Git just put the “#” character as a link after “C” – a bit unfortunate <img src='http://www.uchobby.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing delay() in Arduino Sketches &#8211; IsTime() to the rescue! by Michael</title>
		<link>http://www.uchobby.com/index.php/2012/01/21/replacing-delay-in-arduino-sketches-istime-to-the-rescue/comment-page-1/#comment-2428</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sun, 22 Jan 2012 01:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.uchobby.com/?p=593#comment-2428</guid>
		<description>Nice idea! I do something cruder for timing the main loop events in my AVC robot Data Bus. I may use this instead. Thanks!</description>
		<content:encoded><![CDATA[<p>Nice idea! I do something cruder for timing the main loop events in my AVC robot Data Bus. I may use this instead. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing delay() in Arduino Sketches &#8211; IsTime() to the rescue! by admin</title>
		<link>http://www.uchobby.com/index.php/2012/01/21/replacing-delay-in-arduino-sketches-istime-to-the-rescue/comment-page-1/#comment-2427</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 22 Jan 2012 00:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.uchobby.com/?p=593#comment-2427</guid>
		<description>@ah...  Thanks I added those links to the article. I do feel that the overflow handling is necessary. It will occur in about 50 days. If you have a project that runs for months the overflow could cause issues. Its not hard to fix. The only requirement now is that you call the IsTime function once every 50 days and the overflow will not be an issue. Yes its a very unlikely thing, but again, easy to fix.

Its a surprise that the C# solution was named IsTime() as well. I&#039;ve been using this trick for about 15 years. Its a simple way to get multi-tasking type performance.</description>
		<content:encoded><![CDATA[<p>@ah&#8230;  Thanks I added those links to the article. I do feel that the overflow handling is necessary. It will occur in about 50 days. If you have a project that runs for months the overflow could cause issues. Its not hard to fix. The only requirement now is that you call the IsTime function once every 50 days and the overflow will not be an issue. Yes its a very unlikely thing, but again, easy to fix.</p>
<p>Its a surprise that the C# solution was named IsTime() as well. I&#8217;ve been using this trick for about 15 years. Its a simple way to get multi-tasking type performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing delay() in Arduino Sketches &#8211; IsTime() to the rescue! by ah</title>
		<link>http://www.uchobby.com/index.php/2012/01/21/replacing-delay-in-arduino-sketches-istime-to-the-rescue/comment-page-1/#comment-2426</link>
		<dc:creator>ah</dc:creator>
		<pubDate>Sun, 22 Jan 2012 00:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.uchobby.com/?p=593#comment-2426</guid>
		<description>Nice article. It si similar approach as in http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay

And by the way. Because you are using unsigned long the overflow handling is unnecessary. The IsTime function can look like https://gist.github.com/1654676 with same functionality.</description>
		<content:encoded><![CDATA[<p>Nice article. It si similar approach as in <a href="http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay" rel="nofollow">http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay</a></p>
<p>And by the way. Because you are using unsigned long the overflow handling is unnecessary. The IsTime function can look like <a href="https://gist.github.com/1654676" rel="nofollow">https://gist.github.com/1654676</a> with same functionality.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Site Update &#8211; Things are Changing by foz</title>
		<link>http://www.uchobby.com/index.php/2012/01/05/site-update-things-are-changing/comment-page-1/#comment-2383</link>
		<dc:creator>foz</dc:creator>
		<pubDate>Sat, 07 Jan 2012 03:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.uchobby.com/?p=584#comment-2383</guid>
		<description>glad you&#039;re back, looking forward to new posts :)</description>
		<content:encoded><![CDATA[<p>glad you&#8217;re back, looking forward to new posts <img src='http://www.uchobby.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

