<?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: FRDM-KW41Z in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KW41Z/m-p/921573#M53783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jun 2019 09:09:31 GMT</pubDate>
    <dc:creator>surender1896</dc:creator>
    <dc:date>2019-06-17T09:09:31Z</dc:date>
    <item>
      <title>FRDM-KW41Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KW41Z/m-p/921571#M53781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone suggest me a code for sensing ADC and giving to PWM channels, I'm having an problem regarding this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2019 03:48:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KW41Z/m-p/921571#M53781</guid>
      <dc:creator>surender1896</dc:creator>
      <dc:date>2019-06-14T03:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KW41Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KW41Z/m-p/921572#M53782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;nbsp;surender elumalai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems that you want to update PWM duty cycle according to the ADC value.&lt;BR /&gt;You don't need to initialize pwm(&lt;STRONG&gt;pwm_init&lt;/STRONG&gt;) every time, The &lt;STRONG&gt;pwm_init&lt;/STRONG&gt; only need to run one time in main function.&lt;BR /&gt;What you need to do is just update the duty cycle in &lt;STRONG&gt;ADC16_SE4_IRQ_HANDLER_FUNC&lt;/STRONG&gt;. &lt;BR /&gt;&lt;STRONG&gt;TPM_UpdatePwmDutycycle&lt;/STRONG&gt; can be use to achieve it.&lt;/P&gt;&lt;P&gt;For example:&lt;BR /&gt;&lt;STRONG&gt;TPM_UpdatePwmDutycycle&lt;/STRONG&gt;(BOARD_TPM_BASEADDR, BOARD_TPM_CHANNEL_PAIR, kTPM_CombinedPwm, updatedDutycycle);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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, 17 Jun 2019 07:40:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KW41Z/m-p/921572#M53782</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2019-06-17T07:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KW41Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KW41Z/m-p/921573#M53783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 09:09:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KW41Z/m-p/921573#M53783</guid>
      <dc:creator>surender1896</dc:creator>
      <dc:date>2019-06-17T09:09:31Z</dc:date>
    </item>
  </channel>
</rss>

