<?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: PWM output by K64 FTM0 is not stable in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793833#M48301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Somehow I can't upload a 35KB picture. Do you know how to upload? Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Sep 2018 01:52:56 GMT</pubDate>
    <dc:creator>huiqili</dc:creator>
    <dc:date>2018-09-29T01:52:56Z</dc:date>
    <item>
      <title>PWM output by K64 FTM0 is not stable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793829#M48297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Sir/Madam:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I encountered a problem relating to PWM output by FTM. The uC used is K64. I used 2 FTM to output 4-channel PWM output. The port is GPIOC, pin 8 and 9, configured as FTM3 channel 4 and 5 (kPORT_MuxAlt3); GPIOD 5 and 6, configured as FTM0 channel 5 and 6 (kPORT_MuxAlt4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FTM configuration is listed below. And I updated the PWM output when timeout interrupt is triggered, with function FTM_UpdatePwmDutycycle and FTM_SetSoftwareTrigger. The problem is the output in 2-channel controlled by FTM3 is correct, while the output controlled by FTM0 is not stable. It seems there is something like periodical high level output in 2 FTM0 controlled channel. Could you let me know what the problem it might be, and/or how to do further analysis. (The RTX operation system is used in the program.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftm_config_t ftmInfo;&lt;BR /&gt; ftm_chnl_pwm_signal_param_t ftmParam[BCR_LED_CHANNEL_NUMS];&lt;BR /&gt; &lt;BR /&gt; /* Configure the FTM module for LED1 &amp;amp; LED2 */&lt;BR /&gt; ftmParam[0].chnlNumber = (ftm_chnl_t)BCR_LED_GRP1_FTM_CH1;&lt;BR /&gt; ftmParam[0].level = kFTM_LowTrue;&lt;BR /&gt; ftmParam[0].dutyCyclePercent = 0U;&lt;BR /&gt; ftmParam[0].firstEdgeDelayPercent = 0U;&lt;/P&gt;&lt;P&gt;ftmParam[1].chnlNumber = (ftm_chnl_t)BCR_LED_GRP1_FTM_CH2;&lt;BR /&gt; ftmParam[1].level = kFTM_LowTrue;&lt;BR /&gt; ftmParam[1].dutyCyclePercent = 0U;&lt;BR /&gt; ftmParam[1].firstEdgeDelayPercent = 0U;&lt;BR /&gt; &lt;BR /&gt; FTM_Type *base = BCR_LED_GRP1_FTM_BASEADDR;&lt;BR /&gt; FTM_GetDefaultConfig(&amp;amp;ftmInfo);&lt;BR /&gt;ftmInfo.prescale = kFTM_Prescale_Divide_4;&lt;BR /&gt; FTM_Init(base, &amp;amp;ftmInfo);&lt;BR /&gt; FTM_SetupPwm(base, ftmParam, BCR_LED_CHANNEL_NUMS, kFTM_EdgeAlignedPwm, BCR_FTM_PWM_FREQUENCEY, BCR_FTM_SOURCE_CLOCK); &lt;BR /&gt; FTM_StartTimer(base, kFTM_SystemClock);&lt;BR /&gt; FTM_EnableInterrupts(base, kFTM_TimeOverflowInterruptEnable);&lt;BR /&gt; &lt;BR /&gt; /* Configure the FTM module for LED3 &amp;amp; LED4 */&lt;BR /&gt; ftmParam[0].chnlNumber = (ftm_chnl_t)BCR_LED_GRP2_FTM_CH1;&lt;BR /&gt; ftmParam[0].level = kFTM_LowTrue;&lt;BR /&gt; ftmParam[0].dutyCyclePercent = 0U;&lt;BR /&gt; ftmParam[0].firstEdgeDelayPercent = 0U;&lt;/P&gt;&lt;P&gt;ftmParam[1].chnlNumber = (ftm_chnl_t)BCR_LED_GRP2_FTM_CH2;&lt;BR /&gt; ftmParam[1].level = kFTM_LowTrue;&lt;BR /&gt; ftmParam[1].dutyCyclePercent = 0U;&lt;BR /&gt; ftmParam[1].firstEdgeDelayPercent = 0U;&lt;BR /&gt; &lt;BR /&gt; base = BCR_LED_GRP2_FTM_BASEADDR;&lt;BR /&gt; FTM_GetDefaultConfig(&amp;amp;ftmInfo);&lt;BR /&gt; ftmInfo.prescale = kFTM_Prescale_Divide_4;&lt;BR /&gt; FTM_Init(base, &amp;amp;ftmInfo);&lt;BR /&gt; FTM_SetupPwm(base, ftmParam, BCR_LED_CHANNEL_NUMS, kFTM_EdgeAlignedPwm, BCR_FTM_PWM_FREQUENCEY, BCR_FTM_SOURCE_CLOCK);&lt;BR /&gt; FTM_StartTimer(base, kFTM_SystemClock);&lt;BR /&gt; FTM_EnableInterrupts(base, kFTM_TimeOverflowInterruptEnable);&lt;BR /&gt; &lt;BR /&gt; NVIC_EnableIRQ(BCR_LED_GRP1_FTM_IRQn);&lt;BR /&gt; NVIC_EnableIRQ(BCR_LED_GRP2_FTM_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Huiqi Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 04:25:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793829#M48297</guid>
      <dc:creator>huiqili</dc:creator>
      <dc:date>2018-09-25T04:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: PWM output by K64 FTM0 is not stable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793830#M48298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any comments? I need help. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 06:44:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793830#M48298</guid>
      <dc:creator>huiqili</dc:creator>
      <dc:date>2018-09-27T06:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: PWM output by K64 FTM0 is not stable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793831#M48299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It seems your code is similar to the ftm_pwm_twochannel demo. I couldn't find any problem from your code. There is also no such a error report in errata.&amp;nbsp; Since FTM3 is a copy of FTM0, you can compare their registers value in&amp;nbsp;each interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 07:13:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793831#M48299</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-09-28T07:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: PWM output by K64 FTM0 is not stable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793832#M48300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing:&lt;/P&gt;&lt;P&gt;Thanks for your reply. Actually I compared the FTM0 to FTM3, but no obvious mistake found.&lt;/P&gt;&lt;P&gt;It seems there is a periodical high level output, are there any registers specific relevant to this kind of output?&lt;/P&gt;&lt;P&gt;Here is a picture of error PWM output. Please check.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Huiqi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2018 01:46:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793832#M48300</guid>
      <dc:creator>huiqili</dc:creator>
      <dc:date>2018-09-29T01:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: PWM output by K64 FTM0 is not stable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793833#M48301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Somehow I can't upload a 35KB picture. Do you know how to upload? Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2018 01:52:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793833#M48301</guid>
      <dc:creator>huiqili</dc:creator>
      <dc:date>2018-09-29T01:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: PWM output by K64 FTM0 is not stable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793834#M48302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm sorry but it seems you didn't upload any picture.&lt;/P&gt;&lt;P&gt;You can try to monitor the CnV or MOD or other related register to see if there is any unexpected modify to these register.&lt;/P&gt;&lt;P&gt;There is a camera like icon at the top of reply area. Click it can insert image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Sep 2018 02:51:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-output-by-K64-FTM0-is-not-stable/m-p/793834#M48302</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-09-30T02:51:50Z</dc:date>
    </item>
  </channel>
</rss>

