<?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 PWM with processor expert KL43z? in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/PWM-with-processor-expert-KL43z/m-p/511213#M5249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using frdm-kl43z and processor expert. I'm trying to set up a simple pwm output for pin E24. I'm using component fsl_tpm.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="131440_131440.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121002i97BCEB25EC687219/image-size/large?v=v2&amp;amp;px=999" role="button" title="131440_131440.png" alt="131440_131440.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57053i2842F99F5F1B2750/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've configured the component as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="131439_131439.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121003iBAA9FB30F2B91353/image-size/large?v=v2&amp;amp;px=999" role="button" title="131439_131439.png" alt="131439_131439.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57008iEA4E843D3885DE88/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="132017_132017.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121004iB83908864D53B7D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="132017_132017.png" alt="132017_132017.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57070i3905EDDA9A407D4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how to set the duty cycle, but I initialized the frequency as 250 kHz:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="132018_132018.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121005i54B689113BC0C735/image-size/large?v=v2&amp;amp;px=999" role="button" title="132018_132018.png" alt="132018_132018.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57083iC0F4FFF8DD850F2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And just trying to initialize the output, I wrote this code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="132019_132019.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121006iA123F99D1EC2D624/image-size/large?v=v2&amp;amp;px=999" role="button" title="132019_132019.png" alt="132019_132019.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57092iA107EC5B7DF85278/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is this correct?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Jan 2016 21:19:42 GMT</pubDate>
    <dc:creator>christopherira</dc:creator>
    <dc:date>2016-01-24T21:19:42Z</dc:date>
    <item>
      <title>PWM with processor expert KL43z?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/PWM-with-processor-expert-KL43z/m-p/511213#M5249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using frdm-kl43z and processor expert. I'm trying to set up a simple pwm output for pin E24. I'm using component fsl_tpm.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="131440_131440.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121002i97BCEB25EC687219/image-size/large?v=v2&amp;amp;px=999" role="button" title="131440_131440.png" alt="131440_131440.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57053i2842F99F5F1B2750/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've configured the component as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="131439_131439.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121003iBAA9FB30F2B91353/image-size/large?v=v2&amp;amp;px=999" role="button" title="131439_131439.png" alt="131439_131439.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57008iEA4E843D3885DE88/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="132017_132017.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121004iB83908864D53B7D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="132017_132017.png" alt="132017_132017.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57070i3905EDDA9A407D4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how to set the duty cycle, but I initialized the frequency as 250 kHz:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="132018_132018.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121005i54B689113BC0C735/image-size/large?v=v2&amp;amp;px=999" role="button" title="132018_132018.png" alt="132018_132018.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57083iC0F4FFF8DD850F2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And just trying to initialize the output, I wrote this code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="132019_132019.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121006iA123F99D1EC2D624/image-size/large?v=v2&amp;amp;px=999" role="button" title="132019_132019.png" alt="132019_132019.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57092iA107EC5B7DF85278/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is this correct?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jan 2016 21:19:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/PWM-with-processor-expert-KL43z/m-p/511213#M5249</guid>
      <dc:creator>christopherira</dc:creator>
      <dc:date>2016-01-24T21:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: PWM with processor expert KL43z?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/PWM-with-processor-expert-KL43z/m-p/511214#M5250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Christopher,&lt;/P&gt;&lt;P&gt;- About the duty cycle , you&amp;nbsp; can configure it at here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56032i7582BB24BF60F6BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- About the initialize code , after you generated the code , you&amp;nbsp; can find the initialize code at here :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56080iB605AD8B7F398B26/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;you needn't write the initialize code by yourself .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 03:54:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/PWM-with-processor-expert-KL43z/m-p/511214#M5250</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-25T03:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: PWM with processor expert KL43z?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/PWM-with-processor-expert-KL43z/m-p/511215#M5251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's very helpful thank you. Additionally, how would I tell the processor to send the output or not send the output? Do I do that through a normal fsl_gpio?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 19:32:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/PWM-with-processor-expert-KL43z/m-p/511215#M5251</guid>
      <dc:creator>christopherira</dc:creator>
      <dc:date>2016-01-26T19:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: PWM with processor expert KL43z?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/PWM-with-processor-expert-KL43z/m-p/511216#M5252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Chris,&lt;/P&gt;&lt;P&gt;You don't need add fsl_gpio component.&lt;/P&gt;&lt;P&gt;In the fsl_tpm&amp;nbsp; component , we can configure the channel to out put PWM:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23525iAD62CDDF7338B29B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you select "Auto initialization " , after generate code , then run the project , it can out put PWM.&lt;/P&gt;&lt;P&gt;And if do not select this option , you can initialize and start it by yourself use the methods , and use the method&lt;/P&gt;&lt;P&gt;of "TPM_DRV_Deinit"&amp;nbsp; shouts down it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend you first&amp;nbsp; select the "Auto initialization " , then run the project , check whether can out put the signal you need .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 04:44:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/PWM-with-processor-expert-KL43z/m-p/511216#M5252</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-27T04:44:26Z</dc:date>
    </item>
  </channel>
</rss>

