<?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; User Favorites: joet</title>
		<link><a href='http://forums.leaflabs.com/profile.php?id=4317'>4317</a></link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:22:29 +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?profile=4317" rel="self" type="application/rss+xml" />

		<item>
			<title>mlundinse on "bug in delayMicroseconds()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1121#post-24578</link>
			<pubDate>Tue, 16 Apr 2013 13:17:34 +0000</pubDate>
			<dc:creator>mlundinse</dc:creator>
			<guid isPermaLink="false">24578@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I have checked the timings for the delay_us loop and&#60;br /&#62;
measured the time for 1000 and 2000 us delays using a&#60;br /&#62;
simple oscilloscope.&#60;br /&#62;
With a Olimexino STM32, Maple clone, I get accurate delays&#60;br /&#62;
(as good as I can measure) using &#60;/p&#62;
&#60;p&#62;#    define STM32_DELAY_US_MULT             12 /* When running from flash. */&#60;/p&#62;
&#60;p&#62;#    define STM32_DELAY_US_MULT             18 /* When running from RAM. */&#60;/p&#62;
&#60;p&#62;In Maple-IDE there is at the moment no clean way to switch between these alternatives.&#60;br /&#62;
When using the command line tools a compiler flag should work&#60;br /&#62;
   -DSTM32_DELAY_US_MULT=18&#60;/p&#62;
&#60;p&#62;Regards&#60;br /&#62;
Magnus
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "bug in delayMicroseconds()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1121&amp;page=2#post-20710</link>
			<pubDate>Wed, 31 Oct 2012 20:46:05 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">20710@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;bnewbold - as I understand LeafLabs plans &#60;a href=&#34;http://leaflabs.com/2011/11/were-teaming-up-with-wiring/&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/2011/11/were-teaming-up-with-wiring/&#60;/a&#62;&#60;br /&#62;
the upstream reference will be Wiring. So I guess we need to get them to fix this :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "bug in delayMicroseconds()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1121#post-20699</link>
			<pubDate>Wed, 31 Oct 2012 12:50:52 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">20699@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;This is a known problem with the upstream Arduino implementation as well:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://code.google.com/p/arduino/issues/detail?id=576&#34; rel=&#34;nofollow&#34;&#62;https://code.google.com/p/arduino/issues/detail?id=576&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;At a minimum, a note in the docs would be nice ;)&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://leaflabs.com/docs/lang/api/delaymicroseconds.html#caveats-and-known-issues&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/lang/api/delaymicroseconds.html#caveats-and-known-issues&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>joet on "bug in delayMicroseconds()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1121#post-8142</link>
			<pubDate>Thu, 09 Feb 2012 01:07:19 +0000</pubDate>
			<dc:creator>joet</dc:creator>
			<guid isPermaLink="false">8142@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Konan,&#60;/p&#62;
&#60;p&#62;Would you be willing to share your reworked IRremote library with me?&#60;br /&#62;
I'm getting tripped up right away with the #include &#38;lt;avr/interrupt.h&#38;gt; line...not sure what to do about this.&#60;/p&#62;
&#60;p&#62;email: &#60;a href=&#34;mailto:jtostenrude@hotmail.com&#34;&#62;jtostenrude@hotmail.com&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Joe
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "bug in delayMicroseconds()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1121#post-7235</link>
			<pubDate>Thu, 24 Nov 2011 17:29:55 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">7235@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;mbolivar&#60;br /&#62;
&#60;blockquote&#62;We want delay() and delayMicroseconds() to work even with SysTick disabled.&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Why? What is the rationale?&#60;/p&#62;
&#60;p&#62;I would prefer delay and delayMicroseconds to be:&#60;br /&#62;
a. accurate, and&#60;br /&#62;
b. deterministic, with no jitter.&#60;br /&#62;
Busy-wait loops will not give that.&#60;/p&#62;
&#60;p&#62;I have no problem with the principle of busy-wait delays, just that they are harder to use and debug because they suffer jitter from interrupts, such as printing debugging messages. &#60;/p&#62;
&#60;p&#62;As long as millis() and micros() are hardware-timer-based timing mechanisms, I am okay.&#60;br /&#62;
I would prefer delay(), and delayMicroseconds() to have comparable results to using millis() and micros() with a busy wait loop, but that is a question of taste. The fact that they jitter, which can make them somewhat tricky to use, could be mentioned in the documentation.&#60;/p&#62;
&#60;p&#62;Maybe we could add low-jitter delay functions, with different names?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>konan on "bug in delayMicroseconds()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1121#post-7234</link>
			<pubDate>Thu, 24 Nov 2011 16:18:10 +0000</pubDate>
			<dc:creator>konan</dc:creator>
			<guid isPermaLink="false">7234@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;mbolivar, &#60;/p&#62;
&#60;p&#62;As for patch - I'd love to do my best to make the Maple project better, but now I have absolutely no spare time :( &#60;/p&#62;
&#60;p&#62;I've ported (and reworked) IRremote library, so I can send you sources and brief description to include it in next IDE release, if you wish. I didn't touch the main routine - signal detection, although I strongly unlike that it use 50us interrupt (and occupies a timer) instead of tiying interrupt to the input pin. But it's a TODO item for the next release :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "bug in delayMicroseconds()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1121#post-6921</link>
			<pubDate>Thu, 20 Oct 2011 21:54:05 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6921@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;konan,&#60;/p&#62;
&#60;p&#62;Looks like you're right.  I'm measuring delay times lower than we would expect.  I'm reluctant to replace with a micros()-based impplementation, however, as that relies on SysTick.  We want delay() and delayMicroseconds() to work even with SysTick disabled.  I think we should stick with the delay loop, but it obviously needs to be fixed.&#60;/p&#62;
&#60;p&#62;If you'd like to submit a patch to fix this, please do! See &#34;contributing to libmaple&#34;:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://leaflabs.com/docs/libmaple/contributing.html&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/libmaple/contributing.html&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>konan on "bug in delayMicroseconds()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1121#post-6891</link>
			<pubDate>Mon, 17 Oct 2011 17:34:10 +0000</pubDate>
			<dc:creator>konan</dc:creator>
			<guid isPermaLink="false">6891@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;And one more issue with delayMicroseconds(). I found that its actual delay time is very far from that I said to do. So, I tried instead of delayMicroseconds this routine:&#60;/p&#62;
&#60;p&#62;  uint32 a = micros();&#60;br /&#62;
  while (micros() &#38;lt; a + time) {};&#60;/p&#62;
&#60;p&#62;which works quite well. I think something really wrong with delayMicroseconds...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>konan on "bug in delayMicroseconds()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1121#post-6890</link>
			<pubDate>Mon, 17 Oct 2011 16:34:52 +0000</pubDate>
			<dc:creator>konan</dc:creator>
			<guid isPermaLink="false">6890@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi all, i'm porting to Maple the IRremote library by Ken Shiriff (&#60;a href=&#34;http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html)&#34; rel=&#34;nofollow&#34;&#62;http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html)&#60;/a&#62;, and spent last 2 hours trying to find the hang-up point in the IR sending routine. It was the call delayMicroseconds(0), which calls the delay_us function in the delay.h, and in the delay_us there is a line &#34;us--;&#34;. So, if I want delay 0 microseconds, I get delay more than hour :)&#60;/p&#62;
&#60;p&#62;Maybe it would better to make zero-test at the beginning of the delay_us?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
