<?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_LDD work? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Capture-LDD-work/m-p/786723#M47878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricard Comas,&lt;/P&gt;&lt;P&gt;TU1_GetCaptureValue just return the value of FTMx_CnV.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="TU1_GetCaptureValue.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66696i762945A5E3D908E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="TU1_GetCaptureValue.png" alt="TU1_GetCaptureValue.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Input Capture mode.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66697iDB3EDFB2849D34F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Input Capture mode.png" alt="Input Capture mode.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to use the Init_PWT, you can find the Pulse Width Timer (PWT) module in Reference Manual.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Init_PWM.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66698i1F216C056C81D9B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Init_PWM.png" alt="Init_PWM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PWT.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66699i236BF39AB6C84D76/image-size/large?v=v2&amp;amp;px=999" role="button" title="PWT.png" alt="PWT.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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>Fri, 27 Jul 2018 09:31:49 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2018-07-27T09:31:49Z</dc:date>
    <item>
      <title>¿Capture_LDD work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Capture-LDD-work/m-p/786722#M47877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,i 've a question about this component, i need measure the pulse width (high) of a input PWM, i thought that setting it with rise edge, this component would return a value (in miliseconds) of measured,pulse width,but, when i display this value returned by this component, i get a wrong value, for example, if the input PWM is simetric 50Hrz (duty of 50 %) the capture component return 38000, what is 38000?¿ i want a periode of PWM (it whould be 20000 milisecond, not 38000) i don't understand why Capture component return a number that doesn't corresponds with a periodic of input PWM, it would be 20000 miliseconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My microcontroller is MKE04Z128, i show you my code, by the way, when i create&amp;nbsp; a Capture component, i get this message: &lt;STRONG&gt;"The component "Capture_LDD" uses another shared component for item "Linked TimerUnit". You can use existing component or create a new one., i select "New component [Kinetis/TtimerUnit], its same select a existing timer?¿&lt;/STRONG&gt;, this is my Capture component configuration,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Capture Device: FTM0_C0V&lt;/P&gt;&lt;P&gt;- Capture input pin: some pin correspond 0 channel&lt;/P&gt;&lt;P&gt;- Edge:rising edge&lt;/P&gt;&lt;P&gt;- Maximum time of event:87 ms (What does it mean??)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint16_t data = 0;&lt;/P&gt;&lt;P&gt;Cap1_Reset();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for(;;){&lt;/P&gt;&lt;P&gt;Display(data);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Events.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extern uint16_t data:&lt;/P&gt;&lt;P&gt;Cap1_OnCapture(){&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Cap1_GetCaptureValue(&amp;amp;data);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Cap1_Reset();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 17:49:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Capture-LDD-work/m-p/786722#M47877</guid>
      <dc:creator>ricardcomas</dc:creator>
      <dc:date>2018-07-26T17:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Capture_LDD work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Capture-LDD-work/m-p/786723#M47878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricard Comas,&lt;/P&gt;&lt;P&gt;TU1_GetCaptureValue just return the value of FTMx_CnV.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="TU1_GetCaptureValue.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66696i762945A5E3D908E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="TU1_GetCaptureValue.png" alt="TU1_GetCaptureValue.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Input Capture mode.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66697iDB3EDFB2849D34F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Input Capture mode.png" alt="Input Capture mode.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to use the Init_PWT, you can find the Pulse Width Timer (PWT) module in Reference Manual.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Init_PWM.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66698i1F216C056C81D9B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Init_PWM.png" alt="Init_PWM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PWT.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66699i236BF39AB6C84D76/image-size/large?v=v2&amp;amp;px=999" role="button" title="PWT.png" alt="PWT.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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>Fri, 27 Jul 2018 09:31:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Capture-LDD-work/m-p/786723#M47878</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-07-27T09:31:49Z</dc:date>
    </item>
  </channel>
</rss>

