<?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>Kinetis Microcontrollers中的主题 Re: Can we  set the milliseconds when set the hardware clock? (K64 )</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-we-set-the-milliseconds-when-set-the-hardware-clock-K64/m-p/506721#M31804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need to differentiate 'accuracy' and 'precision'.&amp;nbsp; For precision:&amp;nbsp; If you stop the RTC, you can write the prescale-register (TPR) by multiplying your 'milliseconds' by 32768/1000.&amp;nbsp; With that simple extension your driver can easily read and write 'millisecond' precision.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for accuracy, the default 32,768 divider CAN have the small adjustments mentioned (this would, however, negate the ability to convert TPR to ms with the simple 1000/32768 factor), and with that you could compensate the typical temperature-curve of watch-crystals, but ONLY if you are 'awake', at least periodically, to measure temperature and adjust the compensation appropriately.&amp;nbsp; Another way to get 12ppm accuracy (~1sec/day) is to use an external part that already does this real-time temperature-compensation: 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>Mon, 30 May 2016 04:09:33 GMT</pubDate>
    <dc:creator>egoodii</dc:creator>
    <dc:date>2016-05-30T04:09:33Z</dc:date>
    <item>
      <title>Can we  set the milliseconds when set the hardware clock? (K64 )</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-we-set-the-milliseconds-when-set-the-hardware-clock-K64/m-p/506719#M31802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The RTC Time Seconds Register only save the seconds， how to ensure the accuracy of the millisecond?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 08:40:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-we-set-the-milliseconds-when-set-the-hardware-clock-K64/m-p/506719#M31802</guid>
      <dc:creator>gaozida</dc:creator>
      <dc:date>2016-05-27T08:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can we  set the milliseconds when set the hardware clock? (K64 )</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-we-set-the-milliseconds-when-set-the-hardware-clock-K64/m-p/506720#M31803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;RTC has contain the compensation logic which provides an accurate and wide compensation range and can correct errors as high as 3906 ppm and as low as 0.12 ppm.&lt;/P&gt;&lt;P&gt;So I'd like to suggest you to learn the more information about the compensation operation from the K64' reference manual.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 03:15:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-we-set-the-milliseconds-when-set-the-hardware-clock-K64/m-p/506720#M31803</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-05-30T03:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can we  set the milliseconds when set the hardware clock? (K64 )</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-we-set-the-milliseconds-when-set-the-hardware-clock-K64/m-p/506721#M31804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need to differentiate 'accuracy' and 'precision'.&amp;nbsp; For precision:&amp;nbsp; If you stop the RTC, you can write the prescale-register (TPR) by multiplying your 'milliseconds' by 32768/1000.&amp;nbsp; With that simple extension your driver can easily read and write 'millisecond' precision.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for accuracy, the default 32,768 divider CAN have the small adjustments mentioned (this would, however, negate the ability to convert TPR to ms with the simple 1000/32768 factor), and with that you could compensate the typical temperature-curve of watch-crystals, but ONLY if you are 'awake', at least periodically, to measure temperature and adjust the compensation appropriately.&amp;nbsp; Another way to get 12ppm accuracy (~1sec/day) is to use an external part that already does this real-time temperature-compensation: 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>Mon, 30 May 2016 04:09:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-we-set-the-milliseconds-when-set-the-hardware-clock-K64/m-p/506721#M31804</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-05-30T04:09:33Z</dc:date>
    </item>
  </channel>
</rss>

