<?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 k20DX256 FTM ext trig in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20DX256-FTM-ext-trig/m-p/870381#M51847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt; Would like to externally trigger FTM1 (K20DX256) so that FTM1 CH0&amp;nbsp;is synchronized to an external rising edge.&lt;/P&gt;&lt;P&gt;How/can I?/ configure FTM1_CH1 as trigger input pin?&amp;nbsp; Read the datasheet, unclear how to assign external trigger pin, and configure the sync event. (PWM_SYNC 35.4.11, HW trig 35.4.11.1,&amp;nbsp;FTM_ext trig 35.3.16)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{ settings I am using are: MODE=0x01, SYNC=0x82, C0V=0, C1V=0, C0SC=0x28, C1SC=0x28, Combine=0x0033, SC=0x88, CNTIN=0, MOD=BFFF&amp;nbsp;} which generates the desired pulse, but&amp;nbsp;NOT synchronized to an external rising edge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FTM0 is currently used generating complementary signals with deadband, and modulated by FTM1_CH0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some guidance/example settings&amp;nbsp;would help - Thanks&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Apr 2019 20:03:17 GMT</pubDate>
    <dc:creator>richard_st-pier</dc:creator>
    <dc:date>2019-04-01T20:03:17Z</dc:date>
    <item>
      <title>k20DX256 FTM ext trig</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20DX256-FTM-ext-trig/m-p/870381#M51847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt; Would like to externally trigger FTM1 (K20DX256) so that FTM1 CH0&amp;nbsp;is synchronized to an external rising edge.&lt;/P&gt;&lt;P&gt;How/can I?/ configure FTM1_CH1 as trigger input pin?&amp;nbsp; Read the datasheet, unclear how to assign external trigger pin, and configure the sync event. (PWM_SYNC 35.4.11, HW trig 35.4.11.1,&amp;nbsp;FTM_ext trig 35.3.16)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{ settings I am using are: MODE=0x01, SYNC=0x82, C0V=0, C1V=0, C0SC=0x28, C1SC=0x28, Combine=0x0033, SC=0x88, CNTIN=0, MOD=BFFF&amp;nbsp;} which generates the desired pulse, but&amp;nbsp;NOT synchronized to an external rising edge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FTM0 is currently used generating complementary signals with deadband, and modulated by FTM1_CH0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some guidance/example settings&amp;nbsp;would help - Thanks&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2019 20:03:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20DX256-FTM-ext-trig/m-p/870381#M51847</guid>
      <dc:creator>richard_st-pier</dc:creator>
      <dc:date>2019-04-01T20:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: k20DX256 FTM ext trig</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20DX256-FTM-ext-trig/m-p/870382#M51848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FTM Hardware Triggers can be found in Reference Manual.(The FTM1_CH1 can not act as trigger input pin.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="3.8.2.6 FTM Hardware Triggers.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79225i4484365EBF686082/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.8.2.6 FTM Hardware Triggers.png" alt="3.8.2.6 FTM Hardware Triggers.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Not sure if you must use FTM1, due to FTM1_FLT0 share the same pin of XTAL0.(Maybe you can use other FTM module.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FTM1_FLT0 PTA19.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79335i73E2BAAF8D5EA903/image-size/large?v=v2&amp;amp;px=999" role="button" title="FTM1_FLT0 PTA19.png" alt="FTM1_FLT0 PTA19.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please check if you want to achieve the FTM counter synchronization shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37.4.11.10 FTM counter synchronization.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79472i650E71F77FDDFF7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="37.4.11.10 FTM counter synchronization.png" alt="37.4.11.10 FTM counter synchronization.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then you may follow the FTM counter synchronization flowchart, and configure the corresponding register.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Figure 37-221. FTM counter synchronization flowchart.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79527i1DDAB45C9DC88843/image-size/large?v=v2&amp;amp;px=999" role="button" title="Figure 37-221. FTM counter synchronization flowchart.png" alt="Figure 37-221. FTM counter synchronization flowchart.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FTMx_SYNCONF[HWRSTCNT][SYNCMODE][HWTRIGMODE].png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24054iF70E1D9E24ED67B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="FTMx_SYNCONF[HWRSTCNT][SYNCMODE][HWTRIGMODE].png" alt="FTMx_SYNCONF[HWRSTCNT][SYNCMODE][HWTRIGMODE].png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FTMx_SYNC[TRIG2].png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24207i3D680AC821775AB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="FTMx_SYNC[TRIG2].png" alt="FTMx_SYNC[TRIG2].png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There are two Application Note for you refer:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4560.pdf"&gt;AN4560 &lt;/A&gt;PWM Synchronization Using Kinetis Flextimers&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5261.pdf"&gt;AN5261 &lt;/A&gt;Kinetis Flextimer Buffered Registers Update&lt;/P&gt;&lt;P&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>Wed, 03 Apr 2019 08:09:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20DX256-FTM-ext-trig/m-p/870382#M51848</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2019-04-03T08:09:53Z</dc:date>
    </item>
  </channel>
</rss>

