<?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 LPC1115 ADC Overrun Problem in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1115-ADC-Overrun-Problem/m-p/529390#M9803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by btheuma on Wed Oct 21 08:14:35 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to sample 6 ADC channels at a rate of 150Hz. I am using BURST mode for the 6 channels. BURST is activated by a timer interrupt at 150Hz. When the 6th conversion is ready, and ADC interrupt stops the BURST, so that BURST is only activated at a rate of 150Hz. However, when I enter the ADC interrupt(which means that the 6th conversion is ready), the OVERRUN flag is being marked as set (This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since an interrupt is being activated once the 6th conversion is ready, and this ADC interrupt stops the burst conversions, how is the overrun flag being set ? This way, BURST is only supposed to do the conversions once.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:28:55 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:28:55Z</dc:date>
    <item>
      <title>LPC1115 ADC Overrun Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1115-ADC-Overrun-Problem/m-p/529390#M9803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by btheuma on Wed Oct 21 08:14:35 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to sample 6 ADC channels at a rate of 150Hz. I am using BURST mode for the 6 channels. BURST is activated by a timer interrupt at 150Hz. When the 6th conversion is ready, and ADC interrupt stops the BURST, so that BURST is only activated at a rate of 150Hz. However, when I enter the ADC interrupt(which means that the 6th conversion is ready), the OVERRUN flag is being marked as set (This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since an interrupt is being activated once the 6th conversion is ready, and this ADC interrupt stops the burst conversions, how is the overrun flag being set ? This way, BURST is only supposed to do the conversions once.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:28:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1115-ADC-Overrun-Problem/m-p/529390#M9803</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1115 ADC Overrun Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1115-ADC-Overrun-Problem/m-p/529391#M9804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Thu Oct 22 01:44:53 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The next conversion of channel 1 has started already and will be completed, causing the overrun (yes, I also would like a single-burst mode that stops, but it isn't there).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So you can try to trigger your interrupt earlier, say on the next to last channel, and hope that the interrupt is fast enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A more robust method, and perfectly adequate at 150 Hz, is to use single conversion and trigger each channel separately, subsequent channels in the ADC interrupt. We use this for sampling 3 channels at 10kHz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you could just determine that it is safe to ignore the overrun.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:28:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1115-ADC-Overrun-Problem/m-p/529391#M9804</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:28:56Z</dc:date>
    </item>
  </channel>
</rss>

