<?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: ADC conversion time in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394625#M3097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having almost the same problems as Gaston had. I am working with a FRDM-KL25Z and I need to make many ADC measurements very fast (every 2us) and I am not able to get so fast conversions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a beginner with these micros, and I first started following a very good tutorial "ADC with the Freedom Board" by Erich Styger. I started with the component ADC and the same two methods as Gaston used in his project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(void)AD1_Measure(TRUE);&lt;/P&gt;&lt;P&gt;(void)AD1_GetValue16(&amp;amp;value[0]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I was not able to get so fast conversions. So I tried with the component ADC_LDD and the trueth is that the conversion time was reduced significantly, but not as much as I need. &lt;/P&gt;&lt;P&gt;I only use one channel and I use the same methods of the ADC_LDD you explained to Gaston. Please find below the my clock configuration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="clock configuration.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58769iDEFA305EE435AF13/image-size/large?v=v2&amp;amp;px=999" role="button" title="clock configuration.png" alt="clock configuration.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I make 3000 measurements and the results are stored in an array. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ADC measurements.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58814i5E7DB3400B8A0692/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC measurements.png" alt="ADC measurements.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A led is switched on at the begining of the 3000 conversions and it is switched off at the end. Thanks to this led I could measure with the oscilloscope that the 3000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;measurements take 24.1ms. So 8us per measurement (not fast enough because I need to drop to 2us).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.- Is there any way to reduce the conversion time by changing any configuration of the clock?&lt;/P&gt;&lt;P&gt;2.- As you mentioned before, using DMA could be a solution. What I would need is to store automatically the result of the 3000 conversions by DMA. Am I right? Please correct me if I am wrong. &lt;/P&gt;&lt;P&gt;Is there any tutorial or friendly document about how to work with DMA? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Aitor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 17:42:05 GMT</pubDate>
    <dc:creator>patricio</dc:creator>
    <dc:date>2015-10-07T17:42:05Z</dc:date>
    <item>
      <title>ADC conversion time</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394614#M3086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm testing the ADC component of FRDM-KE02Z and I've set the conversion time and channels as shown&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;IMG alt="Untitled.png" src="https://community.nxp.com/t5/image/serverpage/image-id/55259iC2996F7E6C6B1C01/image-size/large?v=v2&amp;amp;px=999" title="Untitled.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then I've created a TU1:TimerUnit_LDD to trigger the ADC conversion every 312.5us and write the next lines in the TU1_OnCounterRestart ISR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_1436366645158325 jive_macro_code jive_text_macro" data-renderedposition="542_8_1232_32" jivemacro_uid="_1436366645158325"&gt;&lt;P&gt;(void)AD1_Measure(TRUE);&lt;/P&gt;&lt;P&gt;(void)AD1_GetValue16(&amp;amp;value[0]);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally here's the signal capture on the oscilloscope for checking the ISR process.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pic_124_2.gif"&gt;&lt;IMG alt="pic_124_2.gif" src="https://community.nxp.com/t5/image/serverpage/image-id/55298iBCDF848C7C9D4467/image-size/large?v=v2&amp;amp;px=999" title="pic_124_2.gif" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The sampling time and acquired values are okay but I expect an ADC process of 20us as I set 2 channels and a conversion time of 10us. Why I get more than 40us?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:16:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394614#M3086</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2020-11-02T13:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: ADC conversion time</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394615#M3087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, Processor Expert needs a lot of comparatives and calls to other functions which wastes a lot of time. Every ADC conversion takes 11.81 us but the other 44.19 us are wasted in the processor expert functions and comparatives.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to save that time maybe an ADC + DMA configuration will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 17:39:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394615#M3087</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-07-08T17:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: ADC conversion time</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394616#M3088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to hear such a poor PE performance for ADC methods (even working at 16MHz of FLL clock) . I'm afraid DMA isn't available on FRDM-KE02Z. But the worse thing is I've decreased the time conversion to 3.5us and unexpectedly get 68us of total acquisition! How is this possible?&lt;/P&gt;&lt;P&gt;I'm puzzled now. Any hints?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 08:24:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394616#M3088</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2015-07-09T08:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: ADC conversion time</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394617#M3089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gastón,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a similar project. I configured a pit with an interrupt every 312 us where I clear a GPIO and then I start one ADC conversion. When the ADC conversion finishes in another interrupt I set the GPIO and read the measured value. This takes 29.2 us. I have exactly the same configurations as you with PEx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55299iC6F3A15E90322CA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I repeated this process but configuring the ADC time conversion to only 2.5 us and I first started the ADC conversion and then set the GPIO. The result is that the pulse lasts ~10 us. My conclusion is that the ADC performance is not the better but is not as bad as we though because the GPIO toggle takes a lot of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 17:02:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394617#M3089</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-07-09T17:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: ADC conversion time</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394618#M3090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry, I were wrong with my last assertion about the 3.5us of time conversion. In this case total ADC acquisition takes 56us (not 68us). However the problem persist and no matter how low is the conversion time. The total acquisition is always 56us (I've tested it with 2.5us, 5us and 10us with PE). I see that your setup is not exactly the same as mine. Note that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have not enabled the AD1_OnEnd interrupt&lt;/LI&gt;&lt;LI&gt;I've configured 2 ADC channels as shown in my first post (I supposse you've done the same)&lt;/LI&gt;&lt;LI&gt;I set the GPIO before start the ADC conversion and clear it after read the last ACD conversion, which involves the total ADC acquisition for the 2 channels. Both methods are placed into the Timer ISR.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please, could you reproduce this setup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 08:26:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394618#M3090</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2015-07-10T08:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: ADC conversion time</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394619#M3091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaston,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that we have the same setup, could you please share your project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 14:41:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394619#M3091</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-07-10T14:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: ADC conversion time</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394620#M3092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Earl, here's my KDS 3.0 project&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/vaokfpgtyw3dr54/KE02Z-FRDM.zip?dl=0" title="https://www.dropbox.com/s/vaokfpgtyw3dr54/KE02Z-FRDM.zip?dl=0"&gt;Dropbox - KE02Z-FRDM.zip&lt;/A&gt; &lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 08:17:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394620#M3092</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2015-07-13T08:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: ADC conversion time</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394621#M3093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gaston,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debugged the Processor Expert implementation and I confirmed that it is very inefficient. Once the function &lt;STRONG&gt;AD1_Measure&lt;/STRONG&gt; function is called the peripheral driver makes some configurations that needs ~20 us before to start the ADC conversion, then the conversion takes ~10 us (two conversions with conversion time of 5 us), then the peripheral driver needs other ~22 us to complete the conversion (FIFO handler and some flags through the function &lt;STRONG&gt;AdcLdd1_Main&lt;/STRONG&gt;) and finally needs ~5 us to read the ADC values through the function &lt;STRONG&gt;AD1_GetValue16&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am afraid that if you need that the conversion ends quickly you will have to implement the ADC driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I remain at your service if you have any other question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* If this post answers your question please click the &lt;EM&gt;​Correct answer&lt;/EM&gt;​ button. */&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 16:49:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394621#M3093</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-07-13T16:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: ADC conversion time</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394622#M3094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Earl, thank you for the clarification. Just a couple of questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Why I obtain an unique total acquisition time of 56us by configuring a PE conversion time of 2.5us, 5us or even 10us?&lt;/LI&gt;&lt;LI&gt;Could you provide any example using the ADC driver with multiple channels?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 19:45:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394622#M3094</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2015-07-13T19:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: ADC conversion time</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394623#M3095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again Gastón,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You were using the High Level Driver, if you use the Logical Level Driver (LLD) you will increase the performance. The LLD needs more configurations but requires less instructions to work. The image below shows how I configured the ADC_LLD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;IMG alt="pastedImage_0.png" src="https://community.nxp.com/t5/image/serverpage/image-id/53813i9D6BC43EEC68FBAD/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_0.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It needs that you create a sample group before to start read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14368257358428830" data-renderedposition="1087_8_1215_32" jivemacro_uid="_14368257358428830"&gt;&lt;P&gt;LDD_ADC_TSample samplegroup[2] = {{ADC0_CHANNEL_12}, {ADC0_CHANNEL_13}};&lt;/P&gt;&lt;P&gt;AD1_CreateSampleGroup(AD1_DeviceData, samplegroup, 2);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every time you start a measure you need to call these two functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14368257961681003 jive_text_macro" data-renderedposition="1182_8_1215_32" jivemacro_uid="_14368257961681003"&gt;&lt;P&gt;AD1_StartSingleMeasurement(AD1_DeviceData);&lt;/P&gt;&lt;P&gt;AD1_Main(AD1_DeviceData);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can get the results by calling the function below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14368258175351473 jive_macro_code jive_text_macro" data-renderedposition="1277_8_1215_16" jivemacro_uid="_14368258175351473"&gt;&lt;P&gt;AD1_GetMeasuredValues(AD1_DeviceData, value);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the project that you attached before, the periodic function now looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14368258687991225 jive_macro_code jive_text_macro" data-renderedposition="1356_8_1215_128" jivemacro_uid="_14368258687991225" modifiedtitle="true"&gt;&lt;P&gt;void TU1_OnCounterRestart(LDD_TUserData *UserDataPtr)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED_B_PutVal(LED_B_DeviceData, 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AD1_StartSingleMeasurement(AD1_DeviceData);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AD1_Main(AD1_DeviceData);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AD1_GetMeasuredValues(AD1_DeviceData, value);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED_B_PutVal(LED_B_DeviceData, 0);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394623#M3095</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2020-11-02T13:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: ADC conversion time</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394624#M3096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Earl, thank you! You've helped me to save a lot of time.&lt;/P&gt;&lt;P&gt;Now I get about 30us to perform 2 channel conversions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 15:25:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394624#M3096</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2015-07-14T15:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: ADC conversion time</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394625#M3097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having almost the same problems as Gaston had. I am working with a FRDM-KL25Z and I need to make many ADC measurements very fast (every 2us) and I am not able to get so fast conversions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a beginner with these micros, and I first started following a very good tutorial "ADC with the Freedom Board" by Erich Styger. I started with the component ADC and the same two methods as Gaston used in his project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(void)AD1_Measure(TRUE);&lt;/P&gt;&lt;P&gt;(void)AD1_GetValue16(&amp;amp;value[0]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I was not able to get so fast conversions. So I tried with the component ADC_LDD and the trueth is that the conversion time was reduced significantly, but not as much as I need. &lt;/P&gt;&lt;P&gt;I only use one channel and I use the same methods of the ADC_LDD you explained to Gaston. Please find below the my clock configuration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="clock configuration.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58769iDEFA305EE435AF13/image-size/large?v=v2&amp;amp;px=999" role="button" title="clock configuration.png" alt="clock configuration.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I make 3000 measurements and the results are stored in an array. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ADC measurements.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58814i5E7DB3400B8A0692/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC measurements.png" alt="ADC measurements.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A led is switched on at the begining of the 3000 conversions and it is switched off at the end. Thanks to this led I could measure with the oscilloscope that the 3000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;measurements take 24.1ms. So 8us per measurement (not fast enough because I need to drop to 2us).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.- Is there any way to reduce the conversion time by changing any configuration of the clock?&lt;/P&gt;&lt;P&gt;2.- As you mentioned before, using DMA could be a solution. What I would need is to store automatically the result of the 3000 conversions by DMA. Am I right? Please correct me if I am wrong. &lt;/P&gt;&lt;P&gt;Is there any tutorial or friendly document about how to work with DMA? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Aitor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 17:42:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-conversion-time/m-p/394625#M3097</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2015-10-07T17:42:05Z</dc:date>
    </item>
  </channel>
</rss>

