<?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: Read frequency</title>
		<link>http://forums.leaflabs.com/topic.php?id=13457</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:05:18 +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=13457" rel="self" type="application/rss+xml" />

		<item>
			<title>fma on "Read frequency"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13457#post-28646</link>
			<pubDate>Sat, 31 Aug 2013 09:34:51 +0000</pubDate>
			<dc:creator>fma</dc:creator>
			<guid isPermaLink="false">28646@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ok, thanks! I think that PWM input mode is the best solution.&#60;/p&#62;
&#60;p&#62;Would be nice to have something in maple, at high level, like for PWM output mode...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "Read frequency"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13457#post-28642</link>
			<pubDate>Sat, 31 Aug 2013 03:33:46 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">28642@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;If you measure the period of the signal, then you should be able to inverse it to get the frequency.&#60;/p&#62;
&#60;p&#62;If you use timers, you'll need to set the channel in input capture mode, however putting it in PWM capture mode would enable you to just read the period directly from a register. The reference manual will help you with that, this thread is also related to the topic: &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=13460&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=13460&#60;/a&#62;&#60;br /&#62;
ala42 has some code there to put the timer in input capture mode.&#60;/p&#62;
&#60;p&#62;The other method which should work reasonably well is to use the external interrupts and capture the time using the micros() function. This should be a little bit simpler to write although the CPU will have to do the work instead of just the timer hardware.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fma on "Read frequency"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13457#post-28617</link>
			<pubDate>Fri, 30 Aug 2013 02:10:44 +0000</pubDate>
			<dc:creator>fma</dc:creator>
			<guid isPermaLink="false">28617@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;Is there a simple way to measure a frequency from a TIMx_CHx pin?&#60;/p&#62;
&#60;p&#62;I didn't find a ready-to-use function/object in Maple; did someone already implement this?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Frédéric
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
