<?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 k66f FTM synchronization using external hardware trigger in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k66f-FTM-synchronization-using-external-hardware-trigger/m-p/1014116#M56147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to do FTM counter synchronization using hardware trigger 2 (FTMx_FLT0), but had no luck so far. I could generate PWM signals though external hardware trigger does not reset the FTM counter. I also noticed that the FTMx_SYNC[TRIG2] is always 0, even though it is set to 1 in the peripheral.c program generated by MCUxpresso Config Tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried manually changing the peripheral register directly in MCUxpresso, but it did not work - it always stays at 0 (zero) level. Any help is appreciated.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2020 02:14:38 GMT</pubDate>
    <dc:creator>teoman_ustun</dc:creator>
    <dc:date>2020-02-12T02:14:38Z</dc:date>
    <item>
      <title>k66f FTM synchronization using external hardware trigger</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k66f-FTM-synchronization-using-external-hardware-trigger/m-p/1014116#M56147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to do FTM counter synchronization using hardware trigger 2 (FTMx_FLT0), but had no luck so far. I could generate PWM signals though external hardware trigger does not reset the FTM counter. I also noticed that the FTMx_SYNC[TRIG2] is always 0, even though it is set to 1 in the peripheral.c program generated by MCUxpresso Config Tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried manually changing the peripheral register directly in MCUxpresso, but it did not work - it always stays at 0 (zero) level. Any help is appreciated.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 02:14:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k66f-FTM-synchronization-using-external-hardware-trigger/m-p/1014116#M56147</guid>
      <dc:creator>teoman_ustun</dc:creator>
      <dc:date>2020-02-12T02:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: k66f FTM synchronization using external hardware trigger</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k66f-FTM-synchronization-using-external-hardware-trigger/m-p/1014117#M56148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;You could refer to the application note &lt;A href="https://www.nxp.com/docs/en/application-note/AN5142.pdf#page=24"&gt;Features of the FlexTimer Module&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Chapter 3.11.4. Updating the FTM register with hardware control to get a&amp;nbsp;general code example in bare-metal for configuration of the hardware trigger of FTM of Kinetis MCU´s.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;The following code configures the PTB3 pin as FTM0_FLT0. The FTM0_FLT0 is the hardware triggering source TRIG2. Every rising edge of trigger source2 launches a new PWM cycle.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Please take a close look at the register level configuration, because of implementation&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;FTM could vary between your device. &lt;/SPAN&gt;&lt;SPAN&gt;, you will need to make sure that the correct bits are enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;The bit for hardware trigger 2 is set successfully in the example.&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Also, note that the pins for PWM and&amp;nbsp;FTM0_FLT0 must be routed, setting its corresponding alternative, you can use MCUxpresso config tools for that, as you were doing it before.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;&amp;nbsp;I hope that this reference helps you out!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 21:38:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k66f-FTM-synchronization-using-external-hardware-trigger/m-p/1014117#M56148</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2020-02-13T21:38:43Z</dc:date>
    </item>
  </channel>
</rss>

