<?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 Generation using Flex Timer Module(FTM) in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-Generation-using-Flex-Timer-Module-FTM/m-p/559073#M33791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the waveform generated by using TWR-K70F120M.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="waveform 16 pulses.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36866i8C6C35FF0C5356E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="waveform 16 pulses.jpg" alt="waveform 16 pulses.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2016 09:22:11 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2016-07-25T09:22:11Z</dc:date>
    <item>
      <title>PWM Generation using Flex Timer Module(FTM)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-Generation-using-Flex-Timer-Module-FTM/m-p/559071#M33789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using K70 processor in one of our board and controlling 4 stepper motor using allegro driver IC.&lt;/P&gt;&lt;P&gt;We are generating PWM pulses using FTM module and we found that while we use FTM and generate say 16 pulses with defined width we are getting one extra pulse occasionally. This behavior we found in both low true pulse and high true pulse configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also we have another issue when we configure as high true pulse instead of clear output on match it behaves like low true pulse(its sets output on match). Please find below the snap shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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/36198iD9A7E7371CDC30B9/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;/P&gt;&lt;P&gt;When we tried to configure it as GPIO and toggle we are not facing any of the above issue, ie we are not getting extra pulse or behaves as intended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To give the hardware background we are using K70 Processor in one board (control board) and Allegro A4989 drive IC in another board (Motor Driver board).&lt;/P&gt;&lt;P&gt;We have a non inverting buffer 74AC541MTC in control board (in between K70 processor and Allegro Driver).&lt;/P&gt;&lt;P&gt;We have directly connected K70 PWM pin output to buffer (with no pull up/pull resistor at buffer input) and then buffer output connects to driver IC.&lt;/P&gt;&lt;P&gt;Please tell us why we are facing this issue only when we configure the IO pin as FTM and generate PWM but not when we configure as GPIO and toggle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;Karthick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 14:11:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-Generation-using-Flex-Timer-Module-FTM/m-p/559071#M33789</guid>
      <dc:creator>karthicksivakum</dc:creator>
      <dc:date>2016-07-11T14:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Generation using Flex Timer Module(FTM)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-Generation-using-Flex-Timer-Module-FTM/m-p/559072#M33790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using &lt;A href="http://www.nxp.com/products/software-and-tools/run-time-software/kinetis-software-and-tools/ides-for-kinetis-mcus/kinetis-design-studio-integrated-development-environment-ide:KDS_IDE"&gt;Kinetis Design Studio IDE&lt;/A&gt; with Processor Expert, I recommand you refer the Typical Usage of Component PPG_LDD.&lt;/P&gt;&lt;P&gt;"Initial polarity is Low, Ratio is 80%" seems meet your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want generate 16 pulses, use:&lt;STRONG&gt;Iterations before action/event&lt;/STRONG&gt; - Number of periods before &lt;A href="http://127.0.0.1:59212/help/ntopic/com.freescale.doc.processorexpert.components/Beans/PPG_LDD/PPG_LDDEvents.html"&gt;OnEnd&lt;/A&gt; event.&lt;/P&gt;&lt;P&gt;You can use FTMx_OUTMASK to masked the output of Channel. It can force that channel to its inactive state.(in PPG1_OnEnd function)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PPG_LDD generate 16 pulses.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/37619i7072A0C8DD4E49D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="PPG_LDD generate 16 pulses.png" alt="PPG_LDD generate 16 pulses.png" /&gt;&lt;/span&gt;&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&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 09:28:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-Generation-using-Flex-Timer-Module-FTM/m-p/559072#M33790</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-07-13T09:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Generation using Flex Timer Module(FTM)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-Generation-using-Flex-Timer-Module-FTM/m-p/559073#M33791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the waveform generated by using TWR-K70F120M.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="waveform 16 pulses.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36866i8C6C35FF0C5356E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="waveform 16 pulses.jpg" alt="waveform 16 pulses.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 09:22:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PWM-Generation-using-Flex-Timer-Module-FTM/m-p/559073#M33791</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-07-25T09:22:11Z</dc:date>
    </item>
  </channel>
</rss>

