<?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 Re: Setup a free -running counter using processor expert in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686750#M14031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julian,&lt;/P&gt;&lt;P&gt;then there are the FreeCntr8, 16 and 32bit components you can use:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19337i16B59230D0FF004E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 May 2017 14:47:25 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2017-05-20T14:47:25Z</dc:date>
    <item>
      <title>Setup a free -running counter using processor expert</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686746#M14027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a timer FC1 with device TMP10 to generate a 2mS interrupt and it works fine. I now need to use a second counter (maybe FC2) to measure the time it takes for an external input to trigger the on-chip comparator. In the Comparator ISR I need to stop the timer and read the timer value (16-bit). In real time the comparator should trigger anywhere from a few 10s of uS to a few hundreds of uS. However, Component Inspector asks for a period/offset value, which I don't think I need. which timer and clock source should I use?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 09:46:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686746#M14027</guid>
      <dc:creator>juliancox</dc:creator>
      <dc:date>2017-05-19T09:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setup a free -running counter using processor expert</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686747#M14028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps I should simplify my question. I need to start a 16-bit timer clocked at about ~4...5Mhz, stop it and read the time - thats basically it - no interrupts, no compare, nothing else - just start, count, stop, read.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 18:28:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686747#M14028</guid>
      <dc:creator>juliancox</dc:creator>
      <dc:date>2017-05-19T18:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Setup a free -running counter using processor expert</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686748#M14029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julian,&lt;/P&gt;&lt;P&gt;use the TimerUnit_LDD:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19210iC6070C2C8903A1C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Enable/Disable starts/stops the counter. ResetCounter is used to set it back to zero, and with GetCounterValue you get the counter register value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19255i6152C9A2CA3348BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Set your timer frequency with interrupts disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Voilà :-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 05:40:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686748#M14029</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-05-20T05:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Setup a free -running counter using processor expert</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686749#M14030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;Thanks for your reply, but this looks like&amp;nbsp;&lt;EM&gt;deja vu.&amp;nbsp;&lt;/EM&gt;Your reply looks very much like a solution for an ARM device. However, I omitted to specify (again) that I am using a S08QE and a S08SH processor. Sorry to have wasted your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 11:10:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686749#M14030</guid>
      <dc:creator>juliancox</dc:creator>
      <dc:date>2017-05-20T11:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Setup a free -running counter using processor expert</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686750#M14031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julian,&lt;/P&gt;&lt;P&gt;then there are the FreeCntr8, 16 and 32bit components you can use:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19337i16B59230D0FF004E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 14:47:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686750#M14031</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-05-20T14:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setup a free -running counter using processor expert</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686751#M14032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help. I looked at a that before but there was no "GetTicks" option. I eventually found it when I clicked on the "Advanced" option in the Component Inspector window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 17:04:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setup-a-free-running-counter-using-processor-expert/m-p/686751#M14032</guid>
      <dc:creator>juliancox</dc:creator>
      <dc:date>2017-05-20T17:04:00Z</dc:date>
    </item>
  </channel>
</rss>

