<?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>PowerQUICC Processors中的主题 MPC8309 get precise time from rtc</title>
    <link>https://community.nxp.com/t5/PowerQUICC-Processors/MPC8309-get-precise-time-from-rtc/m-p/449552#M1253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; I am new to the MPC world and facing a problem,.i want to get a precise time from the rtc，time accuracy is 1 ms，but the rtc is 1s , i refer to the kernel module ieee 1588 &lt;SPAN style="color: #333333; font-family: arial; font-size: 17.8947372436523px;"&gt; &lt;SPAN style="color: #333333; font-family: arial; font-size: 12.6315793991089px;"&gt;source code，from it can get 1ms，but i can‘t use it sepreate the module.can you support some examples that can tell how to use the&amp;nbsp; rtc ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 12.6315793991089px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 12.6315793991089px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;yang &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 06:00:20 GMT</pubDate>
    <dc:creator>威杨</dc:creator>
    <dc:date>2015-06-11T06:00:20Z</dc:date>
    <item>
      <title>MPC8309 get precise time from rtc</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/MPC8309-get-precise-time-from-rtc/m-p/449552#M1253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; I am new to the MPC world and facing a problem,.i want to get a precise time from the rtc，time accuracy is 1 ms，but the rtc is 1s , i refer to the kernel module ieee 1588 &lt;SPAN style="color: #333333; font-family: arial; font-size: 17.8947372436523px;"&gt; &lt;SPAN style="color: #333333; font-family: arial; font-size: 12.6315793991089px;"&gt;source code，from it can get 1ms，but i can‘t use it sepreate the module.can you support some examples that can tell how to use the&amp;nbsp; rtc ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 12.6315793991089px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 12.6315793991089px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;yang &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 06:00:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/MPC8309-get-precise-time-from-rtc/m-p/449552#M1253</guid>
      <dc:creator>威杨</dc:creator>
      <dc:date>2015-06-11T06:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: MPC8309 get precise time from rtc</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/MPC8309-get-precise-time-from-rtc/m-p/449553#M1254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;The accuracy of the RTC depends on its clock source. The RTC block is just timer which counts clock cycles from the clock source. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The IEEE 1588 protocol is used to synchronize the clocks of two systems, h&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;ardware provide &lt;STRONG&gt;time&lt;/STRONG&gt; stamping but software compare &lt;STRONG&gt;time&lt;/STRONG&gt; stamps, you could refer to &lt;A href="http://cache.freescale.com/files/32bit/doc/app_note/AN3423.pdf" title="http://cache.freescale.com/files/32bit/doc/app_note/AN3423.pdf"&gt;http://cache.freescale.com/files/32bit/doc/app_note/AN3423.pdf&lt;/A&gt; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;For your purpose, probably you could refer to arch/powerpc/kernel/time.c, regarding generating precise time in Linux Kernel. If you only want to generate 1ms count, you also could use Timer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yiping&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>Fri, 12 Jun 2015 14:11:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/MPC8309-get-precise-time-from-rtc/m-p/449553#M1254</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2015-06-12T14:11:55Z</dc:date>
    </item>
  </channel>
</rss>

