<?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 Design Studio中的主题 Duty cycle configuration in code</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Duty-cycle-configuration-in-code/m-p/444321#M4245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We&amp;nbsp; are using KDS 3.0.0 and ksdk 1.2.0&lt;/P&gt;&lt;P&gt;We need to generate pwm output with different dutycycles given in code.&lt;/P&gt;&lt;P&gt;we used fsl_ftm component for pwm&lt;/P&gt;&lt;P&gt;But the dutycycle remains same,( means the one which we give at the time of code generation using processor expert.)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone&amp;nbsp; help me to overcome this problem. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="64731_64731.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120550i0B6DCA6739EEFC95/image-size/large?v=v2&amp;amp;px=999" role="button" title="64731_64731.png" alt="64731_64731.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/52624i75EAAF16D2C49F92/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 style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="64742_64742.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120551iB21F9FB626A00705/image-size/large?v=v2&amp;amp;px=999" role="button" title="64742_64742.png" alt="64742_64742.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/52693i52C42D19C78B1F20/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&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="64732_64732.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120552i66A03AA4DE919B7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="64732_64732.png" alt="64732_64732.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52663iBB2CC5C08D5E7BD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 17:31:52 GMT</pubDate>
    <dc:creator>rahul_eris</dc:creator>
    <dc:date>2015-08-17T17:31:52Z</dc:date>
    <item>
      <title>Duty cycle configuration in code</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Duty-cycle-configuration-in-code/m-p/444321#M4245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We&amp;nbsp; are using KDS 3.0.0 and ksdk 1.2.0&lt;/P&gt;&lt;P&gt;We need to generate pwm output with different dutycycles given in code.&lt;/P&gt;&lt;P&gt;we used fsl_ftm component for pwm&lt;/P&gt;&lt;P&gt;But the dutycycle remains same,( means the one which we give at the time of code generation using processor expert.)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone&amp;nbsp; help me to overcome this problem. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="64731_64731.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120550i0B6DCA6739EEFC95/image-size/large?v=v2&amp;amp;px=999" role="button" title="64731_64731.png" alt="64731_64731.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/52624i75EAAF16D2C49F92/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 style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="64742_64742.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120551iB21F9FB626A00705/image-size/large?v=v2&amp;amp;px=999" role="button" title="64742_64742.png" alt="64742_64742.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/52693i52C42D19C78B1F20/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&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="64732_64732.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120552i66A03AA4DE919B7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="64732_64732.png" alt="64732_64732.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52663iBB2CC5C08D5E7BD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 17:31:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Duty-cycle-configuration-in-code/m-p/444321#M4245</guid>
      <dc:creator>rahul_eris</dc:creator>
      <dc:date>2015-08-17T17:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Duty cycle configuration in code</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Duty-cycle-configuration-in-code/m-p/444322#M4246</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;if we don't use KSDK, we can use PPG component that includes method to change PWM duty cycle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, fsl_ftm component&amp;nbsp; doesn't contain any option or method to update PWM duty cycle. this issue will be solved in KSDK1.3.0 which is target to be released at the end of Q3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is the PWMStart method only. You can use the FTM_HAL_SetChnCountVal() method of the HAL driver but you must also ensure the proper synchronization of the CnV register (e.g. use the FTM_HAL_SetSoftwareTriggerCmd()).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this issue was also discussed her:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/496961#496961"&gt;https://community.freescale.com/message/496961&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can this answer help you?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&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>Wed, 19 Aug 2015 10:16:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Duty-cycle-configuration-in-code/m-p/444322#M4246</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-08-19T10:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Duty cycle configuration in code</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Duty-cycle-configuration-in-code/m-p/444323#M4247</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;Now I can update the PWM Duty cycle in code by the below codes....Also can able to run multiple channels with that fsl_ftm component(FTM0) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FTM_DRV_Init(FSL_FLEXTIMER1,&amp;amp;flexTimer1_InitConfig0);&lt;/P&gt;&lt;P&gt; FTM_DRV_CounterStart(FSL_FLEXTIMER1,kCounting_FTM_UP, 0, 0xFFFF, false);&lt;/P&gt;&lt;P&gt; flexTimer1_ChnConfig0.uDutyCyclePercent=50;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;//vary the duty cyce of channel 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; FTM_DRV_PwmStart(FSL_FLEXTIMER1,&amp;amp;flexTimer1_ChnConfig0,3U);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; flexTimer1_ChnConfig1.uDutyCyclePercent=90;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;//&amp;nbsp; vary the duty cyce of channel 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; FTM_DRV_PwmStart(FSL_FLEXTIMER1,&amp;amp;flexTimer1_ChnConfig1,1U);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FTM_HAL_SetSoftwareTriggerCmd(FTM0_BASE_PTR, true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 16:25:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Duty-cycle-configuration-in-code/m-p/444323#M4247</guid>
      <dc:creator>rahul_eris</dc:creator>
      <dc:date>2015-08-19T16:25:17Z</dc:date>
    </item>
  </channel>
</rss>

