<?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: PWM max frequency in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-max-frequency/m-p/758579#M46221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In edge aligned mode the minimum MOD value is 1 (which means that the cycle ends when this value increments [to 2-&amp;gt;0]). This gives 2 x 60MHz cycles for the PWM period -&amp;gt; 30MHz.&lt;BR /&gt;To get a signal of 33.3% PWM (1 high pulse for each 2 low pulses) you need MOD = 2 and CV = 1, which will give 20MHz frequency.&lt;BR /&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;__|-|__|-|__|-|__&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2018 14:21:16 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2018-05-16T14:21:16Z</dc:date>
    <item>
      <title>PWM max frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-max-frequency/m-p/758578#M46220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is max. achievable edge aligned PWM (or any other PWM or output compare) frequency on Kinetis K22 in high speed run mode (MCGOUT = 120 MHz),&amp;nbsp;all clocks set to max: CLKDIV1 = 0x01340000U (=&amp;gt; core/system = 120 MHz, bus = 60 MHz)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As FTM is clocked by system clock I would assume 60 MHz is achievable. However, I'm able to generate only 30 MHz with this setting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_EnableClock(kCLOCK_Ftm0);&lt;BR /&gt; FTM0-&amp;gt;SC = FTM_SC_CLKS(1);&lt;BR /&gt; FTM0-&amp;gt;MOD = 1;&lt;BR /&gt; FTM0-&amp;gt;CONTROLS[1].CnSC = FTM_CnSC_ELSB_MASK | FTM_CnSC_MSB_MASK;&lt;BR /&gt; FTM0-&amp;gt;CONTROLS[1].CnV = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to generate 1:2 high:low pulses with max. frequency.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 12:08:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-max-frequency/m-p/758578#M46220</guid>
      <dc:creator>martindusek</dc:creator>
      <dc:date>2018-05-16T12:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: PWM max frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-max-frequency/m-p/758579#M46221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In edge aligned mode the minimum MOD value is 1 (which means that the cycle ends when this value increments [to 2-&amp;gt;0]). This gives 2 x 60MHz cycles for the PWM period -&amp;gt; 30MHz.&lt;BR /&gt;To get a signal of 33.3% PWM (1 high pulse for each 2 low pulses) you need MOD = 2 and CV = 1, which will give 20MHz frequency.&lt;BR /&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;__|-|__|-|__|-|__&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 14:21:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-max-frequency/m-p/758579#M46221</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-05-16T14:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: PWM max frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-max-frequency/m-p/758580#M46222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark, thanks for your answer. I apologize for confusing question, but I would like to know why max achievable frequency of PWM on 120 MHz kinetis is only 30 MHz. I think the answer is here:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/391913"&gt;K20: FTM clock divided by 2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System clock in fTMsection of RM is actually bus clock. As bus clock max is 60 MHz, then max PWM frequency is 30 MHz, whch corresponds to what I get from my kinetis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 14:56:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-max-frequency/m-p/758580#M46222</guid>
      <dc:creator>martindusek</dc:creator>
      <dc:date>2018-05-16T14:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: PWM max frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-max-frequency/m-p/758581#M46223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FlexClock has (depending on exact chip) at least 2 clock source possibilities but the fastest is always the bus clock (&lt;SPAN style="text-decoration: underline;"&gt;never&lt;/SPAN&gt; system/core clock).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is always advisable to look at the module clock section of the user's manual since it will list the clocks to the FlexTimer, where it is then clear that it is BUS CLOCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some of the manuals the FlexTimer section will start with a note that the "system clock" as used in its description is not the processor's system clock (it may state that it is the bus clock or that you need to consult the module clocking section to find out which one it actually is).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 15:44:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-max-frequency/m-p/758581#M46223</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-05-16T15:44:20Z</dc:date>
    </item>
  </channel>
</rss>

