<?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のトピックlpc1778 adc bust read &amp; dma lli problem</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1778-adc-bust-read-dma-lli-problem/m-p/524540#M7176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by novemer on Thu Mar 06 07:56:22 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi all:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; days ago,i used lpc1778 internal adc bust read with dma transfer , but&amp;nbsp; there is a problem that the data in ADGDR can not be used in bust mode.so i try to use dma lli transfer.but it does not work well. here is the setting:for exemple,ch0,2,4 will be used&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 1, update the lli space, there are 3*4 word lli reg:1st source addr is AD0DR,1st dst addr is ram space 0x20002000,1st lli is addr of 2nd lli,ist control is 0xxx;2nd source addr is AD2DR,2nd ds addr is ramspace 0x20002004,2nd lii is addr of 3rd lli,2nd control is 0x00;3rd source addr is AD4DR,3rd dst addr is ram space 0x20002008,3rd lii is 0x0,3rd control is 0xxx;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 2, disable adcintIRQ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 3,enable dmaintIRQ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 4, set adc-&amp;gt;int is 0x100(enable global int only);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 5, set adc-&amp;gt;cr low 8 bits is 0x15(0001 0101);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 6, enable adc bust;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; after that,run.when the first 3 channel convertion finished, the program go to dma irq.but the data in 0x20002000-0x20002008 is not correct.the data is 0x82xxxxxx,0x82xxxxxx,0x84xxxxxx,just like data from ADGDR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; later i will attach the code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:08:37 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:08:37Z</dc:date>
    <item>
      <title>lpc1778 adc bust read &amp; dma lli problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1778-adc-bust-read-dma-lli-problem/m-p/524540#M7176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by novemer on Thu Mar 06 07:56:22 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi all:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; days ago,i used lpc1778 internal adc bust read with dma transfer , but&amp;nbsp; there is a problem that the data in ADGDR can not be used in bust mode.so i try to use dma lli transfer.but it does not work well. here is the setting:for exemple,ch0,2,4 will be used&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 1, update the lli space, there are 3*4 word lli reg:1st source addr is AD0DR,1st dst addr is ram space 0x20002000,1st lli is addr of 2nd lli,ist control is 0xxx;2nd source addr is AD2DR,2nd ds addr is ramspace 0x20002004,2nd lii is addr of 3rd lli,2nd control is 0x00;3rd source addr is AD4DR,3rd dst addr is ram space 0x20002008,3rd lii is 0x0,3rd control is 0xxx;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 2, disable adcintIRQ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 3,enable dmaintIRQ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 4, set adc-&amp;gt;int is 0x100(enable global int only);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 5, set adc-&amp;gt;cr low 8 bits is 0x15(0001 0101);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 6, enable adc bust;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; after that,run.when the first 3 channel convertion finished, the program go to dma irq.but the data in 0x20002000-0x20002008 is not correct.the data is 0x82xxxxxx,0x82xxxxxx,0x84xxxxxx,just like data from ADGDR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; later i will attach the code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:08:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1778-adc-bust-read-dma-lli-problem/m-p/524540#M7176</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:08:37Z</dc:date>
    </item>
  </channel>
</rss>

