<?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: FTM Input capture mode ( single edge / dual edge capture mode) maximum input frequency in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1369261#M61840</link>
    <description>&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;1st, I am agree with your &lt;SPAN&gt;colleague,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;so what I did in the experiment is :&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;I use DMA to grab the CnV value to ram (array) - it can grab 100 times according to the array size&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;calculate the difference between each two array element : array[1] - array[0] ... &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;calculate the frequency based on the difference&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;calculate the average value to get the final frequency&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;2nd, for the 4MHz result I had a suspicion：&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Input signal is 8MHz, and interrupt (&lt;FONT color="#FF0000"&gt;First Interrupt&lt;/FONT&gt;) has been generated once rising edge been captured&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Then eDMA been kick start when FTM capture mode interrupt been received (&lt;FONT color="#FF0000"&gt;First Interrupt&lt;/FONT&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;eDMA copy CnV value to ram&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;And then&amp;nbsp;&lt;FONT color="#FF6600"&gt;Second interrupt&lt;/FONT&gt; been generated before eDMA finish current round, therefore&amp;nbsp;&lt;FONT color="#FF6600"&gt;Second interrupt&lt;/FONT&gt; been ignored ( interrupt happend between cycle 13-16 / 14-17)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joshua_ZXR_1-1636542131692.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161817i83289F85F39D7BAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joshua_ZXR_1-1636542131692.png" alt="Joshua_ZXR_1-1636542131692.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;And then &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Third interrupt&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt; been generated to kick eDMA start second round ....&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Therefore the calculated result been halved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;But, it is inconsistent with the description in the user manual&lt;/SPAN&gt;&lt;/SPAN&gt; if my&amp;nbsp;suspicion is correct. eDMA performance should able to process 10M request when system frequency is 120MHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joshua_ZXR_2-1636542687577.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161821iBE41A2D2281C3191/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joshua_ZXR_2-1636542687577.png" alt="Joshua_ZXR_2-1636542687577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and FTM input capture mode could generated interrupt correctly when input frequency below 15MHz.&lt;/P&gt;&lt;P&gt;So I don't know which module has slow down the system... that makes me confused. could you give me some help.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards&lt;/P&gt;&lt;P&gt;Joshua&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Nov 2021 11:14:38 GMT</pubDate>
    <dc:creator>Joshua_ZXR</dc:creator>
    <dc:date>2021-11-10T11:14:38Z</dc:date>
    <item>
      <title>FTM Input capture mode ( single edge / dual edge capture mode) maximum input frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1354189#M61680</link>
      <description>&lt;P&gt;Hi NXP stuff,&lt;/P&gt;&lt;P&gt;Now I am working on NXP FRDM-K64F, I am trying to implement a frequency measurement module.&lt;/P&gt;&lt;P&gt;I am using SDK example and make some modification.&lt;/P&gt;&lt;P&gt;I have tried single edge and dual edge capture mode. and finally I found there dual edge has better performance than single edge capture mode.&lt;/P&gt;&lt;P&gt;Then, I was try to test the cap frequency, because base on the document ( Document Number: K64P144M120SF5RM, Rev. 2, January 2014) , it mentioned&amp;nbsp; "&amp;nbsp;&lt;STRONG&gt;Note that the maximum frequency for the channel input signal to be&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;detected correctly is system clock divided by 4, which is required to meet Nyquist criteria&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;for signal sampling.&lt;/STRONG&gt;" ( chapter 40.4.4, page 1011) . I believe dual edge capture mode should has same requirement ( please correct me if I am wrong )&lt;/P&gt;&lt;P&gt;According to the example code, FTM using&amp;nbsp;System clock ( which is bus clock), default bus clock is half of core clock ( 60MHz), and &lt;STRONG&gt;I have change it to 120MHz in my test code&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have test the input frequency from 10KHz to 30MHz, but I found some issue :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp; &lt;FONT color="#993300"&gt;I can only measure up to 15MHz, and the result will become incorrect once frequency higher than it, I believe it because of ISR processing time is quite long, therefore I believe use DMA can help me solve this issue, am I right&lt;/FONT&gt;?&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;when the frequency between 11MHz to 12MHz there has no interrupt been received(cannot enter ISR handler), I am not sure it's design feature or my hardware issue&lt;/FONT&gt;.&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;when the frequency higher than 20MHz, there has no interrupt been received (cannot enter ISR handler), I believe it because the captured frequency has caped, therefore FTM hardware module cannot generate interrupt to NVIC. but according to the document, the maximum frequency should be 30MHz ( bus clock / 4) , that makes me very confuse. did I misunderstand&lt;/STRONG&gt; ?&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;my source code has been attached, and the original example project is : frdmk64f_ftm_dual_edge_capture&lt;/P&gt;&lt;P&gt;please kindly assist, thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 10:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1354189#M61680</guid>
      <dc:creator>Joshua_ZXR</dc:creator>
      <dc:date>2021-10-12T10:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: FTM Input capture mode ( single edge / dual edge capture mode) maximum input frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1356646#M61717</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;First thing here that caught my attention here is that you are exceeding the bus clock maximum frequency. Please check the table below from the reference manual.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="FelipeGarcia_1-1634336524752.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/159254iA444D897ACE46D58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FelipeGarcia_1-1634336524752.png" alt="FelipeGarcia_1-1634336524752.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please try to use bus clock withing the allowed range. I think this could be the main issue of the incorrect frequency you are measuring.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Felipe&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 22:22:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1356646#M61717</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2021-10-15T22:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: FTM Input capture mode ( single edge / dual edge capture mode) maximum input frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1356693#M61718</link>
      <description>&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;Thank you for your reply and your suggestion.&lt;/P&gt;&lt;P&gt;Actually I have tested 60MHz also, the interrupt cannot be received once the input frequency exceed 10MHz, that is similar like 120MHz : interrupt cannot be received once the input frequency exceed&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;clock_freq/6&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;which is different as the document mentioned&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;clock_freq/4.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;That makes me quite confused, do you have any idea ?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards&lt;/P&gt;&lt;P&gt;Joshua&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2021 07:49:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1356693#M61718</guid>
      <dc:creator>Joshua_ZXR</dc:creator>
      <dc:date>2021-10-16T07:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: FTM Input capture mode ( single edge / dual edge capture mode) maximum input frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1358024#M61730</link>
      <description>&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;Currently I am using eDMA to grab data from CnV for single edge capture mode and dual edge capture mode.&lt;/P&gt;&lt;P&gt;Bus clock is 60MHz&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the document, theoretically the maximum frequency can be captured is &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;clock/4&lt;/FONT&gt;&lt;/STRONG&gt; = &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;15MHz&lt;/STRONG&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;And as I mentioned, there has no interrupt generated once frequency exceed &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;10MHz&amp;nbsp; &lt;/STRONG&gt;&lt;/FONT&gt;which is &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;clock/6&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Now, I found a weird behavior, the CnV value will become incorrect when the input signal frequency between &lt;FONT color="#008000"&gt;&lt;STRONG&gt;7MHz&lt;/STRONG&gt; &lt;/FONT&gt;to &lt;FONT color="#008000"&gt;&lt;STRONG&gt;10MHz&lt;/STRONG&gt; &lt;/FONT&gt;( such as : input frequency is &lt;FONT color="#008000"&gt;8MHz&lt;/FONT&gt;, but the calculated result is &lt;FONT color="#008000"&gt;4MHz&amp;nbsp;&lt;FONT color="#000000"&gt;which&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;base on the captured count)&lt;/P&gt;&lt;P&gt;last time I thought it is because of ISR speed too slow, so I think eDMA should can solve this issue. but base on the weird behaviors, it looks like hardware issue. ( because the result for using DMA is same as I use FTM interrupt )&lt;/P&gt;&lt;P&gt;So, is this behaviors caused by the hardware limitation ? or do you have any example can capture input signal frequency up to 15MHz ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards&lt;/P&gt;&lt;P&gt;Joshua&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 15:55:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1358024#M61730</guid>
      <dc:creator>Joshua_ZXR</dc:creator>
      <dc:date>2021-10-19T15:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: FTM Input capture mode ( single edge / dual edge capture mode) maximum input frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1361035#M61780</link>
      <description>&lt;P&gt;Hi Joshua,&lt;/P&gt;
&lt;P&gt;Unfortunately, we do not have more example to share than what is already included in the SDK. I agree that ISR could indeed add delay due to interrupt latency. I am also thinking this could be related to SW overhead that could be caused by SDK and drivers.&lt;/P&gt;
&lt;P&gt;Also from what I could see in the different thread you are submitting here: &lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Input-Edge-Capture-Mode-Upper-Limiting-Frequency-K64F/td-p/1360519" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/Input-Edge-Capture-Mode-Upper-Limiting-Frequency-K64F/td-p/1360519&lt;/A&gt; you are using printf so this could be interfering as well.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Felipe&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 21:18:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1361035#M61780</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2021-10-25T21:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: FTM Input capture mode ( single edge / dual edge capture mode) maximum input frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1363091#M61797</link>
      <description>&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PRINTF is not in ISR thread, does it still affect the speed ?&lt;/P&gt;&lt;P&gt;in order to avoid ISR processing speed issue , I have change the ISR implementation to eDMA . and I have disable FTM filter. but the behaviors is till unexpected:&lt;/P&gt;&lt;P&gt;eDMA captured value is unexpected when the input signal frequency exceed 7MHz ( as I said before, calculated result is 4MHz for a 8MHz input signal)&lt;/P&gt;&lt;P&gt;at first I thought it's eDMA performance issue, but according to description of eDMA : chapter 22.4.4.3&amp;nbsp;&lt;/P&gt;&lt;P&gt;“For an internal peripheral bus to SRAM transfer, PEAKreq = &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;150 MHz&lt;/FONT&gt;&lt;/STRONG&gt; / [ 4 + (1 + 2) + (1 + 1) + 3 ] cycles = &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;12.5 Mreq&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;/sec&lt;/FONT&gt;&lt;/STRONG&gt;”&lt;/P&gt;&lt;P&gt;The example system operates at &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;150MHz&lt;/FONT&gt;&lt;/STRONG&gt;, and our system operates at &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;120MHz&lt;/FONT&gt;&lt;/STRONG&gt;, so the PEAKreq should be &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;10Mreq/sec&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;therefore my understanding is : &lt;FONT color="#FF0000"&gt;eDMA should not affect the result when the input signal frequency below 10MHz&lt;/FONT&gt;, did my understanding correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I am right, then it become FTM hardware performance issue again. could you help me to double confirm with your hardware design team?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards&lt;/P&gt;&lt;P&gt;Joshua&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 08:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1363091#M61797</guid>
      <dc:creator>Joshua_ZXR</dc:creator>
      <dc:date>2021-10-28T08:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: FTM Input capture mode ( single edge / dual edge capture mode) maximum input frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1365815#M61816</link>
      <description>&lt;P&gt;Hi Joshua,&lt;/P&gt;
&lt;P&gt;Thank you for your reply. Just want to let you know that I am currently checking this with our internal team to see if there is an issue with FTM module. I will let you know as soon as I receive an update.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Felipe&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 15:44:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1365815#M61816</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2021-11-03T15:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: FTM Input capture mode ( single edge / dual edge capture mode) maximum input frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1365817#M61817</link>
      <description>&lt;P&gt;Thank you Felipe&lt;LI-EMOJI id="lia_grinning-face-with-smiling-eyes" title=":grinning_face_with_smiling_eyes:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 15:46:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1365817#M61817</guid>
      <dc:creator>Joshua_ZXR</dc:creator>
      <dc:date>2021-11-03T15:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: FTM Input capture mode ( single edge / dual edge capture mode) maximum input frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1366967#M61822</link>
      <description>&lt;P&gt;Hi Joshua,&lt;/P&gt;
&lt;P&gt;I have received confirmation from internal team, it seems that is expected behavior, please check below.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;That is a normal behavior and the reasoning as follows:&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;As you said: *maximum frequency can be captured is clock/4 = 15MHz.*. so the min. time quanta is 1/15Mhz = 0.066666666us. for example, your input signal is 8Mhz, 50% duty cycle PWM. the time between two falling edge is 1/8Mhz = 0.125us&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;so if you measure 8Mhz, the CnV value will be 0.125 / 0.0666 = 1.87. this can either possible results a 1 or 2 in CnV resistor. which you only get 15Mhz or 7.5Mhz. (I don't why customer got a 4Mhz result..)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;In a word, the FTM's input clock must be high enough compared with input signal, to get a correct measurement result.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Felipe&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 00:27:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1366967#M61822</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2021-11-05T00:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: FTM Input capture mode ( single edge / dual edge capture mode) maximum input frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1369261#M61840</link>
      <description>&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;1st, I am agree with your &lt;SPAN&gt;colleague,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;so what I did in the experiment is :&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;I use DMA to grab the CnV value to ram (array) - it can grab 100 times according to the array size&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;calculate the difference between each two array element : array[1] - array[0] ... &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;calculate the frequency based on the difference&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;calculate the average value to get the final frequency&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;2nd, for the 4MHz result I had a suspicion：&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Input signal is 8MHz, and interrupt (&lt;FONT color="#FF0000"&gt;First Interrupt&lt;/FONT&gt;) has been generated once rising edge been captured&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Then eDMA been kick start when FTM capture mode interrupt been received (&lt;FONT color="#FF0000"&gt;First Interrupt&lt;/FONT&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;eDMA copy CnV value to ram&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;And then&amp;nbsp;&lt;FONT color="#FF6600"&gt;Second interrupt&lt;/FONT&gt; been generated before eDMA finish current round, therefore&amp;nbsp;&lt;FONT color="#FF6600"&gt;Second interrupt&lt;/FONT&gt; been ignored ( interrupt happend between cycle 13-16 / 14-17)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joshua_ZXR_1-1636542131692.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161817i83289F85F39D7BAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joshua_ZXR_1-1636542131692.png" alt="Joshua_ZXR_1-1636542131692.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;And then &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Third interrupt&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt; been generated to kick eDMA start second round ....&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Therefore the calculated result been halved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;But, it is inconsistent with the description in the user manual&lt;/SPAN&gt;&lt;/SPAN&gt; if my&amp;nbsp;suspicion is correct. eDMA performance should able to process 10M request when system frequency is 120MHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joshua_ZXR_2-1636542687577.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161821iBE41A2D2281C3191/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joshua_ZXR_2-1636542687577.png" alt="Joshua_ZXR_2-1636542687577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and FTM input capture mode could generated interrupt correctly when input frequency below 15MHz.&lt;/P&gt;&lt;P&gt;So I don't know which module has slow down the system... that makes me confused. could you give me some help.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards&lt;/P&gt;&lt;P&gt;Joshua&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 11:14:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1369261#M61840</guid>
      <dc:creator>Joshua_ZXR</dc:creator>
      <dc:date>2021-11-10T11:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: FTM Input capture mode ( single edge / dual edge capture mode) maximum input frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1372216#M61870</link>
      <description>&lt;P&gt;Hi Joshua,&lt;/P&gt;
&lt;P&gt;Your experiment is not totally clear to me but as mentioned I think this is limitation of the FTM module so I do not think you can achieve such high frequency with input capture mode. Sorry for the inconvenience.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Felipe&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 21:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-Input-capture-mode-single-edge-dual-edge-capture-mode/m-p/1372216#M61870</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2021-11-16T21:38:41Z</dc:date>
    </item>
  </channel>
</rss>

