<?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: Slow ADC conversion on Xpresso board</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Slow-ADC-conversion-on-Xpresso-board/m-p/513959#M450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by samedtopal on Tue Apr 12 04:12:00 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi andrejvrecer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It i a late reply but i hope it will help you. I have the same problem, that my ADC need for a conversion 50us. Now we found a result, that the adc makes faster. Around 3us for a conversion. That is about 333kHz and not 2MHz but faster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way is this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the&amp;nbsp; calibriation you have to initsialisation your ClockRate again with the MAC_SAMPLE_RATE. I dont now why but it helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Need to do a calibration after initialization and trim */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_ADC_StartCalibration(LPC_ADC0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while (!(Chip_ADC_IsCalibrationDone(LPC_ADC0))) {}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_ADC_SetClockRate(LPC_ADC0, ADC_MAX_SAMPLE_RATE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope, it will help you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:10:40 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:10:40Z</dc:date>
    <item>
      <title>Slow ADC conversion on Xpresso board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Slow-ADC-conversion-on-Xpresso-board/m-p/513956#M447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by andrejvrecer on Sun Nov 16 07:07:41 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some issues with ADC conversation. I have used example code from lpcopen_2_08c_lpcxpresso_nxp_lpcxpresso_1549.zip on ADC src.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added USB VCom code to my project to use as debug port. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have used SysTick to sent out debug every 1s. I use uint32_t counter to count how many ADC measurements on 1 channel (ADC0.1) is made in burst mode on SEQ_A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The number is ONLY 19229 times! I can't get anything close to 2MSamples. Also I used osciloscope to measure time between 2 ADC interrupts and time was around 50us which is around the same as numbers of ADCs in 1 sec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The same problem I have on ACMP where I wished to measure response time on input pulse. From time I pressed external button to LED change using ACMP interrupt it took around 80-100us !! Is this normal? I need response time on less then 10us. Non filters were used on ACMP (bypass mode).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So at the end my research is showing that my xpresso board is "slow"? I have debug out all clocks and are 72MHz and devider is 1 for perihibal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong. I can attach code but at the end is example code from you guys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before I have used LPC1347 and ADC measure time was around 20us (now 50+)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried Release and Debug compile...both made the same result. Is LPC1549 slow when some debug chip is connected to it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me I am out of ideas after 3 days of coding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrej&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Slow-ADC-conversion-on-Xpresso-board/m-p/513956#M447</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Slow ADC conversion on Xpresso board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Slow-ADC-conversion-on-Xpresso-board/m-p/513957#M448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Fri Dec 05 23:20:02 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fwrong-lpcopen-adc-init" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/wrong-lpcopen-adc-init&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Slow-ADC-conversion-on-Xpresso-board/m-p/513957#M448</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Slow ADC conversion on Xpresso board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Slow-ADC-conversion-on-Xpresso-board/m-p/513958#M449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by andrejvrecer on Tue Dec 16 10:21:03 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Got to the same result after additional 3 days of debugging :(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is sorted now but now I had new problem which I will ask in new thread ... memory problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrej&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Slow-ADC-conversion-on-Xpresso-board/m-p/513958#M449</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Slow ADC conversion on Xpresso board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Slow-ADC-conversion-on-Xpresso-board/m-p/513959#M450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by samedtopal on Tue Apr 12 04:12:00 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi andrejvrecer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It i a late reply but i hope it will help you. I have the same problem, that my ADC need for a conversion 50us. Now we found a result, that the adc makes faster. Around 3us for a conversion. That is about 333kHz and not 2MHz but faster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way is this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the&amp;nbsp; calibriation you have to initsialisation your ClockRate again with the MAC_SAMPLE_RATE. I dont now why but it helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Need to do a calibration after initialization and trim */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_ADC_StartCalibration(LPC_ADC0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while (!(Chip_ADC_IsCalibrationDone(LPC_ADC0))) {}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_ADC_SetClockRate(LPC_ADC0, ADC_MAX_SAMPLE_RATE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope, it will help you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Slow-ADC-conversion-on-Xpresso-board/m-p/513959#M450</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Slow ADC conversion on Xpresso board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Slow-ADC-conversion-on-Xpresso-board/m-p/513960#M451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Apr 12 05:03:52 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: samedtopal&lt;/STRONG&gt;&lt;BR /&gt;After the&amp;nbsp; calibriation you have to initsialisation your ClockRate again with the MAC_SAMPLE_RATE. I dont now why but it helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :D &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then read my link in #1 of this thread, there's explained what's happening&amp;nbsp; :O &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Slow-ADC-conversion-on-Xpresso-board/m-p/513960#M451</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:40Z</dc:date>
    </item>
  </channel>
</rss>

