<?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: KL16Z Adjusting TPM duration through DMA in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-Adjusting-TPM-duration-through-DMA/m-p/1292179#M60853</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tpm.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147056iE88DBAB67FE36D75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tpm.PNG" alt="tpm.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You do not need DMA. From this picture, CMOD[1:0] != 0:0, you use the CPWM mod. So you can directly write the new MOD value. The value will stored in buffer. When the counter changes from MOD to MOD-1, the MOD will updated from buffer. And your duration is also changed.&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 02:04:45 GMT</pubDate>
    <dc:creator>nxf56274</dc:creator>
    <dc:date>2021-06-15T02:04:45Z</dc:date>
    <item>
      <title>KL16Z Adjusting TPM duration through DMA</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-Adjusting-TPM-duration-through-DMA/m-p/1291642#M60842</link>
      <description>&lt;P&gt;Hello, I have setup TPM for PWM which is center aligned. Now&amp;nbsp; for my application i needed to change the frequency with a given duration and that was done by updating the MOD register and using a timer&amp;nbsp; to stop the pulse when the duration was reached by clearing the MOD register but this consumed far too many cycles so i started looking at DMA .So regarding the subject, is there a way to set the duration of the pulse through DMA so that the buffer does not need to hold every single pulse?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 14:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-Adjusting-TPM-duration-through-DMA/m-p/1291642#M60842</guid>
      <dc:creator>turtius</dc:creator>
      <dc:date>2021-06-12T14:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: KL16Z Adjusting TPM duration through DMA</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-Adjusting-TPM-duration-through-DMA/m-p/1292179#M60853</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tpm.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147056iE88DBAB67FE36D75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tpm.PNG" alt="tpm.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You do not need DMA. From this picture, CMOD[1:0] != 0:0, you use the CPWM mod. So you can directly write the new MOD value. The value will stored in buffer. When the counter changes from MOD to MOD-1, the MOD will updated from buffer. And your duration is also changed.&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 02:04:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-Adjusting-TPM-duration-through-DMA/m-p/1292179#M60853</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2021-06-15T02:04:45Z</dc:date>
    </item>
  </channel>
</rss>

