<?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: LPC43xx HSADC GPDMA in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-HSADC-GPDMA/m-p/549231#M13792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mshrestha789 on Sun Nov 08 07:28:54 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi tecow,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your descriptor entry, I noticed that you used 0x90 for descriptor entry, when I use HSADC_DESC_MATCH(0x90), I don't get valid data from ADC at all. In-fact if I initialize descriptor match with the value greater than ADC frequency (in my case 80), I cannot get valid data. So my question is, is there any way I can know if HSADC analog part settle or not?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:33:58 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:33:58Z</dc:date>
    <item>
      <title>LPC43xx HSADC GPDMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-HSADC-GPDMA/m-p/549229#M13790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mshrestha789 on Thu Nov 05 04:40:41 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello friends,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Recently I've been working with High speed ADC of LPC4370 and GPDMA. I successfully managed to get the data using the ADC and DMA. However sometime it misses some initial data. For example I am suppose to get five cycles of sine wave at the beginning, most of the time I get five cycles but some time I only get 3 cycles. So my question is "is it because of DMA?"&amp;nbsp; Can someone please help me regarding this? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:33:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-HSADC-GPDMA/m-p/549229#M13790</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx HSADC GPDMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-HSADC-GPDMA/m-p/549230#M13791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tecow on Sat Nov 07 23:54:19 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The HSADC analog part need some time to get settled. You can tell the HSADC when the first samples are received after an initially delay (typically 0x90 samples).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here an example for the first DescEntry call that adds the initial waiting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_HSADC_SetupDescEntry(LPC_ADCHS, 0, 0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(HSADC_DESC_CH(ch[0]) | HSADC_DESC_BRANCH_SWAP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| HSADC_DESC_MATCH(0x90 | thresh[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| HSADC_DESC_RESET_TIMER));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't want to miss initial data you should start the DMA before you start the DMA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;setup_ADCHS_DMA(false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_HSADC_SWTrigger(LPC_ADCHS);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The current LPC_OPEN Library (2_12) is rather incomplete (and buggy) with respect to GPDMA support of the HSADC. So be careful in using it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:33:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-HSADC-GPDMA/m-p/549230#M13791</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx HSADC GPDMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-HSADC-GPDMA/m-p/549231#M13792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mshrestha789 on Sun Nov 08 07:28:54 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi tecow,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your descriptor entry, I noticed that you used 0x90 for descriptor entry, when I use HSADC_DESC_MATCH(0x90), I don't get valid data from ADC at all. In-fact if I initialize descriptor match with the value greater than ADC frequency (in my case 80), I cannot get valid data. So my question is, is there any way I can know if HSADC analog part settle or not?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:33:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-HSADC-GPDMA/m-p/549231#M13792</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:33:58Z</dc:date>
    </item>
  </channel>
</rss>

