<?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_CR_BURST Example in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/ADC-CR-BURST-Example/m-p/573804#M21607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Tue May 25 00:33:01 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: domen&lt;/STRONG&gt;&lt;BR /&gt;The only sane way. :-)&lt;BR /&gt;&lt;BR /&gt;I've done it recently (sampling channels, then stopping burst mode), and here's what I found out (no code here):&lt;BR /&gt;- disregard the example, you're WAY better off writing burst mode from scratch&lt;BR /&gt;- setup clocks, pins, enable adc on nvic, enable irq for [B]last[/B] of the converted channels&lt;BR /&gt;- when you want to start burst sampling just set burst chans, and enable burst mode in CR&lt;BR /&gt;- in irq, disable burst mode, read enabled channels&lt;BR /&gt;- if you follow the example... it's just wrong, you can't use that switch/case, because more than one channel can be finished on irq entry. Also seems wasteful to trigger interrupt for every channel.&lt;BR /&gt;&lt;BR /&gt;So... this "works (tm)" for me, but there's still a problem. I'm consistently getting overruns on first channel (because burst is disabled too late, and the next channel gets sampled? but why, datasheet says all should get?).&lt;BR /&gt;&lt;BR /&gt;I also tried just toggling BURST bit to start sampling... that didn't start the sampling.&lt;BR /&gt;&lt;BR /&gt;I'm wondering what's the correct way to do this, since datasheet's description is a bit short and the example just plain wrong. :(&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your opinion; I have changed method: I convert only one analog input each 1 ms without using BURST, and in 8 ms i convert 8 different analog sequentially. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For my application is enough !!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:35:03 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:35:03Z</dc:date>
    <item>
      <title>ADC_CR_BURST Example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/ADC-CR-BURST-Example/m-p/573802#M21605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Mon May 24 05:03:45 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I use LPC1758 with LPcXpresso.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I nedd to convert 6 analog input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the correct way is to use the ADC_CR_BURST function and polling for reading.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ther'is a example ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:35:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/ADC-CR-BURST-Example/m-p/573802#M21605</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_CR_BURST Example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/ADC-CR-BURST-Example/m-p/573803#M21606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by domen on Mon May 24 23:03:18 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The only sane way. :-)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've done it recently (sampling channels, then stopping burst mode), and here's what I found out (no code here):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- disregard the example, you're WAY better off writing burst mode from scratch&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- setup clocks, pins, enable adc on nvic, enable irq for [B]last[/B] of the converted channels&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- when you want to start burst sampling just set burst chans, and enable burst mode in CR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- in irq, disable burst mode, read enabled channels&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- if you follow the example... it's just wrong, you can't use that switch/case, because more than one channel can be finished on irq entry. Also seems wasteful to trigger interrupt for every channel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So... this "works (tm)" for me, but there's still a problem. I'm consistently getting overruns on first channel (because burst is disabled too late, and the next channel gets sampled? but why, datasheet says all should get?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried just toggling BURST bit to start sampling... that didn't start the sampling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering what's the correct way to do this, since datasheet's description is a bit short and the example just plain wrong. :(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:35:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/ADC-CR-BURST-Example/m-p/573803#M21606</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_CR_BURST Example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/ADC-CR-BURST-Example/m-p/573804#M21607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Tue May 25 00:33:01 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: domen&lt;/STRONG&gt;&lt;BR /&gt;The only sane way. :-)&lt;BR /&gt;&lt;BR /&gt;I've done it recently (sampling channels, then stopping burst mode), and here's what I found out (no code here):&lt;BR /&gt;- disregard the example, you're WAY better off writing burst mode from scratch&lt;BR /&gt;- setup clocks, pins, enable adc on nvic, enable irq for [B]last[/B] of the converted channels&lt;BR /&gt;- when you want to start burst sampling just set burst chans, and enable burst mode in CR&lt;BR /&gt;- in irq, disable burst mode, read enabled channels&lt;BR /&gt;- if you follow the example... it's just wrong, you can't use that switch/case, because more than one channel can be finished on irq entry. Also seems wasteful to trigger interrupt for every channel.&lt;BR /&gt;&lt;BR /&gt;So... this "works (tm)" for me, but there's still a problem. I'm consistently getting overruns on first channel (because burst is disabled too late, and the next channel gets sampled? but why, datasheet says all should get?).&lt;BR /&gt;&lt;BR /&gt;I also tried just toggling BURST bit to start sampling... that didn't start the sampling.&lt;BR /&gt;&lt;BR /&gt;I'm wondering what's the correct way to do this, since datasheet's description is a bit short and the example just plain wrong. :(&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your opinion; I have changed method: I convert only one analog input each 1 ms without using BURST, and in 8 ms i convert 8 different analog sequentially. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For my application is enough !!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:35:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/ADC-CR-BURST-Example/m-p/573804#M21607</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:35:03Z</dc:date>
    </item>
  </channel>
</rss>

