<?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: MKL46Z256VLL4 TPM0 counter not counting  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL46Z256VLL4-TPM0-counter-not-counting/m-p/1082192#M57565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for pointing this out. After reviewing "frdmkl46z_tpm_simple_pwm" I was able to locate problem in my code. I was not setting TPM clock source so that is the reason why counter was not counting. After adding below line to my code issue went away.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CLOCK_SetTpmClock(1U);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Apr 2020 15:56:19 GMT</pubDate>
    <dc:creator>vasil_zhmendak</dc:creator>
    <dc:date>2020-04-11T15:56:19Z</dc:date>
    <item>
      <title>MKL46Z256VLL4 TPM0 counter not counting</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL46Z256VLL4-TPM0-counter-not-counting/m-p/1082190#M57563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to setup "Center Aligned" PWM signal with MK46Z256VLL4 MCU integrated on FRDM-KL46Z development board and running into issue of TPM0 counter not counting. I attached screenshots of my TPM0 counter code initialization and register status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"DBGMODE" bits in TPM0_CONF register are set such that debug mode is enabled since I know that having these bits disabled will prevent counter from counting in debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I spent numerous hours reviewing KL46 reference manual for this feature setup and just can't locate the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 17:28:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL46Z256VLL4-TPM0-counter-not-counting/m-p/1082190#M57563</guid>
      <dc:creator>vasil_zhmendak</dc:creator>
      <dc:date>2020-04-09T17:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: MKL46Z256VLL4 TPM0 counter not counting</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL46Z256VLL4-TPM0-counter-not-counting/m-p/1082191#M57564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hi,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Our tpm example is&amp;nbsp;&lt;SPAN&gt;Center Aligned. Why not use our example?&amp;nbsp;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp; Use this link to download the SDK/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&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 style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&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>Fri, 10 Apr 2020 01:19:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL46Z256VLL4-TPM0-counter-not-counting/m-p/1082191#M57564</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-04-10T01:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: MKL46Z256VLL4 TPM0 counter not counting</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL46Z256VLL4-TPM0-counter-not-counting/m-p/1082192#M57565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for pointing this out. After reviewing "frdmkl46z_tpm_simple_pwm" I was able to locate problem in my code. I was not setting TPM clock source so that is the reason why counter was not counting. After adding below line to my code issue went away.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CLOCK_SetTpmClock(1U);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Apr 2020 15:56:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL46Z256VLL4-TPM0-counter-not-counting/m-p/1082192#M57565</guid>
      <dc:creator>vasil_zhmendak</dc:creator>
      <dc:date>2020-04-11T15:56:19Z</dc:date>
    </item>
  </channel>
</rss>

