<?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: How to configure multi-channel ADC with DMA in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-multi-channel-ADC-with-DMA/m-p/430435#M24862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; I think that this document &lt;A href="https://community.nxp.com/docs/DOC-104395"&gt;Using DMA to Emulate ADC Flexible Scan Mode with KSDK&lt;/A&gt;&amp;nbsp; contains the software you are looking for. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 20:46:58 GMT</pubDate>
    <dc:creator>AleGuzman</dc:creator>
    <dc:date>2015-06-17T20:46:58Z</dc:date>
    <item>
      <title>How to configure multi-channel ADC with DMA</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-multi-channel-ADC-with-DMA/m-p/430433#M24860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a FRDM-K64 evaluation board. &lt;/P&gt;&lt;P&gt;I am developing using KSDK.&lt;/P&gt;&lt;P&gt;I am trying to setup 4 ADC channels each at 50Ksps using EDMA:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADC0 Channels:&amp;nbsp; 0 &amp;amp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADC1 Channels: 0 &amp;amp; 1&lt;/P&gt;&lt;P&gt;I have setup PDB trigger channels and they are working without the DMA.&lt;/P&gt;&lt;P&gt;Also I got ADC0 channel0 and ADC1 channel0 to work with DMA.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I am trying to get flexible scan mode to work so that both ADC0 channels can be dumped into the memory buffer using DMA.&lt;/P&gt;&lt;P&gt;How do I setup the elink DMA channel to trigger and toggle between ADC0 channel0 and 1?&amp;nbsp; (Using KSDK)&lt;/P&gt;&lt;P&gt;-&amp;nbsp; I have DMA channel 1 (ADC conversion --&amp;gt; Memory)&lt;/P&gt;&lt;P&gt;-&amp;nbsp; DMA channel 0 the elinked channel to set ADC0_SC1A toggling between kAdc16Chn0 &amp;amp; kAdc16Chn1&lt;/P&gt;&lt;P&gt;-&amp;nbsp; DMA channel 1 is setup to ping pong between two buffers so that when one is being written to, the other buffer can be transferred to SD Card/ USB memory.&lt;/P&gt;&lt;P&gt;- PDB is setup to have a single channel group pre trigger&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also can't I use PDB0 soft interrupt to trigger DMA channel 0 (ADC0_SC1A)&amp;nbsp; instead of elink?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;I have tried using EDMA_DRV_ConfigLoopTransfer and EDMA_HAL_HTCDSetChannelMinorLink.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;You can find incomplete code attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337554"&gt;adcDMAc.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 22:00:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-multi-channel-ADC-with-DMA/m-p/430433#M24860</guid>
      <dc:creator>ryanramanathan</dc:creator>
      <dc:date>2015-06-04T22:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure multi-channel ADC with DMA</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-multi-channel-ADC-with-DMA/m-p/430434#M24861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not using PDB0's ping pond mode to trigger ADC0 CH0 and ADC0 CH1? You may set up the eDMA as a major loop with 2 minor loops, in the first minor loop, DMA moves the result of ADC0 CH0, and in the second minor loop, DMA moves the result of ADC0 CH1, and when the major loop completes, you may switch the buffer in the ISR of eDMA, The PDB0 can be trigger by SW or RTC and something like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&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, 09 Jun 2015 07:12:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-multi-channel-ADC-with-DMA/m-p/430434#M24861</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-06-09T07:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure multi-channel ADC with DMA</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-multi-channel-ADC-with-DMA/m-p/430435#M24862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; I think that this document &lt;A href="https://community.nxp.com/docs/DOC-104395"&gt;Using DMA to Emulate ADC Flexible Scan Mode with KSDK&lt;/A&gt;&amp;nbsp; contains the software you are looking for. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 20:46:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-multi-channel-ADC-with-DMA/m-p/430435#M24862</guid>
      <dc:creator>AleGuzman</dc:creator>
      <dc:date>2015-06-17T20:46:58Z</dc:date>
    </item>
  </channel>
</rss>

