<?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: LPC55xx ADC interrupt routine in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/1384226#M47338</link>
    <description>&lt;P&gt;When the SDK creates a project, it creates over 60,000 lines of code. I have searched for&amp;nbsp;ADC0_IRQHandler in most of the logical places it could possibly be, but can't find it.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2021 19:07:32 GMT</pubDate>
    <dc:creator>ianbenton</dc:creator>
    <dc:date>2021-12-09T19:07:32Z</dc:date>
    <item>
      <title>LPC55xx ADC interrupt routine</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/1383493#M47320</link>
      <description>&lt;P&gt;Would I be correct in thinking that the interrupt routine should clear STAT[TCOMP_INT] ?&lt;/P&gt;&lt;P&gt;Without doing so the interrupt routine runs continuously. I don't see any statement to that effect in the manual.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 15:41:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/1383493#M47320</guid>
      <dc:creator>ianbenton</dc:creator>
      <dc:date>2021-12-08T15:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55xx ADC interrupt routine</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/1383928#M47332</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;STAT[TCOMP_INT] is for trigger interrupt flag, not ADC result ready interrupt flag.&lt;/P&gt;
&lt;P&gt;If you want to use ADC trigger interrupt, yes, you need write 1 to clear it.&lt;/P&gt;
&lt;P&gt;About read ADC data interrupt function, please refer to ADC interrupt demo under&amp;nbsp; SDK.&lt;/P&gt;
&lt;P&gt;Strongly recommend you debug and run the ADC demo first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 09:27:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/1383928#M47332</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-12-09T09:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55xx ADC interrupt routine</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/1383990#M47334</link>
      <description>&lt;P&gt;I would suppose any set interrupt flag would cause a continuous interrupt execution. The only difference is, certain flags like result ready get reset automatically on reading the result register.&lt;/P&gt;&lt;P&gt;I use to start out with an interrupt handler that clears all enabled interrupt flags regardless of their status.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 10:54:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/1383990#M47334</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2021-12-09T10:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55xx ADC interrupt routine</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/1384226#M47338</link>
      <description>&lt;P&gt;When the SDK creates a project, it creates over 60,000 lines of code. I have searched for&amp;nbsp;ADC0_IRQHandler in most of the logical places it could possibly be, but can't find it.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 19:07:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/1384226#M47338</guid>
      <dc:creator>ianbenton</dc:creator>
      <dc:date>2021-12-09T19:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55xx ADC interrupt routine</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/1385342#M47361</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;For example lpadc_interrupt demo:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1639371812110.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/164895i5AB9DF49AC916EFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1639371812110.png" alt="Alice_Yang_0-1639371812110.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 05:04:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/1385342#M47361</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-12-13T05:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55xx ADC interrupt routine</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/2294537#M59173</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;That was helpful, even 5 years later.&lt;/P&gt;&lt;P&gt;I'm using multiple ADC channels on the LPC55xx. The ADC FIFO is read out when the ADC interrupt fires. I'm&amp;nbsp;using the &lt;STRONG&gt;FIFO watermark interrupt&lt;/STRONG&gt; (FWMIE0). Regarding interrupt status bits, I do not have to reset any flags in the ADC status register as they (e.g., RDY0) apparently get reset automatically as soon as the FIFO has been read out completely.&lt;/P&gt;&lt;P&gt;Today I changed the code from&amp;nbsp;FWMIE0 to&amp;nbsp;&lt;STRONG&gt;Trigger completion interrupt&lt;/STRONG&gt; ("TCOMP_IE") and my ISR ran continously, as you observed. So to fix this, after reading out FIFO, I have to clear&amp;nbsp; TCOMP_INT bit in the ADC status register by writing a 1 to this bit:&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;ADC0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;STAT&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;= 1U &amp;lt;&amp;lt; ADC_STAT_TCOMP_INT_SHIFT;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I wish NXP would put more effort, time and people to work on the documentation. I'm glad we have this community here.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Jan 2026 19:32:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/2294537#M59173</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2026-01-15T19:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55xx ADC interrupt routine</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/2329547#M59446</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I figured that the &lt;STRONG&gt;&amp;amp;=&lt;/STRONG&gt; operator is probably incorrect. To clear a bit in the ADC status register, you write a 1 to this bit. This should be done using simple assignment:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="simsun,hei"&gt;&lt;SPAN&gt;ADC0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;STAT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= 1U &amp;lt;&amp;lt; ADC_STAT_TCOMP_INT_SHIFT;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reference: MCUXpresso SDK&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;LPADC_ClearStatusFlags&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 09:21:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-interrupt-routine/m-p/2329547#M59446</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2026-03-10T09:21:22Z</dc:date>
    </item>
  </channel>
</rss>

