<?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のトピックK20: Can the comparator reset PWM?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315785#M13832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to set up the comparator and FTM so that the comparator output acts as a PWM reset (e.g. does the same thing as when the counter reaches CnV)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to generate two complementary PWM drive signals with dead-time insertion, but I'd like the actual duty time to be driven by the comparator. Having looked in the K20SFRM I found no way to do that (DMA came closest, but is too slow and doesn't solve the problem of loading a non-zero CnV value for the next cycle), but perhaps I missed something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would an external connection help? This is on a K20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice/hints appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jun 2014 13:09:00 GMT</pubDate>
    <dc:creator>jrychter</dc:creator>
    <dc:date>2014-06-08T13:09:00Z</dc:date>
    <item>
      <title>K20: Can the comparator reset PWM?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315785#M13832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to set up the comparator and FTM so that the comparator output acts as a PWM reset (e.g. does the same thing as when the counter reaches CnV)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to generate two complementary PWM drive signals with dead-time insertion, but I'd like the actual duty time to be driven by the comparator. Having looked in the K20SFRM I found no way to do that (DMA came closest, but is too slow and doesn't solve the problem of loading a non-zero CnV value for the next cycle), but perhaps I missed something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would an external connection help? This is on a K20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice/hints appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 13:09:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315785#M13832</guid>
      <dc:creator>jrychter</dc:creator>
      <dc:date>2014-06-08T13:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: K20: Can the comparator reset PWM?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315786#M13833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan,&lt;/P&gt;&lt;P&gt;After I've had a brief through your question, I'm a littel confused about it and I'd like to confirm.&lt;/P&gt;&lt;P&gt;1. As you mentioned, the two complementary PWM're driven by comparator output, is it mean use the falling-edge or rising-edge of comparator output as a trigger to start the two complementary PWM?&lt;/P&gt;&lt;P&gt;2. Do the two complementary PWM's fequency and width keep same after reset?&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Mon, 09 Jun 2014 07:01:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315786#M13833</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2014-06-09T07:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: K20: Can the comparator reset PWM?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315787#M13834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, I wasn't very clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to use the rising-edge of comparator output, but not to start the PWM, but to set/reset the signals. The PWM period remains the same, but width depends on when the comparator output becomes high. Perhaps the following picture will help:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ftm-pwm-cmp.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43820iDAD708FA6DEF860B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ftm-pwm-cmp.png" alt="ftm-pwm-cmp.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the picture, the first two waveforms are (roughly) complementary FTM outputs with dead-time. The red lines denote the period. The third waveform is one of the comparator inputs, and the last waveform is comparator output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, I'd like to ignore the CnV value, and drive the PWM width through the comparator output. Is this possible at all?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 10:28:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315787#M13834</guid>
      <dc:creator>jrychter</dc:creator>
      <dc:date>2014-06-09T10:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: K20: Can the comparator reset PWM?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315788#M13835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan,&lt;/P&gt;&lt;P&gt;Thanks for your reply and&amp;nbsp; explain your question again.&lt;/P&gt;&lt;P&gt;I think I've figure out your purpose now. If you want change the width of PWM in next period when rising-edge of comparator output arrive. you should load a different value to CnV register.&lt;/P&gt;&lt;P&gt;And I'd like to suggest you'd better revise the C(n)V update operation in reference manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44129i1D6BF687769FB75B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Tue, 10 Jun 2014 07:29:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315788#M13835</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2014-06-10T07:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: K20: Can the comparator reset PWM?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315789#M13836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, this will not work. I need *every* pulse to last until comparator output rising-edge. Loading a different CnV value is a) too slow, even using DMA, b) doesn't solve much, because I'd have to load a 0 to make sure to cut the pulse short, and then I'd have to somehow make sure the output becomes high in the next PWM period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Never mind. I don't think this can be done with Kinetis peripherals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 08:42:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315789#M13836</guid>
      <dc:creator>jrychter</dc:creator>
      <dc:date>2014-06-10T08:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: K20: Can the comparator reset PWM?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315790#M13837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;According to your response, Yes, I think the FTM module is incapable of this implemention.&lt;/P&gt;&lt;P&gt;Thank for you very much for your focus on Freescale Kinetis product.&lt;/P&gt;&lt;P&gt;If you have other questions, please feel free to contact with me.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Tue, 10 Jun 2014 09:07:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Can-the-comparator-reset-PWM/m-p/315790#M13837</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2014-06-10T09:07:52Z</dc:date>
    </item>
  </channel>
</rss>

