<?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>S32KのトピックRe: S32K148 FTM with SPLL clock source</title>
    <link>https://community.nxp.com/t5/S32K/S32K148-FTM-with-SPLL-clock-source/m-p/1196113#M9181</link>
    <description>&lt;P&gt;Hello, again,&lt;/P&gt;&lt;P&gt;So I've managed to get the FTM running with the SPLLDIV1 clock sourced. The answer is in the reference manual, table 27-8. It says the maximum FTM frequency is governed by SYS_CLK. In my case, the SYS_CLK is 50MHz. Trying to supply the FTM with the same clock value 50MHz in SPLLDIV1_CLK still resulted in FTM not counting. But after dividing the SPLLDIV1_CLK down to 25MHz it finally started to work.&lt;/P&gt;&lt;P&gt;T.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 07:49:09 GMT</pubDate>
    <dc:creator>tomasfrcek</dc:creator>
    <dc:date>2020-12-09T07:49:09Z</dc:date>
    <item>
      <title>S32K148 FTM with SPLL clock source</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-FTM-with-SPLL-clock-source/m-p/1195497#M9174</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have several FTM modules with various channels and operation modes setup in my project. I use the FTM modules to generate periodic interrupts, read and generate PWM signals. So far, I only supplied&amp;nbsp; the modules with SOSCDIV1_CLK (SOSC = 8MHz, DIV1 = 8MHz).&lt;/P&gt;&lt;P&gt;My current working setup of the FMT:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PCC_FTM2 = 0xC1000000 (PCS = 1 (SOSCDIV1_CLK), CGC = 1 (clock enabled)).&lt;/LI&gt;&lt;LI&gt;FTM2-&amp;gt;CLKS = 3 (External clock)&lt;/LI&gt;&lt;LI&gt;FTM2-&amp;gt;PS = 7 (divide by 128).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But now I need to generate PWM signals with very high frequency, so I need to connect SPLLDIV1_CLK instead of SOSCDIV1_CLK (SPLL_CLK = 100MHz, DIV1 = 50MHz). I setup the FTM in the following way:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PCC_FTM2 = 0xC6000000 (PCS = 6 (SPLLDIV1_CLK), CGC = 1 (clock enabled)).&lt;/LI&gt;&lt;LI&gt;FTM2-&amp;gt;CLKS = 3 (External clock)&lt;/LI&gt;&lt;LI&gt;FTM2-&amp;gt;PS = 7 (divide by 128).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But after configuring the clock this way, the FTM counter won't even start counting.&lt;/P&gt;&lt;P&gt;SPLL is also configured as system clock source. This is the SPLL configuration in SCG:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SPLLCSR = 0x03000001&lt;/LI&gt;&lt;LI&gt;SPLLDIV = 0x00000302&lt;/LI&gt;&lt;LI&gt;SPLLCFG = 0x00090000&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks for advice!&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 12:44:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-FTM-with-SPLL-clock-source/m-p/1195497#M9174</guid>
      <dc:creator>tomasfrcek</dc:creator>
      <dc:date>2020-12-08T12:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 FTM with SPLL clock source</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-FTM-with-SPLL-clock-source/m-p/1196113#M9181</link>
      <description>&lt;P&gt;Hello, again,&lt;/P&gt;&lt;P&gt;So I've managed to get the FTM running with the SPLLDIV1 clock sourced. The answer is in the reference manual, table 27-8. It says the maximum FTM frequency is governed by SYS_CLK. In my case, the SYS_CLK is 50MHz. Trying to supply the FTM with the same clock value 50MHz in SPLLDIV1_CLK still resulted in FTM not counting. But after dividing the SPLLDIV1_CLK down to 25MHz it finally started to work.&lt;/P&gt;&lt;P&gt;T.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 07:49:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-FTM-with-SPLL-clock-source/m-p/1196113#M9181</guid>
      <dc:creator>tomasfrcek</dc:creator>
      <dc:date>2020-12-09T07:49:09Z</dc:date>
    </item>
  </channel>
</rss>

