<?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 Design StudioのトピックFreecntr32 : GetTimeReal function</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Freecntr32-GetTimeReal-function/m-p/426520#M3533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a newbie with Eclipse and Kinetis Design Tool 3.0.0; and have recently been trying out the Freecntr32 function FC321_GetTimeReal(). I notice that the pop-up instructions indicate that this function returns the time in units of seconds. However, I found that it is returning the number of clock counts instead. So it's not returning the time in units of seconds. On the other hand, the FC321_GetTimeSec() function is returning the time in units of seconds. So, FC321_GetTimeReal is giving me a value between 0 and 65535 (and keeps cycling), while FC321_GetTimeSec is really giving the number of seconds. Are the pop-up instructions erroneous for GetTimeReal? I am using the KDS 3.0.0 with the KL25Z board (with Processor Expert assistance) at the moment. Thanks all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Nov 2015 21:49:15 GMT</pubDate>
    <dc:creator>kennyl</dc:creator>
    <dc:date>2015-11-19T21:49:15Z</dc:date>
    <item>
      <title>Freecntr32 : GetTimeReal function</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Freecntr32-GetTimeReal-function/m-p/426520#M3533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a newbie with Eclipse and Kinetis Design Tool 3.0.0; and have recently been trying out the Freecntr32 function FC321_GetTimeReal(). I notice that the pop-up instructions indicate that this function returns the time in units of seconds. However, I found that it is returning the number of clock counts instead. So it's not returning the time in units of seconds. On the other hand, the FC321_GetTimeSec() function is returning the time in units of seconds. So, FC321_GetTimeReal is giving me a value between 0 and 65535 (and keeps cycling), while FC321_GetTimeSec is really giving the number of seconds. Are the pop-up instructions erroneous for GetTimeReal? I am using the KDS 3.0.0 with the KL25Z board (with Processor Expert assistance) at the moment. Thanks all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 21:49:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Freecntr32-GetTimeReal-function/m-p/426520#M3533</guid>
      <dc:creator>kennyl</dc:creator>
      <dc:date>2015-11-19T21:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Freecntr32 : GetTimeReal function</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Freecntr32-GetTimeReal-function/m-p/426521#M3534</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;the return value of GetTimeReal() is Error code&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Error code, possible codes:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERR_OK - OK&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERR_SPEED - This device does not work in&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the active speed mode&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERR_OVERFLOW - Software counter overflow&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERR_MATH - Overflow during evaluation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Time in seconds is the parameter of GetTimeReal, it must be set as float type, make sure your project also support float.&lt;/P&gt;&lt;P&gt;does this answer your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52040i8AA16B67AD6CD06A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&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>Thu, 26 Nov 2015 08:59:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Freecntr32-GetTimeReal-function/m-p/426521#M3534</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-11-26T08:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Freecntr32 : GetTimeReal function</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Freecntr32-GetTimeReal-function/m-p/426522#M3535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhang Jun! Thanks for your kind response. I had set the time variable to be float type. This is what I always had. I'm reporting that when I use the GetTimeReal function, the returned value turns out to be values ranging between 0 and 65535 (ie unsigned 16 bit value). This means if I allow the program to cycle continuously, I get values that are like 135, 1000, 3000 etc etc... 64300, then back to 56....100, 500, 1556 etc etc ... 65500.... then the cycle repeats again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I change the the function to GetTimeSec, the returned values are 0,0,0,0,0,0...etc.....1,1,1,1,1 etc ,2,2,2,2,2 etc etc....3,3,3,3,3...etc etc ...... where the values are observed to change after each 1 second. This is consistent with 1 second changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears that the documented description for returned value of the GetTimeReal function is incorrect. Rather than returning the number of seconds, it is actually returning the number of clock counts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again Zhang Jun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 12:20:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Freecntr32-GetTimeReal-function/m-p/426522#M3535</guid>
      <dc:creator>kennyl</dc:creator>
      <dc:date>2015-12-02T12:20:18Z</dc:date>
    </item>
  </channel>
</rss>

