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

		<item>
			<title>crenn on "sampling"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2004&amp;page=2#post-11594</link>
			<pubDate>Fri, 06 Jul 2012 00:33:40 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">11594@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I'll note that I found it easily as it was (to me anyway) a logical place to look, but I agree with you, and a link between the Wirish API and components in libmaple would assist users who wish to change various settings.&#60;/p&#62;
&#60;p&#62;Lastly, I'll note that I rarely look at the Docs and just look into the header files. xD;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "sampling"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2004#post-11588</link>
			<pubDate>Thu, 05 Jul 2012 21:36:04 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">11588@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;Docs -&#38;gt; libmaple -&#38;gt; APIs -&#38;gt; adc.h -&#38;gt; Functions (in the list)&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Yup! Dreadful, isn't it?-)&#60;/p&#62;
&#60;p&#62;A good answer would be:&#60;br /&#62;
Docs -&#38;gt; Language -&#38;gt; analogRead() #Discussion&#60;br /&#62;
Docs -&#38;gt; Language -&#38;gt; analogRead() -&#38;gt; ADC Tutorial&#60;br /&#62;
Docs -&#38;gt; Language -&#38;gt; analogRead() -&#38;gt; pinMode() // if the functionality were a pinMode overload :-)&#60;br /&#62;
Docs -&#38;gt; Language -&#38;gt; analogRead() -&#38;gt; ADC Functions&#60;br /&#62;
Docs -&#38;gt; Language -&#38;gt; analogRead() -&#38;gt; Low-level ADC Functions&#60;br /&#62;
etc.&#60;/p&#62;
&#60;p&#62;IMHO only a C/C++ programmer is going to feel looking in a header file is a good place to look for documentation.&#60;/p&#62;
&#60;p&#62;And I don't think this is good once it is found:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;void adc_set_sample_rate(const adc_dev * dev, adc_smp_rate smp_rate)&#60;br /&#62;
Turn the given sample rate into values for ADC_SMPRx.&#60;/p&#62;
&#60;p&#62;Don’t call this during conversion.&#60;/p&#62;
&#60;p&#62;Parameters:&#60;br /&#62;
dev -adc device&#60;br /&#62;
smp_rate -sample rate to set&#60;br /&#62;
See:	adc_smp_rate&#60;/p&#62;
&#60;p&#62;...&#60;/p&#62;
&#60;p&#62;adc_smp_rate enum&#60;br /&#62;
ADC sample times, in ADC clock cycles.&#60;/p&#62;
&#60;p&#62;These control the amount of time spent sampling the input voltage.&#60;/p&#62;
&#60;p&#62;Values:&#60;/p&#62;
&#60;p&#62;ADC_SMPR_1_5 -&#60;br /&#62;
1.5 ADC cycles&#60;/p&#62;
&#60;p&#62;ADC_SMPR_7_5 -&#60;br /&#62;
7.5 ADC cycles&#60;/p&#62;
&#60;p&#62;ADC_SMPR_13_5 -&#60;br /&#62;
13.5 ADC cycles&#60;/p&#62;
&#60;p&#62;ADC_SMPR_28_5 -&#60;br /&#62;
28.5 ADC cycles&#60;/p&#62;
&#60;p&#62;ADC_SMPR_41_5 -&#60;br /&#62;
41.5 ADC cycles&#60;/p&#62;
&#60;p&#62;ADC_SMPR_55_5 -&#60;br /&#62;
55.5 ADC cycles&#60;/p&#62;
&#60;p&#62;ADC_SMPR_71_5 -&#60;br /&#62;
71.5 ADC cycles&#60;/p&#62;
&#60;p&#62;ADC_SMPR_239_5 -&#60;br /&#62;
239.5 ADC cycles&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;I don't like the throwaway line &#34;ADC sample times, in ADC clock cycles.&#34;&#60;br /&#62;
Not even &#34;ADC sample times, in ADC clock cycles. The ADC clock is set up to be 12MHz on Maple.&#34; or &#34;The default for all ADC pins is set to ADC_SMPR_55_5 which is x.y microseconds when the ADC clock is at the default 12MHz.&#34;
&#60;/p&#62;