<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>LeafLabs Garden &#187; Topic: IDE 009 quadrature decoding issues</title>
		<link>http://forums.leaflabs.com/topic.php?id=778</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:26:46 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=778" rel="self" type="application/rss+xml" />

		<item>
			<title>mbolivar on "IDE 009 quadrature decoding issues"</title>
			<link>http://forums.leaflabs.com/topic.php?id=778#post-4914</link>
			<pubDate>Tue, 31 May 2011 12:52:22 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">4914@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;rjgrahek,&#60;/p&#62;
&#60;p&#62;Thanks for the update.  I've added a bug targeting 0.0.12:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://code.google.com/p/leaflabs/issues/detail?id=68&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/leaflabs/issues/detail?id=68&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rjgrahek on "IDE 009 quadrature decoding issues"</title>
			<link>http://forums.leaflabs.com/topic.php?id=778#post-4913</link>
			<pubDate>Tue, 31 May 2011 12:42:57 +0000</pubDate>
			<dc:creator>rjgrahek</dc:creator>
			<guid isPermaLink="false">4913@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Sorry about the delay in getting back to you.&#60;/p&#62;
&#60;p&#62;Below is the code I am using to setup the timer the quadrature encoder:&#60;/p&#62;
&#60;p&#62; pinMode(5, INPUT);&#60;br /&#62;
  pinMode(9, INPUT);&#60;br /&#62;
  Timer* encoderTimer;&#60;br /&#62;
  encoderTimer = (Timer*)TIMER4_BASE;&#60;br /&#62;
  encoderTimer-&#38;gt;CCMR1 = 0xF1F1;    //CC1S=01&#60;br /&#62;
  encoderTimer-&#38;gt;CCMR2 = 0x0000;&#60;br /&#62;
  encoderTimer-&#38;gt;CCER = 0x0011;&#60;br /&#62;
  encoderTimer-&#38;gt;SMCR = 0x0003;    //SMS=011&#60;br /&#62;
  encoderTimer-&#38;gt;CR1 = 0x0001;     //CEN=1&#60;br /&#62;
  encoderTimer-&#38;gt;CR2 = 0x0000;&#60;br /&#62;
  encoderTimer-&#38;gt;PSC = 0x0000;&#60;/p&#62;
&#60;p&#62;  Timer4.setCompare1(CPR - 1);&#60;br /&#62;
  Timer4.setCompare2(MAX_CNT - CPR + 1);&#60;br /&#62;
  Timer4.attachCompare1Interrupt(pendOverflow);&#60;br /&#62;
  Timer4.attachCompare2Interrupt(pendUnderflow);&#60;br /&#62;
  encoderTimer-&#38;gt;CNT = 0x0000;  //reset the counter before we use it&#60;/p&#62;
&#60;p&#62;I tried using the 0.0.10 Beta and the results were the same as version 009. Version 006 still produces the correct output with this timer setup.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "IDE 009 quadrature decoding issues"</title>
			<link>http://forums.leaflabs.com/topic.php?id=778#post-4671</link>
			<pubDate>Wed, 18 May 2011 22:16:06 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">4671@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;This is very interesting. Can you provide the code? Also, have you tried 0.0.10 Beta? (see the blog for a link)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rjgrahek on "IDE 009 quadrature decoding issues"</title>
			<link>http://forums.leaflabs.com/topic.php?id=778#post-4670</link>
			<pubDate>Wed, 18 May 2011 20:47:18 +0000</pubDate>
			<dc:creator>rjgrahek</dc:creator>
			<guid isPermaLink="false">4670@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I had working code to do quadrature decoding based on the timer setup shown in thread posted 9 months ago by drinkdhmo &#34;hardware quadrature decoding issues&#34;. The development was moved to a different computer. IDE version 009 was downloaded and installed on this machine. With this version of the IDE, the encoder output from the Timer only moves a few counts in each direction and behaves weird. The code works fine on IDE version 006. Is anyone else experiencing this type of problem or have a solution?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
