<?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 FreeCounter Bean, does not return the 32bit counter? in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/FreeCounter-Bean-does-not-return-the-32bit-counter/m-p/139675#M1241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to implement a simple freq counter using the following formula: 1/(timeSinceLastPulse)=Freq. (it's a simplified version). For that i thought i could use a Free running counter, and do the math. But when i try to find a method that would give me the value of the counter, i find that the avaiable methods are: GetTick, GetUS, GetMS, GetSec, and etc, not GetValue. Since i'm using 25uS as my resolution and all the above methods return a integer, i don't know how i can get the value of the counter (without resorting to modifying the bean, if i have to i will but i prefer not to). Is there a way for the methods to return a float (i have 32bit float enabled in my project) or to create a method to access the counter?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just wanted to avoid using an TI1:TimerInterrup with an OnInterrupt handler and my own 32 or 16bit math (since i can't code asm as efficiently yet)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jun 2006 04:24:46 GMT</pubDate>
    <dc:creator>Raiker</dc:creator>
    <dc:date>2006-06-15T04:24:46Z</dc:date>
    <item>
      <title>FreeCounter Bean, does not return the 32bit counter?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/FreeCounter-Bean-does-not-return-the-32bit-counter/m-p/139675#M1241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to implement a simple freq counter using the following formula: 1/(timeSinceLastPulse)=Freq. (it's a simplified version). For that i thought i could use a Free running counter, and do the math. But when i try to find a method that would give me the value of the counter, i find that the avaiable methods are: GetTick, GetUS, GetMS, GetSec, and etc, not GetValue. Since i'm using 25uS as my resolution and all the above methods return a integer, i don't know how i can get the value of the counter (without resorting to modifying the bean, if i have to i will but i prefer not to). Is there a way for the methods to return a float (i have 32bit float enabled in my project) or to create a method to access the counter?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just wanted to avoid using an TI1:TimerInterrup with an OnInterrupt handler and my own 32 or 16bit math (since i can't code asm as efficiently yet)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 04:24:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/FreeCounter-Bean-does-not-return-the-32bit-counter/m-p/139675#M1241</guid>
      <dc:creator>Raiker</dc:creator>
      <dc:date>2006-06-15T04:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: FreeCounter Bean, does not return the 32bit counter?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/FreeCounter-Bean-does-not-return-the-32bit-counter/m-p/139676#M1242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Dear Customer,&lt;BR /&gt;From your message it's not clear which CPU family do you use and which&lt;BR /&gt;CodeWarrior version. It's also not very clear why you need to get a float.&lt;BR /&gt;Anyway, please notice the difference between the FreeCntr8, FreeCntr16, FreeCntr32 and FreeCntr beans.&lt;BR /&gt;The FreeCntr8,16,32 is internally counting a periodical interrupts with a period&lt;BR /&gt;determined by the property 'Resolution' and allows to return this value as&lt;BR /&gt;microseconds, miliseconds etc.&lt;BR /&gt;The FreeCntr bean (without a number) is a low-level (platform specific) bean&lt;BR /&gt;that uses hardware counter and allows to configure its period (using the property period), reset it and read its value in the native hardware format of the counter register.&lt;BR /&gt;best regards&lt;BR /&gt;Petr Hradsky&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;UNIS&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 15:53:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/FreeCounter-Bean-does-not-return-the-32bit-counter/m-p/139676#M1242</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2006-06-16T15:53:15Z</dc:date>
    </item>
  </channel>
</rss>

