<?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: Handling external Interrupts with Arduino</title>
	<atom:link href="http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/feed/" rel="self" type="application/rss+xml" />
	<link>http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/</link>
	<description>so much time, so little to do.</description>
	<lastBuildDate>Sun, 07 Mar 2010 18:56:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: nairdA</title>
		<link>http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/comment-page-1/#comment-2416</link>
		<dc:creator>nairdA</dc:creator>
		<pubDate>Fri, 15 May 2009 02:50:30 +0000</pubDate>
		<guid isPermaLink="false">http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/#comment-2416</guid>
		<description>too much fun... for you atmega168 users, use EIMSK instead of GICR.  just search for the INT0 flag in the atmega168 datasheet to find this.</description>
		<content:encoded><![CDATA[<p>too much fun&#8230; for you atmega168 users, use EIMSK instead of GICR.  just search for the INT0 flag in the atmega168 datasheet to find this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Odin HG</title>
		<link>http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/comment-page-1/#comment-2379</link>
		<dc:creator>Odin HG</dc:creator>
		<pubDate>Sun, 07 Sep 2008 19:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/#comment-2379</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hyo Byun</title>
		<link>http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/comment-page-1/#comment-2051</link>
		<dc:creator>Hyo Byun</dc:creator>
		<pubDate>Wed, 30 Jan 2008 22:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/#comment-2051</guid>
		<description>Thanks so much!!! I was trying to read a 128 /rotation encoder without interrupts, and I didn&#039;t know the Arduino had the ability to do so until I came across this site.
Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks so much!!! I was trying to read a 128 /rotation encoder without interrupts, and I didn&#8217;t know the Arduino had the ability to do so until I came across this site.<br />
Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/comment-page-1/#comment-1948</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Tue, 11 Dec 2007 13:36:13 +0000</pubDate>
		<guid isPermaLink="false">http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/#comment-1948</guid>
		<description>I need to count the clicks of an external wheel encoder using interrupts. So instead reading the value in the ISR I should increment it if the wheel goes forward and decrement it if the wheel goes backward? I have 32 clicks (16 high and 16 low) for one wheel rotation and 1 rotation per second. Is this doable or should I use the polled method?</description>
		<content:encoded><![CDATA[<p>I need to count the clicks of an external wheel encoder using interrupts. So instead reading the value in the ISR I should increment it if the wheel goes forward and decrement it if the wheel goes backward? I have 32 clicks (16 high and 16 low) for one wheel rotation and 1 rotation per second. Is this doable or should I use the polled method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: md</title>
		<link>http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/comment-page-1/#comment-508</link>
		<dc:creator>md</dc:creator>
		<pubDate>Wed, 27 Dec 2006 10:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/#comment-508</guid>
		<description>Hi macsimski,

the avr prefix just denotes that this header file is in the &quot;avr&quot; subdirectory of the include path of the libraries. Basically, your include path is composed of various paths in the arduino installation. io.h can be found in &lt;arduino&gt;/tools/avr/avr/include. There is a subdirectory avr (again) with a file io.h, so this is the one which will be included. So, if you use the &lt;&gt; brackets in an include statement the compiler will look in its include paths. I saw you use the &quot;&quot;s with your includes - in this case, you instruct the compiler to look in the current path.

Regarding the GICR etc. stuff: Read the datasheet of the ATMega8. The AVRlib defines the same symbols as used in the datasheet, which is why the syntax above works. Otherwise, you would have to use something like porta.1=0x05 ;-((&lt;/arduino&gt;</description>
		<content:encoded><![CDATA[<p>Hi macsimski,</p>
<p>the avr prefix just denotes that this header file is in the &#8220;avr&#8221; subdirectory of the include path of the libraries. Basically, your include path is composed of various paths in the arduino installation. io.h can be found in <arduino>/tools/avr/avr/include. There is a subdirectory avr (again) with a file io.h, so this is the one which will be included. So, if you use the <> brackets in an include statement the compiler will look in its include paths. I saw you use the &#8220;&#8221;s with your includes &#8211; in this case, you instruct the compiler to look in the current path.</arduino></p>
<p>Regarding the GICR etc. stuff: Read the datasheet of the ATMega8. The AVRlib defines the same symbols as used in the datasheet, which is why the syntax above works. Otherwise, you would have to use something like porta.1=0&#215;05 ;-((</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: macsimski</title>
		<link>http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/comment-page-1/#comment-495</link>
		<dc:creator>macsimski</dc:creator>
		<pubDate>Sun, 24 Dec 2006 22:44:01 +0000</pubDate>
		<guid isPermaLink="false">http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/#comment-495</guid>
		<description>And where did you find info on
 
// Global Enable INT0 interrupt
  GICR &#124;= ( 1 </description>
		<content:encoded><![CDATA[<p>And where did you find info on</p>
<p>// Global Enable INT0 interrupt<br />
  GICR |= ( 1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: macsimski</title>
		<link>http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/comment-page-1/#comment-494</link>
		<dc:creator>macsimski</dc:creator>
		<pubDate>Sun, 24 Dec 2006 22:04:09 +0000</pubDate>
		<guid isPermaLink="false">http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/#comment-494</guid>
		<description>I see that you include avr/io.h in your scetch. is it not automatically included? and what means the avr/ prefix? do&#039;nt i have to copy the headers to the special arduino libary folders then?</description>
		<content:encoded><![CDATA[<p>I see that you include avr/io.h in your scetch. is it not automatically included? and what means the avr/ prefix? do&#8217;nt i have to copy the headers to the special arduino libary folders then?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: md</title>
		<link>http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/comment-page-1/#comment-475</link>
		<dc:creator>md</dc:creator>
		<pubDate>Thu, 21 Dec 2006 08:28:31 +0000</pubDate>
		<guid isPermaLink="false">http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/#comment-475</guid>
		<description>max - yes, the parser of wordpress messed around. I added the missing includes. Unfortunately, the intendation is broken ;-(( I will look after it later.

Concerning the DCF77 clock - I have a post describing it: http://gonium.net/md/2006/11/05/arduino-dcf77-radio-clock-receiver/</description>
		<content:encoded><![CDATA[<p>max &#8211; yes, the parser of wordpress messed around. I added the missing includes. Unfortunately, the intendation is broken ;-(( I will look after it later.</p>
<p>Concerning the DCF77 clock &#8211; I have a post describing it: <a href="http://gonium.net/md/2006/11/05/arduino-dcf77-radio-clock-receiver/" rel="nofollow">http://gonium.net/md/2006/11/05/arduino-dcf77-radio-clock-receiver/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: max</title>
		<link>http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/comment-page-1/#comment-473</link>
		<dc:creator>max</dc:creator>
		<pubDate>Thu, 21 Dec 2006 00:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/#comment-473</guid>
		<description>cool! And I&#039;m the first one to post a reply! erm... isn&#039;t there supposed to be something behind the &quot;includes&quot; at the top of the script?
and: Any luck with your DCF77 already? I&#039;d be really interested in that.
cheers
max</description>
		<content:encoded><![CDATA[<p>cool! And I&#8217;m the first one to post a reply! erm&#8230; isn&#8217;t there supposed to be something behind the &#8220;includes&#8221; at the top of the script?<br />
and: Any luck with your DCF77 already? I&#8217;d be really interested in that.<br />
cheers<br />
max</p>
]]></content:encoded>
	</item>
</channel>
</rss>
