<?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 to GPIO  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-to-GPIO/m-p/906804#M53215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks @robin_shen&lt;/P&gt;&lt;P&gt;Thanks for your help. I figured this out and exactly that was the issue.i was trying to write onto psor and read from it. But psor doesn't support read. When I changed Daddr to read from pdor it worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 May 2019 19:17:51 GMT</pubDate>
    <dc:creator>swa14720</dc:creator>
    <dc:date>2019-05-01T19:17:51Z</dc:date>
    <item>
      <title>DMA to GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-to-GPIO/m-p/906801#M53212</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 am using Kinetis MK22 MCU. I want to transfer data from memory to GPIO PortC using DMA. When I gave TCD0_DADDR = address of GPIOC_PSOR, the DMA is not working as expected (i.e the data is not been transferred to&amp;nbsp; DADDR). Does MK22 DMA support GPIO registers as destination address?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 18:33:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-to-GPIO/m-p/906801#M53212</guid>
      <dc:creator>swa14720</dc:creator>
      <dc:date>2019-04-23T18:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: DMA to GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-to-GPIO/m-p/906802#M53213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no restriction to doing DMA transfers to GPIO on the K22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the uTasker project a reference application is to bridge a UART input to GPIO output (almost as if it were a wired connection) by using this configuration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Configure the DMA trigger from the UART input pin change to toggle an alternative port so that the input signal is mirrored to that output without CPU intervention&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static const unsigned long ulOutput = PORTC_BIT16;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // the output to be mirrored to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fnConfigDMA_buffer(9, DMAMUX0_CHCFG_SOURCE_PORTB, sizeof(ulOutput), (void *)&amp;amp;ulOutput, (void *)&amp;amp;(((GPIO_REGS *)GPIOC_ADD)-&amp;gt;PTOR), (DMA_FIXED_ADDRESSES | DMA_LONG_WORDS), 0, 0); // use DMA channel 9 without any interrupts (free-runnning)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that it uses the PTOR register so that every write causes a toggle. Maybe you are not using&amp;nbsp; suitable register or the value being written to it is not correct (?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&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;EM&gt;Complete Kinetis solutions for professionals, training and support: &lt;A href="http://www.utasker.com/kinetis.html" target="test_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Kinetis K22:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-K22F.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-K22F.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TWR-K22F120M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-K22F120M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/BLAZE_K22.html" target="test_blank"&gt;http://www.utasker.com/kinetis/BLAZE_K22.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/tinyK22.html" target="test_blank"&gt;http://www.utasker.com/kinetis/tinyK22.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 18:54:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-to-GPIO/m-p/906802#M53213</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-04-23T18:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: DMA to GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-to-GPIO/m-p/906803#M53214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer the &lt;A href="https://www.nxp.com/docs/en/application-note/AN4419.pdf"&gt;AN4419 Using DMA and GPIO to emulate timer functionality on Kinetis Family devices&lt;/A&gt;&lt;BR /&gt;I think you'd better use GPIOx_PDOR instead of use GPIOx_PSOR.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="GPIOx_PDOR.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72513iD0B40B7E11B04D34/image-size/large?v=v2&amp;amp;px=999" role="button" title="GPIOx_PDOR.png" alt="GPIOx_PDOR.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="GPIOx_PSOR.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72556i2804906141CC187A/image-size/large?v=v2&amp;amp;px=999" role="button" title="GPIOx_PSOR.png" alt="GPIOx_PSOR.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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, 30 Apr 2019 08:23:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-to-GPIO/m-p/906803#M53214</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2019-04-30T08:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: DMA to GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-to-GPIO/m-p/906804#M53215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks @robin_shen&lt;/P&gt;&lt;P&gt;Thanks for your help. I figured this out and exactly that was the issue.i was trying to write onto psor and read from it. But psor doesn't support read. When I changed Daddr to read from pdor it worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2019 19:17:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-to-GPIO/m-p/906804#M53215</guid>
      <dc:creator>swa14720</dc:creator>
      <dc:date>2019-05-01T19:17:51Z</dc:date>
    </item>
  </channel>
</rss>

