<?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: Modifying DelayMicroseconds() to interrupt driven timer</title>
		<link>http://forums.leaflabs.com/topic.php?id=10409</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:22:32 +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=10409" rel="self" type="application/rss+xml" />

		<item>
			<title>pyrohaz on "Modifying DelayMicroseconds() to interrupt driven timer"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10409#post-23038</link>
			<pubDate>Fri, 22 Mar 2013 08:13:16 +0000</pubDate>
			<dc:creator>pyrohaz</dc:creator>
			<guid isPermaLink="false">23038@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ah brilliant! Thats fine then, thanks a lot :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "Modifying DelayMicroseconds() to interrupt driven timer"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10409#post-23034</link>
			<pubDate>Fri, 22 Mar 2013 04:39:34 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">23034@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;'DelayMicroseconds' of wirish does not make use of the systick timer. It calls the 'delay_us' function of libmaple (which enters a dummy loop for a given number of cycles).&#60;/p&#62;
&#60;p&#62;So you should be fine to use it, you don't have to implement your own function.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pyrohaz on "Modifying DelayMicroseconds() to interrupt driven timer"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10409#post-23022</link>
			<pubDate>Thu, 21 Mar 2013 23:20:44 +0000</pubDate>
			<dc:creator>pyrohaz</dc:creator>
			<guid isPermaLink="false">23022@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hey guys,&#60;br /&#62;
I want to use the ShiftReg123LCD library (&#60;a href=&#34;https://code.google.com/p/shiftreglcd123/&#34; rel=&#34;nofollow&#34;&#62;https://code.google.com/p/shiftreglcd123/&#60;/a&#62;) but in the code, it uses DelayMicroseconds quite often.&#60;/p&#62;
&#60;p&#62;In my current project, systick is disabled so the delay won't work. I have derived a timer that increments by 0.1uS every 3 interrupts (the interrupt occurs at 28125Hz) by multiplying this by 10, I get a rough 1uS timebase.&#60;/p&#62;
&#60;p&#62;To create the delay I can just do:&#60;/p&#62;
&#60;p&#62;//interrupttick is the 0.1us timebase&#60;/p&#62;
&#60;p&#62;oldtime = interrupttick*10;&#60;br /&#62;
while(interrupttick*10 - oldtime &#38;lt; delaytime){}&#60;/p&#62;
&#60;p&#62;which will delay for 'delaytime' amount of microseconds. How can I easily implement this into the library? I've never written a library before and don't know how to incorporate my interrupttick variable into the library.&#60;/p&#62;
&#60;p&#62;Thanks,
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
