<?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 on: AVR System Timer</title>
	<atom:link href="http://www.shapeshifter.se/2009/06/02/avr-system-timer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shapeshifter.se/2009/06/02/avr-system-timer/</link>
	<description>Mostly miscellaneous technical mumbo-jumbo.</description>
	<lastBuildDate>Sun, 11 Nov 2012 22:20:30 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: fli</title>
		<link>http://www.shapeshifter.se/2009/06/02/avr-system-timer/comment-page-1/#comment-1713</link>
		<dc:creator>fli</dc:creator>
		<pubDate>Wed, 10 Jun 2009 08:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.shapeshifter.se/?p=546#comment-1713</guid>
		<description>No, it was not intentional and yes, you&#039;re right.
Should be enough to disable the timer interrupts only though.

(Anecdotal evidence, been using this a lot and I&#039;ve never seen a bad value)</description>
		<content:encoded><![CDATA[<p>No, it was not intentional and yes, you&#8217;re right.<br />
Should be enough to disable the timer interrupts only though.</p>
<p>(Anecdotal evidence, been using this a lot and I&#8217;ve never seen a bad value)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Hibma</title>
		<link>http://www.shapeshifter.se/2009/06/02/avr-system-timer/comment-page-1/#comment-1710</link>
		<dc:creator>Nick Hibma</dc:creator>
		<pubDate>Wed, 10 Jun 2009 06:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.shapeshifter.se/?p=546#comment-1710</guid>
		<description>You are not using any sei() and cli() calls in clock_time(). Is this intentional? I can&#039;t imagine an 8-bit CPU updating a 32 bit value atomically. The problam arises when for example 0x0000ffff is incremented while clock_time() is fetching the value. Depending on how the memory is fetched you might get 0x00000000 or 0x0001ffff instead of the correct 0x0000ffff or 0x0001ffff values.

Nick &quot;I&#039;ve written 1000 lines of AVR code as well!&quot; Hibma</description>
		<content:encoded><![CDATA[<p>You are not using any sei() and cli() calls in clock_time(). Is this intentional? I can&#8217;t imagine an 8-bit CPU updating a 32 bit value atomically. The problam arises when for example 0&#215;0000ffff is incremented while clock_time() is fetching the value. Depending on how the memory is fetched you might get 0&#215;00000000 or 0&#215;0001ffff instead of the correct 0&#215;0000ffff or 0&#215;0001ffff values.</p>
<p>Nick &#8220;I&#8217;ve written 1000 lines of AVR code as well!&#8221; Hibma</p>
]]></content:encoded>
	</item>
</channel>
</rss>
