<?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 + ADC + PDB with Processor Expert (Kinetis K22 - MK22FN512VLH12) in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-ADC-PDB-with-Processor-Expert-Kinetis-K22-MK22FN512VLH12/m-p/598251#M35055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Felipe,&lt;/P&gt;&lt;P&gt;Can you post your project code here so that we can review and debug?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2017 07:34:03 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2017-02-10T07:34:03Z</dc:date>
    <item>
      <title>DMA + ADC + PDB with Processor Expert (Kinetis K22 - MK22FN512VLH12)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-ADC-PDB-with-Processor-Expert-Kinetis-K22-MK22FN512VLH12/m-p/598250#M35054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I need to take samples periodically (@11050 Hz, 16-bit, differential between pins ADC0_DP0 and ADC0_DM0), and store it into a double buffer, in order to run DSP algorithms like FFT on one of these buffers while DMA writes into the other.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use PDB to trigger ADC0 to take samples and put them in a buffer using eDMA.&lt;/P&gt;&lt;P&gt;I used an application note AN4688 "Sampling Audio with ADC on Kinetis KwikStik", detailing step by step how to implement them using low level blocks: Init_eDMA, Init_ADC and Init_PDB.&lt;/P&gt;&lt;P&gt;I did it exactly as the guide said and I cannot manage the ADC to run nor enter to any of those interrupts. Can you tell me if there is something I am doing wrong, please?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dumped some code and the Processor Expert code in the zip archive attached.&lt;/P&gt;&lt;P&gt;I also attached the AN4688 Application Note.&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-337572"&gt;adc-dma-pdb.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 19:36:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-ADC-PDB-with-Processor-Expert-Kinetis-K22-MK22FN512VLH12/m-p/598250#M35054</guid>
      <dc:creator>felipeveraa</dc:creator>
      <dc:date>2017-02-03T19:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: DMA + ADC + PDB with Processor Expert (Kinetis K22 - MK22FN512VLH12)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-ADC-PDB-with-Processor-Expert-Kinetis-K22-MK22FN512VLH12/m-p/598251#M35055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Felipe,&lt;/P&gt;&lt;P&gt;Can you post your project code here so that we can review and debug?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 07:34:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-ADC-PDB-with-Processor-Expert-Kinetis-K22-MK22FN512VLH12/m-p/598251#M35055</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-02-10T07:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: DMA + ADC + PDB with Processor Expert (Kinetis K22 - MK22FN512VLH12)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-ADC-PDB-with-Processor-Expert-Kinetis-K22-MK22FN512VLH12/m-p/598252#M35056</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;For ready-made solution see&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTaskerADC.pdf" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerADC.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTasker_DSP.pdf" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTasker_DSP.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K22 operation in video:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dn-GABeILGV8%26feature%3Dyoutu.be" rel="nofollow" target="_blank"&gt;https://www.youtube.com/watch?v=n-GABeILGV8&amp;amp;feature=youtu.be&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which includes DMA, ping-pong buffer management and also FFT which can operate directly in circular buffer (avoiding the main complications, source of errors and loss of development time in such configurations).&lt;BR /&gt;&lt;EM&gt;Video using 50% overlapping buffers with input windowing&lt;/EM&gt;&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;SPAN&gt;Kinetis solutions for professionals: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2F" rel="nofollow" target="_blank"&gt;http://www.utasker.com/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 14:15:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-ADC-PDB-with-Processor-Expert-Kinetis-K22-MK22FN512VLH12/m-p/598252#M35056</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-02-10T14:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: DMA + ADC + PDB with Processor Expert (Kinetis K22 - MK22FN512VLH12)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-ADC-PDB-with-Processor-Expert-Kinetis-K22-MK22FN512VLH12/m-p/598253#M35057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! But I solved that question by myself, and it was a little big detail I was left.&lt;/P&gt;&lt;P&gt;I left unchecked the PDB trigger for DMA, so it didn't transfer samples periodically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 20:12:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-ADC-PDB-with-Processor-Expert-Kinetis-K22-MK22FN512VLH12/m-p/598253#M35057</guid>
      <dc:creator>felipeveraa</dc:creator>
      <dc:date>2017-03-02T20:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: DMA + ADC + PDB with Processor Expert (Kinetis K22 - MK22FN512VLH12)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-ADC-PDB-with-Processor-Expert-Kinetis-K22-MK22FN512VLH12/m-p/598254#M35058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="293980" data-username="felipeveraa" href="https://community.nxp.com/people/felipeveraa" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;Felipe Vera&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please upload the Working project(&lt;/P&gt;&lt;H1 style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 2rem;"&gt;DMA + ADC + PDB with Processor Expert (Kinetis K22 - MK22FN512VLH12)&lt;/H1&gt;&lt;P&gt;) with K22. I have followed the same steps and configured the PE, I am not able to run the program. It is going to DEBUG Halt when I run the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhruv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 07:29:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-ADC-PDB-with-Processor-Expert-Kinetis-K22-MK22FN512VLH12/m-p/598254#M35058</guid>
      <dc:creator>dhruvonline</dc:creator>
      <dc:date>2018-06-04T07:29:31Z</dc:date>
    </item>
  </channel>
</rss>

