<?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: How I calibrate RTC using 32.768KHz crystal</title>
		<link>http://forums.leaflabs.com/topic.php?id=10176</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:20:48 +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=10176" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "How I calibrate RTC using 32.768KHz crystal"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10176#post-22296</link>
			<pubDate>Wed, 06 Feb 2013 17:26:52 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">22296@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;stafil - What time reference are you using to measure the output of PC13?&#60;br /&#62;
How are you calculating the deviation?&#60;br /&#62;
Is it plausible that some of the error comes from the way the deviation is being measured?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stafil on "How I calibrate RTC using 32.768KHz crystal"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10176#post-22294</link>
			<pubDate>Wed, 06 Feb 2013 14:12:45 +0000</pubDate>
			<dc:creator>stafil</dc:creator>
			<guid isPermaLink="false">22294@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I used olimexino stm32 and tamper pin(PC13)(LSE/64) frequency is 512.2Hz it is too large for calibration rtc. In AN2821:&#60;/p&#62;
&#60;p&#62;01032     /* Calulate Deviation in ppm  using the formula :&#60;br /&#62;
01033     Deviation in ppm = (Deviation from 511.968/511.968)*1 million*/&#60;br /&#62;
01034     if(f32_Frequency &#38;gt; 511.968)&#60;br /&#62;
01035     {&#60;br /&#62;
01036       f32_Deviation=((f32_Frequency-511.968)/511.968)*1000000;&#60;br /&#62;
01037     }&#60;br /&#62;
01038     else&#60;br /&#62;
01039     {&#60;br /&#62;
01040       f32_Deviation=((511.968-f32_Frequency)/511.968)*1000000;&#60;br /&#62;
01041     }&#60;br /&#62;
01042      DeviationInteger = (uint16_t)f32_Deviation;&#60;br /&#62;
01043&#60;br /&#62;
01044     if(f32_Deviation &#38;gt;= (DeviationInteger + 0.5))&#60;br /&#62;
01045     {&#60;br /&#62;
01046       DeviationInteger = ((uint16_t)f32_Deviation)+1;&#60;br /&#62;
01047     }&#60;/p&#62;
&#60;p&#62;my f32_Frequency = 512.2Hz and DeviationInteger = 638 is too large (0-121) is possible.&#60;/p&#62;
&#60;p&#62;Where is the problem? Pls help me.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "How I calibrate RTC using 32.768KHz crystal"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10176#post-22147</link>
			<pubDate>Mon, 28 Jan 2013 11:41:53 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">22147@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;stafil - there are several threads on using the RTC, for example: &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=1058&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=1058&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stafil on "How I calibrate RTC using 32.768KHz crystal"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10176#post-22140</link>
			<pubDate>Mon, 28 Jan 2013 05:39:42 +0000</pubDate>
			<dc:creator>stafil</dc:creator>
			<guid isPermaLink="false">22140@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;How I calibrate RTC using 32.768KHz crystal? Pls help me. I used mapleRTC&#60;br /&#62;
RTClock rt(RTCSEL_LSE, 0x7fff + 14); &#60;/p&#62;
&#60;p&#62;how set prescaler?&#60;/p&#62;
&#60;p&#62;Thx
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
