<?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: FTM not working unless COMBINE=1 on MK20DX128</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-not-working-unless-COMBINE-1-on-MK20DX128/m-p/627319#M37673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;If you want to set up the FTM to output 6 PWM signals, you should clear the COMBINEx and COMPx bits, for example, if you want to output indepent PWM signals from FTM_CH0/FTM_CH1/FTM_CH2/FTM_CH3/FTM_CH4/FTM_CH5 pins, you have to clear the COMBINE0,COMBINE1,COMBINE2 and clear COMP0,COMP1,COMP2.&lt;/P&gt;&lt;P&gt;For you code, I suggest you put the code at the end of initialization, after you set the FTM0_SC = FTM_SC_PS(1) | FTM_SC_CLKS(1);, the FTM runs immediately.&lt;/P&gt;&lt;P&gt;Hope it can help you.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2016 02:37:39 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2016-09-19T02:37:39Z</dc:date>
    <item>
      <title>FTM not working unless COMBINE=1 on MK20DX128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-not-working-unless-COMBINE-1-on-MK20DX128/m-p/627318#M37672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to generate 6 independent edge aligned PWM signals (with the same time base) using a MK20DX128 and I cannot get the PWMs to run. All examples that I have found are setting COMBINE=1 for the channels which gives me 4 combined channels, but I need to use them individually and I dont need the inverted version of the signal. If I clear FTM_ENABLE in FTM_MODE, then I get the channels running, but as soon as FTM_ENABLE is 1, then the channels are silent if I dont configure them to be combined.&lt;/P&gt;&lt;P&gt;According to the docs, it should be possible to run the channels with COMBINE=0, but I am not sure what I am missing when I set up the channels. What is the purpose of FTM_ENABLE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how I configure the FTM:&lt;/P&gt;&lt;P&gt;FTM0_MODE = FTM_MODE_FTMEN_MASK | FTM_MODE_WPDIS_MASK;&lt;/P&gt;&lt;P&gt;FTM0_SC = FTM_SC_PS(1) | FTM_SC_CLKS(1);&lt;/P&gt;&lt;P&gt;FTM_CnSC_REG(FTM0_BASE_PTR,channel) = FTM_CnSC_MSB_MASK | FTM_CnSC_ELSA_MASK;&lt;/P&gt;&lt;P&gt;FTM0_MOD = period;&lt;/P&gt;&lt;P&gt;FTM_CnV_REG(FTM0_BASE_PTR,channel) = low_time;&lt;/P&gt;&lt;P&gt;FTM0_PWMLOAD = FTM_PWMLOAD_LDOK_MASK | 0xff;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing? Or should I simply run the FTM with FTM_ENABLE = 0 (this seems odd to me, but FTM_ENABLE is not really documented so it is not clear what functionality that will be missed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;/Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2016 19:20:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-not-working-unless-COMBINE-1-on-MK20DX128/m-p/627318#M37672</guid>
      <dc:creator>stefanburstrom</dc:creator>
      <dc:date>2016-09-18T19:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: FTM not working unless COMBINE=1 on MK20DX128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-not-working-unless-COMBINE-1-on-MK20DX128/m-p/627319#M37673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;If you want to set up the FTM to output 6 PWM signals, you should clear the COMBINEx and COMPx bits, for example, if you want to output indepent PWM signals from FTM_CH0/FTM_CH1/FTM_CH2/FTM_CH3/FTM_CH4/FTM_CH5 pins, you have to clear the COMBINE0,COMBINE1,COMBINE2 and clear COMP0,COMP1,COMP2.&lt;/P&gt;&lt;P&gt;For you code, I suggest you put the code at the end of initialization, after you set the FTM0_SC = FTM_SC_PS(1) | FTM_SC_CLKS(1);, the FTM runs immediately.&lt;/P&gt;&lt;P&gt;Hope it can help you.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 02:37:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-not-working-unless-COMBINE-1-on-MK20DX128/m-p/627319#M37673</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-09-19T02:37:39Z</dc:date>
    </item>
  </channel>
</rss>

