<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MQX Software Solutions中的主题 Re: RTC accuracy with MQX 4.1 on a K70</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381011#M12701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So that is a 12.5pf-calibrated-load-capacitance part, much like mine (though poorer initial tolerance at +/-20ppm).&amp;nbsp; So you might expect to use the same 20pf I have found (board parasitics assumed 'small'!!).&amp;nbsp; However, the 0.035ppm/C2 factor tells you that at an 'average' 0C (25 degrees below calibration temp) you would expect the crystal to be 22ppm 'slow' already.&amp;nbsp; So, you might want to drop the '4p' and just run the '16p' for 16pf on the pins, to try to compensate for that.&amp;nbsp; You will find some experimentation, and 'day long tests', will get you your best answer in your situation.&amp;nbsp; But just keep in mind that your initial tolerance, and the other 'fudge factors', will get you 'at best' about 3s/day (35ppm); a part with initial +/-10ppm tolerance 2s/day 'worst case'.&amp;nbsp; If one is TRULY trying to hit 'about 1s/day', IMHO the cleanest option is an external 'compensated oscillator' from SiTime: SIT1552AC-JE-DCC-32.768D.&amp;nbsp; Takes a little more battery, but insures +/-10ppm 0-70C (extended temp versions available -40+85C, holds +/-13ppm).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 14:35:17 GMT</pubDate>
    <dc:creator>egoodii</dc:creator>
    <dc:date>2015-02-05T14:35:17Z</dc:date>
    <item>
      <title>RTC accuracy with MQX 4.1 on a K70</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381007#M12697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello every body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a K70 with MQX4.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the rtc function (_set_time, _get_time) to set and get the current date/Hour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I made a test of accuracy with my Laptop and my mobile phone.&lt;/P&gt;&lt;P&gt;I synchronized both Laptop, Mobile phone and my K70board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After 1 day, Laptop and mobile phone have not deviation, but the K70 board has &lt;SPAN class="hps"&gt;took 20&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;seconds&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;It seems to me the K70 has register to set accuracy according Chrystal/Capacity value, but I don't found in MQX a way to set it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Also, I don't understand how set the register (RTC_TCR?) according my problem and how know which value to configure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;In more, these value are saved when main power is down and RTC power kept?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Please inform me about the way to improve the RTC accuracy with MQX / K70&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Thank:smileyhappy:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 15:04:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381007#M12697</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-01-27T15:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: RTC accuracy with MQX 4.1 on a K70</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381008#M12698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within MQX you are looking for the function '_rtc_init' in krtc.c, on a path similar to this:&lt;/P&gt;&lt;P&gt;C:\Projects\IforceV4\MCP\MQX_RTOS\mqx\source\io\rtc\krtc.c&lt;/P&gt;&lt;P&gt;My MQX code has this:&lt;/P&gt;&lt;P&gt;rtc-&amp;gt;CR = RTC_CR_SC8P_MASK | RTC_CR_OSCE_MASK;&lt;/P&gt;&lt;P&gt;which is setting only the 8p capacitor.&amp;nbsp; If your hardware crystal is a 12.5pf part, I find that l need the SC4P and SC16P settings both enabled, and with that I get about 10ppm 'fast' at room temp 25C (1s/day), 10ppm 'slow' at 5 or 45C.&amp;nbsp; The crystal I use is ABS07-32.768KHZ-1-T, which has an initial accuracy +/-10ppm yet is small &amp;amp; inexpensive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't use the TCR function (set to 0) as we use the 32.768KHz 'count' register to approximate millisecond-level timestamping in _rtc_get_time:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;time-&amp;gt;MILLISECONDS = (rtc-&amp;gt;TPR*1000 + 16384)/32768;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;//Round crystal counts to milliseconds&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;And in any case that only helps if you are going to (periodically) read temperature, and knowing the TCR curve of such tuning-fork crystals attempt to adjust.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, all RTC control registers are held 'valid' by the RTC battery voltage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW I recommend &lt;A href="http://www.timeanddate.com/" title="http://www.timeanddate.com/"&gt;timeanddate.com&lt;/A&gt; for your synchronization reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 15:51:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381008#M12698</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2015-01-27T15:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: RTC accuracy with MQX 4.1 on a K70</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381009#M12699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My MQX initialization has following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1422859227702349" jivemacro_uid="_1422859227702349"&gt;
&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;EM&gt;/* Check if RTC counter or OSC for RTC is not started */&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;!&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(rtc&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;SR &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;amp;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; RTC_SR_TCE_MASK) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;||&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;!&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(rtc&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;CR &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;amp;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; RTC_CR_OSCE_MASK) )
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 rtc&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;CR &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;|=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; RTC_CR_OSCE_MASK;
 &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 8pt;"&gt;/* recommended 125 ms delay for oscillator start */&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;STRONG&gt;_time_delay&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 8pt;"&gt;125&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);
 rtc&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;SR &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;|=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; RTC_SR_TCE_MASK;
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 8pt;"&gt;/* End if */&lt;/EM&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;then I will try to add some capacitor by configuring this register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 06:41:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381009#M12699</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-02-02T06:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: RTC accuracy with MQX 4.1 on a K70</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381010#M12700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be sure, I joined the Crystal characteristics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;which value do you recommend to me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Typical environment will be around 0°C.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;How know register setting according&amp;nbsp; temperature?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 08:09:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381010#M12700</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-02-02T08:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: RTC accuracy with MQX 4.1 on a K70</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381011#M12701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So that is a 12.5pf-calibrated-load-capacitance part, much like mine (though poorer initial tolerance at +/-20ppm).&amp;nbsp; So you might expect to use the same 20pf I have found (board parasitics assumed 'small'!!).&amp;nbsp; However, the 0.035ppm/C2 factor tells you that at an 'average' 0C (25 degrees below calibration temp) you would expect the crystal to be 22ppm 'slow' already.&amp;nbsp; So, you might want to drop the '4p' and just run the '16p' for 16pf on the pins, to try to compensate for that.&amp;nbsp; You will find some experimentation, and 'day long tests', will get you your best answer in your situation.&amp;nbsp; But just keep in mind that your initial tolerance, and the other 'fudge factors', will get you 'at best' about 3s/day (35ppm); a part with initial +/-10ppm tolerance 2s/day 'worst case'.&amp;nbsp; If one is TRULY trying to hit 'about 1s/day', IMHO the cleanest option is an external 'compensated oscillator' from SiTime: SIT1552AC-JE-DCC-32.768D.&amp;nbsp; Takes a little more battery, but insures +/-10ppm 0-70C (extended temp versions available -40+85C, holds +/-13ppm).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 14:35:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381011#M12701</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2015-02-05T14:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: RTC accuracy with MQX 4.1 on a K70</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381012#M12702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will make some long test on many day, with different temperature to find the best mean value to apply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 14:52:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTC-accuracy-with-MQX-4-1-on-a-K70/m-p/381012#M12702</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-02-05T14:52:11Z</dc:date>
    </item>
  </channel>
</rss>

