<?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: DMA CITER register modification on-fly in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-CITER-register-modification-on-fly/m-p/508136#M31955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Please following the steps to modify the TCD register.&lt;/P&gt;&lt;P&gt;-disable the &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;dma&lt;/STRONG&gt;&lt;/SPAN&gt; channel by clearing &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;DMA&lt;/STRONG&gt;&lt;/SPAN&gt; Request Enable bit&lt;/P&gt;&lt;P&gt;-wait for DMA_TCDn.active = 0&lt;/P&gt;&lt;P&gt;-change the TCD to the initial configuration (to start from beginning)&lt;/P&gt;&lt;P&gt;-enable the &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;dma&lt;/STRONG&gt;&lt;/SPAN&gt; channel by setting &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;DMA&lt;/STRONG&gt;&lt;/SPAN&gt; Request Enable bit&lt;/P&gt;&lt;P&gt;Now once the &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;dma&lt;/STRONG&gt;&lt;/SPAN&gt; channel is started again, it again loads TCDn to eDMA registers&lt;/P&gt;&lt;P&gt;and executes the minor loop according to the values in TCDn.&lt;/P&gt;&lt;P&gt;Hope it helps.&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, 29 Mar 2016 07:41:09 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2016-03-29T07:41:09Z</dc:date>
    <item>
      <title>DMA CITER register modification on-fly</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-CITER-register-modification-on-fly/m-p/508135#M31954</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 have K60 and have written a DMA channel with dummy source / destination addresses. I need to modify the&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;DMA_TCD0_CITER_ELINKNO = DMA_CITER_ELINKNO_CITER_MASK;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp; CITER register value (reset to 0x7FFF), after certain numbfer of major loops. My question:&lt;/P&gt;&lt;P&gt;Is it thread-safe to modify the CITER register in another timer interrupt ISR?&lt;/P&gt;&lt;P&gt;Or have to stop the DMA operation and modify the register?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;David Zhou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 21:04:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-CITER-register-modification-on-fly/m-p/508135#M31954</guid>
      <dc:creator>davidzhou</dc:creator>
      <dc:date>2016-03-28T21:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: DMA CITER register modification on-fly</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-CITER-register-modification-on-fly/m-p/508136#M31955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Please following the steps to modify the TCD register.&lt;/P&gt;&lt;P&gt;-disable the &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;dma&lt;/STRONG&gt;&lt;/SPAN&gt; channel by clearing &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;DMA&lt;/STRONG&gt;&lt;/SPAN&gt; Request Enable bit&lt;/P&gt;&lt;P&gt;-wait for DMA_TCDn.active = 0&lt;/P&gt;&lt;P&gt;-change the TCD to the initial configuration (to start from beginning)&lt;/P&gt;&lt;P&gt;-enable the &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;dma&lt;/STRONG&gt;&lt;/SPAN&gt; channel by setting &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;DMA&lt;/STRONG&gt;&lt;/SPAN&gt; Request Enable bit&lt;/P&gt;&lt;P&gt;Now once the &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;dma&lt;/STRONG&gt;&lt;/SPAN&gt; channel is started again, it again loads TCDn to eDMA registers&lt;/P&gt;&lt;P&gt;and executes the minor loop according to the values in TCDn.&lt;/P&gt;&lt;P&gt;Hope it helps.&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, 29 Mar 2016 07:41:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-CITER-register-modification-on-fly/m-p/508136#M31955</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-03-29T07:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: DMA CITER register modification on-fly</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-CITER-register-modification-on-fly/m-p/508137#M31956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeremy,&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 12:23:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-CITER-register-modification-on-fly/m-p/508137#M31956</guid>
      <dc:creator>davidzhou</dc:creator>
      <dc:date>2016-03-29T12:23:46Z</dc:date>
    </item>
  </channel>
</rss>

