<?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>Kinetis Microcontrollers中的主题 Re: Timer/PWM (TPM) - K66 - Code is not working...</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-PWM-TPM-K66-Code-is-not-working/m-p/1203307#M59166</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;BARN_RD,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks for your updated information.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Please help to mark the correct answer to close this question post.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Any new questions in the future, welcome to create the new case.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;If you still have questions about it, please kindly let me know!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;-----------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2020 01:24:38 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2020-12-23T01:24:38Z</dc:date>
    <item>
      <title>Timer/PWM (TPM) - K66 - Code is not working...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-PWM-TPM-K66-Code-is-not-working/m-p/1199159#M59111</link>
      <description>&lt;P&gt;Hi Community:&lt;/P&gt;&lt;P&gt;I am very new to the NXP / K66 processor.&amp;nbsp; I having all sorts of fun trying to get up to speed on this.&lt;/P&gt;&lt;P&gt;I'm working on a PWM function that I can not seem to get working.&lt;/P&gt;&lt;P&gt;Attached is very simple PWM Initialization code.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the code has initialized the PWM module, I'm expecting to TPM1_COUNT.COUNT to increment.&lt;/P&gt;&lt;P&gt;It is not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not seeing an LED brighten or dim either and yet, I know that I can turn the LED on and off.&lt;/P&gt;&lt;P&gt;Two questions:&lt;/P&gt;&lt;P&gt;1. Would you be so kind as to taking a look at the attachment and giving me some ideas (with an explanation) about what is wrong?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. What is the best way to Turn TPM On and Off?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 21:30:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-PWM-TPM-K66-Code-is-not-working/m-p/1199159#M59111</guid>
      <dc:creator>BARN_RD</dc:creator>
      <dc:date>2020-12-14T21:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Timer/PWM (TPM) - K66 - Code is not working...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-PWM-TPM-K66-Code-is-not-working/m-p/1199329#M59116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;BARN_RD,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; After checking your code, I find you enable the TPM before you complete the TPM register initialization.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Normally, we disable the TPM clock at first, TPM_SC[CMOD]=0, then configure all the related TPM register, then enable the TPM clock,&amp;nbsp;TPM_SC[CMOD]=1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; If you are new to kinetis, I highly suggest you refer to the MK66 SDK code, which can be downloaded from this link:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://mcuxpresso.nxp.com/" target="_blank"&gt;https://mcuxpresso.nxp.com/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Choose the board as FRDM-K66, then generate the code and download it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You will find the TPM code in folder:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SDK_2.7.0_FRDM-K66F\boards\frdmk66f\driver_examples\tpm&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you！&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you still have questions about it, please kindly let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 04:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-PWM-TPM-K66-Code-is-not-working/m-p/1199329#M59116</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-12-15T04:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timer/PWM (TPM) - K66 - Code is not working...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-PWM-TPM-K66-Code-is-not-working/m-p/1203112#M59159</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Thank you for the input on disabling / enabling the clock.&lt;/P&gt;&lt;P&gt;I also had a misconfiguration on the&amp;nbsp;TPM1_CONF register.&lt;/P&gt;&lt;P&gt;Things are looking much better.&lt;/P&gt;&lt;P&gt;Please close the ticket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 14:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-PWM-TPM-K66-Code-is-not-working/m-p/1203112#M59159</guid>
      <dc:creator>BARN_RD</dc:creator>
      <dc:date>2020-12-22T14:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Timer/PWM (TPM) - K66 - Code is not working...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-PWM-TPM-K66-Code-is-not-working/m-p/1203307#M59166</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;BARN_RD,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks for your updated information.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Please help to mark the correct answer to close this question post.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Any new questions in the future, welcome to create the new case.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;If you still have questions about it, please kindly let me know!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;-----------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 01:24:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-PWM-TPM-K66-Code-is-not-working/m-p/1203307#M59166</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-12-23T01:24:38Z</dc:date>
    </item>
  </channel>
</rss>

