<?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>LPC MicrocontrollersのトピックRe: LPC11u68 adc and dma</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-adc-and-dma/m-p/567496#M17547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Serigo,&lt;/P&gt;&lt;P&gt;I was wondering if you can describe exactly procedure of your application and upload the whole demo, then I can run it on my board on my site.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&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, 30 Aug 2016 02:44:05 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2016-08-30T02:44:05Z</dc:date>
    <item>
      <title>LPC11u68 adc and dma</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-adc-and-dma/m-p/567495#M17546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to read a buffer of 1024 from the adc. It is configured in burst mode and full speed conversion of 2Msps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried triggering the DMA from ADC conversions and from a Timer. It is working but not propperly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't mind what I use to trigger but the DMA seems running at more or less 10 MHz. In the results I can see one result with the flag valid followed by 3 or 4 invalid. I can't understand why when theorically only triggers DMA when the data is valid. Doesn't mind if I use a small timer, the DMA is working at 10 MHz. This is the configuration of the DMA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Enable DMA controller and use driver provided DMA table for&lt;BR /&gt; current descriptors */&lt;BR /&gt; LPC_DMA-&amp;gt;CTRL = 1;&lt;BR /&gt; LPC_DMA-&amp;gt;SRAMBASE = (uint32_t)Chip_DMA_Table;&lt;/P&gt;&lt;P&gt;/* Use ADC sequencer A interrupt for DMA trigger */&lt;BR /&gt; LPC_DMATRIGMUX-&amp;gt;DMA_ITRIG_PINMUX[0] = 0;&lt;/P&gt;&lt;P&gt;/* Setup channel 0 for the following configuration:&lt;BR /&gt; Hardware trigger on high edge */&lt;BR /&gt; LPC_DMA-&amp;gt;ENABLESET0 = (1 &amp;lt;&amp;lt; 0);&lt;BR /&gt; LPC_DMA-&amp;gt;INTENSET0 = (1 &amp;lt;&amp;lt; 0);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; LPC_DMA-&amp;gt;CFG0 = (1 &amp;lt;&amp;lt; 1) | (1 &amp;lt;&amp;lt; 4) | (0 &amp;lt;&amp;lt; 5);&lt;/P&gt;&lt;P&gt;/* Setup transfer descriptor common to all DMA descriptors for this buffer.&lt;BR /&gt; The transfer will reload the next descriptor in the list when done and&lt;BR /&gt; generate a single DMA interrupt at the completion of the list. */&lt;/P&gt;&lt;P&gt;//dmaDesc[0].xfercfg = (1 &amp;lt;&amp;lt; 0) | (1 &amp;lt;&amp;lt; 1) | (2 &amp;lt;&amp;lt; 8) | (0 &amp;lt;&amp;lt; 12) | (1 &amp;lt;&amp;lt; 14) | ((1024 - 1) &amp;lt;&amp;lt; 16) | (1 &amp;lt;&amp;lt; 4);&lt;BR /&gt; dmaDesc[0].xfercfg = (1 &amp;lt;&amp;lt; 0) | (1 &amp;lt;&amp;lt; 1) | (2 &amp;lt;&amp;lt; 8) | (0 &amp;lt;&amp;lt; 12) | (1 &amp;lt;&amp;lt; 14) | ((1024 - 1) &amp;lt;&amp;lt; 16) | (1 &amp;lt;&amp;lt; 4);&lt;BR /&gt; dmaDesc[0].source = ((uint32_t) (&amp;amp;LPC_ADC-&amp;gt;SEQA_GDAT));&lt;BR /&gt; dmaDesc[0].dest = ((uint32_t) (&amp;amp;adcBuff[(1024-1)]));&lt;BR /&gt; //dmaDesc[0].next = ((uint32_t) (&amp;amp;dmaDesc[0]));&lt;BR /&gt; dmaDesc[0].next = 0;&lt;/P&gt;&lt;P&gt;/* Setup full buffer dewscriptor list */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* Setup transfer descriptor and validate it */&lt;BR /&gt; DMA_CHDESC_T *pDesc = (DMA_CHDESC_T *) LPC_DMA-&amp;gt;SRAMBASE;&lt;BR /&gt; pDesc[0] = *&amp;amp;dmaDesc[0];&lt;/P&gt;&lt;P&gt;//Chip_DMA_SetValidChannel(LPC_DMA, DMA_CH0);&lt;BR /&gt; LPC_DMA-&amp;gt;SETVALID0 = (1 &amp;lt;&amp;lt; 0);&lt;/P&gt;&lt;P&gt;/* Setup data transfer */&lt;BR /&gt; LPC_DMA-&amp;gt;XFERCFG0 = dmaDesc[0].xfercfg;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 03:06:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-adc-and-dma/m-p/567495#M17546</guid>
      <dc:creator>sergiofernandez</dc:creator>
      <dc:date>2016-08-29T03:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11u68 adc and dma</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-adc-and-dma/m-p/567496#M17547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Serigo,&lt;/P&gt;&lt;P&gt;I was wondering if you can describe exactly procedure of your application and upload the whole demo, then I can run it on my board on my site.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&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, 30 Aug 2016 02:44:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-adc-and-dma/m-p/567496#M17547</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-08-30T02:44:05Z</dc:date>
    </item>
  </channel>
</rss>

