<?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 FTM clock source in S32K</title>
    <link>https://community.nxp.com/t5/S32K/FTM-clock-source/m-p/1509516#M17238</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a really basic question about FTM clock source selection. In RM table 27-8 it is written:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davithakobyan_0-1661168699376.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190874i0497E8AAE78226EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davithakobyan_0-1661168699376.png" alt="davithakobyan_0-1661168699376.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;while in FTM_SC register the clock selection and prescaler is as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davithakobyan_1-1661168780108.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190875iDA01512B0717FDC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davithakobyan_1-1661168780108.png" alt="davithakobyan_1-1661168780108.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The board is configured to run at system clock of 80 MHz and SPLLDIV1_CLK is set to 10 MHz (division factor of 16 from 160 MHz SPLL).&lt;/P&gt;&lt;P&gt;So my question is if according to the first snapshot the FTM clock source is selected to be SPLLDIV1_CLK and therefore it should run at 10 MHz, how does this relate to the second snapshot where the clock can be selected to be FTM Input clock? What is FTM Input clock in this case? Does it refer to the same 10 MHz SPLLDIV1_CLK?&lt;/P&gt;&lt;P&gt;In AN5303 it is mentioned that FTM clock source for counter can be either system clock, the fixed frequency clock or external clock. This apparently corresponds to the second snapshot above, but again how then the first snapshot is used to configure FTM clock source?&lt;/P&gt;&lt;P&gt;Still another question regarding the first snapshot. The second column for FlexTimer clock is SYS_CLK, while the forth column has other clocks like SPLLDIV1_CLK, FIRCDIV1_CLK, etc. Does the second column mention just the maximum possible clock? Or is there some other purpose?&lt;/P&gt;&lt;P&gt;I guess, all the above questions relate to some basic misunderstanding from my side of how FTM source clock (counter clock) is selected.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 11:57:40 GMT</pubDate>
    <dc:creator>davithakobyan</dc:creator>
    <dc:date>2022-08-22T11:57:40Z</dc:date>
    <item>
      <title>FTM clock source</title>
      <link>https://community.nxp.com/t5/S32K/FTM-clock-source/m-p/1509516#M17238</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a really basic question about FTM clock source selection. In RM table 27-8 it is written:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davithakobyan_0-1661168699376.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190874i0497E8AAE78226EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davithakobyan_0-1661168699376.png" alt="davithakobyan_0-1661168699376.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;while in FTM_SC register the clock selection and prescaler is as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davithakobyan_1-1661168780108.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190875iDA01512B0717FDC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davithakobyan_1-1661168780108.png" alt="davithakobyan_1-1661168780108.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The board is configured to run at system clock of 80 MHz and SPLLDIV1_CLK is set to 10 MHz (division factor of 16 from 160 MHz SPLL).&lt;/P&gt;&lt;P&gt;So my question is if according to the first snapshot the FTM clock source is selected to be SPLLDIV1_CLK and therefore it should run at 10 MHz, how does this relate to the second snapshot where the clock can be selected to be FTM Input clock? What is FTM Input clock in this case? Does it refer to the same 10 MHz SPLLDIV1_CLK?&lt;/P&gt;&lt;P&gt;In AN5303 it is mentioned that FTM clock source for counter can be either system clock, the fixed frequency clock or external clock. This apparently corresponds to the second snapshot above, but again how then the first snapshot is used to configure FTM clock source?&lt;/P&gt;&lt;P&gt;Still another question regarding the first snapshot. The second column for FlexTimer clock is SYS_CLK, while the forth column has other clocks like SPLLDIV1_CLK, FIRCDIV1_CLK, etc. Does the second column mention just the maximum possible clock? Or is there some other purpose?&lt;/P&gt;&lt;P&gt;I guess, all the above questions relate to some basic misunderstanding from my side of how FTM source clock (counter clock) is selected.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 11:57:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FTM-clock-source/m-p/1509516#M17238</guid>
      <dc:creator>davithakobyan</dc:creator>
      <dc:date>2022-08-22T11:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: FTM clock source</title>
      <link>https://community.nxp.com/t5/S32K/FTM-clock-source/m-p/1509533#M17240</link>
      <description>&lt;P&gt;Ok, it seems the answer is given in the next diagram:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davithakobyan_0-1661170775030.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190879i253E26999DA6DE5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davithakobyan_0-1661170775030.png" alt="davithakobyan_0-1661170775030.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the SPLLDIV1_CLK clock will be used by FTM counter only if the external clock source is selected for the FTM module. If the system clock is still selected then FTM counter will still run at 80 MHz despite the selection of SPLLDIV1_CLK in PCC module.&lt;/P&gt;&lt;P&gt;Please correct if the diagram has a different interpretation.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 12:23:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FTM-clock-source/m-p/1509533#M17240</guid>
      <dc:creator>davithakobyan</dc:creator>
      <dc:date>2022-08-22T12:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: FTM clock source</title>
      <link>https://community.nxp.com/t5/S32K/FTM-clock-source/m-p/1509900#M17260</link>
      <description>&lt;P&gt;Hi&amp;nbsp;davithakobyan,&lt;/P&gt;
&lt;P&gt;Yes. Your understanding is correct.&lt;/P&gt;
&lt;P&gt;Due to FTMn_SC[CLKS]=01 select 80MHz FTM System clock, so the&amp;nbsp;PCC_FLEXTMRn[PCS]=110 selected SPLLDIV1_CLK will not clock the FTM module.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&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;- 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;</description>
      <pubDate>Tue, 23 Aug 2022 05:42:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FTM-clock-source/m-p/1509900#M17260</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2022-08-23T05:42:43Z</dc:date>
    </item>
  </channel>
</rss>

