<?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>topic Time tick for syslog in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Time-tick-for-syslog/m-p/601007#M35250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm building a small syslog task on FRDM64F board&lt;/P&gt;&lt;P&gt;For each input string&amp;nbsp;i want to add a time stamp with higher resolution then the RTOS time tick (1 msec)&lt;/P&gt;&lt;P&gt;What is the optimal way to get the highest resolution time stamp? (preferably higher then micro seconds)&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2016 14:15:32 GMT</pubDate>
    <dc:creator>dotangoldberg</dc:creator>
    <dc:date>2016-12-12T14:15:32Z</dc:date>
    <item>
      <title>Time tick for syslog</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Time-tick-for-syslog/m-p/601007#M35250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm building a small syslog task on FRDM64F board&lt;/P&gt;&lt;P&gt;For each input string&amp;nbsp;i want to add a time stamp with higher resolution then the RTOS time tick (1 msec)&lt;/P&gt;&lt;P&gt;What is the optimal way to get the highest resolution time stamp? (preferably higher then micro seconds)&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 14:15:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Time-tick-for-syslog/m-p/601007#M35250</guid>
      <dc:creator>dotangoldberg</dc:creator>
      <dc:date>2016-12-12T14:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Time tick for syslog</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Time-tick-for-syslog/m-p/601008#M35251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find a very high resolution time stamp can be easily generated by letting a PIT timer channel run with a reload value of 0xffffffff.&lt;/P&gt;&lt;P&gt;The time stamp value is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;unsigned long time_tamp = (0xffffffff - PIT_CVALn); // n is the PIT channel&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The PIT runs from the bus clock so you have the same resolution as that (eg. 16.667ns at 60MHz).&lt;/P&gt;&lt;P&gt;The PIT will of course overflow after 71.58s (at this speed) but you can also add an overflow counter (PIT interrupt) to make an &lt;STRONG&gt;unsigned long long&lt;/STRONG&gt; value for the time stamp which will run for 9'775 years.....(with 16.667ns resolution).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 14:40:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Time-tick-for-syslog/m-p/601008#M35251</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-12-12T14:40:14Z</dc:date>
    </item>
  </channel>
</rss>

