<?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: capture frequency+TRK-KEA128+Code Warrior in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452487#M26883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Orlando, it helped.&lt;/P&gt;&lt;P&gt;But still there is some error - frequency provided at the input and counts captured.&lt;/P&gt;&lt;P&gt;Let me re look into calculations.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Sep 2015 07:15:09 GMT</pubDate>
    <dc:creator>vijenad</dc:creator>
    <dc:date>2015-09-18T07:15:09Z</dc:date>
    <item>
      <title>capture frequency+TRK-KEA128+Code Warrior</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452485#M26881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;Evaluation board - TRK - KEA 128&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;IDE - Code warrior, Ver 10.6.4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Helv','sans-serif';"&gt;Activity:&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt; To capture Square Waves at pin PTC2 using Capture component in process expert&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Helv','sans-serif';"&gt;Issue:&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt; We were getting wrong in correlating the counter register value with the frequency fed at the input pin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Helv','sans-serif';"&gt;Need Support:&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt; How to calculate Frequency with the help of Counter register value &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;And&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;What is the significance of “maximum time event” and How to set it&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Helv','sans-serif';"&gt;Supporting Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;1. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;Clock Settings&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;Code, I have used example code with small modifications, counter register value will get into variable “result”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; font-family: Consolas;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;(;;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #7f0055; font-size: 10.0pt; font-family: Consolas;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; ((Cap1_GetEventStatus(CapPtr) &amp;amp; LDD_CAPTURE_ON_CAPTURE)!=0U){&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error = Cap1_GetCaptureValue(CapPtr, &amp;amp;Data);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; current_data = Data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #7f0055; font-size: 10.0pt; font-family: Consolas;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;(current_data &amp;gt; previous_data)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&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; result = current_data - previous_data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #7f0055; font-size: 10.0pt; font-family: Consolas;"&gt;else&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&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; result1 = &lt;SPAN style="background: lightgrey;"&gt;max_data&lt;/SPAN&gt; - previous_data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&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; result1 = current_data + result;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; previous_data = current_data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="margin-left: 36pt; border: none;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;Frequency in Hz&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;Counter Register Value&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;100 Hz&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;43641&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;200 Hz&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;54600&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;300 Hz&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;14558&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;400 Hz&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;60074&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;500 Hz&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;48062&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;1 kHz&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;24030&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;5kHz&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;4803&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;10 kHz&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="308"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helv','sans-serif'; color: black;"&gt;2401&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:12:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452485#M26881</guid>
      <dc:creator>vijenad</dc:creator>
      <dc:date>2015-09-15T13:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: capture frequency+TRK-KEA128+Code Warrior</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452486#M26882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vijeendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the module is fed with a &lt;STRONG&gt;20.971520 MHz&lt;/STRONG&gt; clock, every count represents 1 / 20.971520 MHz = &lt;STRONG&gt;47.683 ns&lt;/STRONG&gt;. The issue here is that the counter is 16-bit width so the maximum count is 65535 which is equivalent to 3.125 ms which represents a 320 Hz signal. If you put a signal with a lower frequency the timer will be overflowed and you will get erroneous data. What you can do is to configure an overflow interrupt and play with flags to obtain a correct conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 20:16:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452486#M26882</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-09-17T20:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: capture frequency+TRK-KEA128+Code Warrior</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452487#M26883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Orlando, it helped.&lt;/P&gt;&lt;P&gt;But still there is some error - frequency provided at the input and counts captured.&lt;/P&gt;&lt;P&gt;Let me re look into calculations.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 07:15:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452487#M26883</guid>
      <dc:creator>vijenad</dc:creator>
      <dc:date>2015-09-18T07:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: capture frequency+TRK-KEA128+Code Warrior</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452488#M26884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Orlando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to be clear on the calculation part, then we want to look into the code. &lt;/P&gt;&lt;P&gt;Frequency expected range - 80 Hz to 5000 Hz ....it converts to 12.5 ms to 2 ms&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/57453iF9CEE919FCD90943/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;Clock Source is Bus_CLK..... Presclaer is 32.....Low limit is 0.1ms......and High limit is 15ms.......(because that is our frequency range)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module is fed with a 655.36 kHz, every count respresent 1/655.36 kHz = 1.52 uS.&amp;nbsp; So the lowest frequency I can read is 10 Hz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it correct or does it lead to any error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 14:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452488#M26884</guid>
      <dc:creator>vijenad</dc:creator>
      <dc:date>2015-09-18T14:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: capture frequency+TRK-KEA128+Code Warrior</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452489#M26885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vijeendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you are right with the calculation of the range, with this clock you will be able to count signals from 10 Hz to 655.36 KHz. (from 1.52 us to 100 ms). This is a correct configuration for your approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 16:03:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452489#M26885</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-09-18T16:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: capture frequency+TRK-KEA128+Code Warrior</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452490#M26886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Earl for your support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 07:18:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452490#M26886</guid>
      <dc:creator>vijenad</dc:creator>
      <dc:date>2015-09-21T07:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: capture frequency+TRK-KEA128+Code Warrior</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452491#M26887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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/52677i67B696F356A030B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&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/52678i9C95802BC4400B12/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;Hello Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were able to have a demo with TRK-KEA 128 Evaluation board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are having few issues on our prototype board (As we were in bit hurry, we went for prototype board without evaluating on evaluation board)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our design on prototype is &lt;/P&gt;&lt;P&gt;1. PTC3 is configured to capture frequency&lt;/P&gt;&lt;P&gt;2. PTC2 is configured to generate frequency &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Capture_LDD and PPG both uses same timer unit in FTM2 module, we are getting error in configuring.&amp;nbsp;&amp;nbsp; Is there any way to use both Capture and PPG component with FTM2 module (we are using processor expert)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another issue is with Reset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debug mode, prototype board is functioning properly.&lt;/P&gt;&lt;P&gt;But in Flash mode, after flashing the code - we are getting 3uS low pulse at every 7.27 kHz frequency at the Reset Pin.&lt;/P&gt;&lt;P&gt;Then we tried by isolatling LM809 and 100K and tied Reset Pin to +5V through 1K resistor, but still the same issue.&lt;/P&gt;&lt;P&gt;(In processor expert, PTA5 is configured for RESET)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 11:19:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452491#M26887</guid>
      <dc:creator>vijenad</dc:creator>
      <dc:date>2015-09-21T11:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: capture frequency+TRK-KEA128+Code Warrior</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452492#M26888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vijeendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend you to use a FTM instance and configure two channels, one as PWM and another as input capture. This won't cause you problems. The PPG is a very high level component so it is harder to configure when you need such level of customization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the reset issue, it seems that the WDOG is generating a periodic reset, please be sure that it is disabled (or properly configured). The reset pin is bi-directional, it goes low when the MCU is reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 16:42:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452492#M26888</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-09-22T16:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: capture frequency+TRK-KEA128+Code Warrior</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452493#M26889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FTM iinstance - is it Init_FTM as shown in this snapshot or does the components is called with some other name in code warrior -&amp;nbsp; Version: 10.6.4&lt;/P&gt;&lt;P&gt;I guess its only for Initialization, but I didn't find FTM component in other folders.&lt;/P&gt;&lt;P&gt;I also refereed thread 358826.&lt;/P&gt;&lt;H2&gt;&lt;/H2&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/57281i2E2D23C272674A56/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and regarding Reset&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57251i97277DBCBEFA7C31/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I guess by selecting option "yes" we are disabling watchdog.&lt;/P&gt;&lt;P&gt;I also tried by enabling watchdog component&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57282iE71384CAA5C74955/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but neither option helped, issue still remains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 13:33:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452493#M26889</guid>
      <dc:creator>vijenad</dc:creator>
      <dc:date>2015-09-23T13:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: capture frequency+TRK-KEA128+Code Warrior</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452494#M26890</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 Init_FTM component works for your purpose, first you select the Init_FTM component:&lt;/P&gt;&lt;P&gt;&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/57283i7728C82273788088/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;Then, configure the FTM component and the channels that you will use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57320i5908E5BA21C183C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, you can see the functions that Processor Expert provides in the tab &lt;STRONG&gt;Components&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57363iED0B3F45921F9D29/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps. Please let me know if this works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 16:55:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/capture-frequency-TRK-KEA128-Code-Warrior/m-p/452494#M26890</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-09-23T16:55:00Z</dc:date>
    </item>
  </channel>
</rss>

