<?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: LPC55S28 ADC trigger status never becomes &amp;quot;complete&amp;quot; in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-ADC-trigger-status-never-becomes-quot-complete-quot/m-p/1502078#M49781</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;CanolCael,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;First think,&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;above while loop works for only trigger 0 also if it's called the interrupt routine means this bit will set otherwise it's become zero. So that the register not set in both mode and check ADC trigger configurations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Also,Ensure 6 trigger sequence and check ADC trigger exception in TSTAT(0-15)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Aug 2022 20:32:59 GMT</pubDate>
    <dc:creator>KalaimaniArumugamdev</dc:creator>
    <dc:date>2022-08-06T20:32:59Z</dc:date>
    <item>
      <title>LPC55S28 ADC trigger status never becomes "complete"</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-ADC-trigger-status-never-becomes-quot-complete-quot/m-p/1502059#M49778</link>
      <description>&lt;P&gt;Hello, we have an application where we have a trigger, which triggers an ADC sampling command which samples multiple channels and creates 6 FIFO entries in total.&lt;/P&gt;&lt;P&gt;The trigger works and we end up with 6 entries in the FIFO, but the way we detect that the operation has finished doesn't behave as we expected. There is a TSTAT register (trigger status register) which has flags for each trigger to tell if a trigger has completed. When a trigger is the corresponding flag becomes 1. But when we check the corresponding flag in a while loop like below:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;while (!(LPADC_GetTriggerStatusFlags(ADC0)&amp;amp; (1 &amp;lt;&amp;lt; 16)));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This loop never exits (we are using trigger 0 by the way). In fact, the whole register's value always stays 0.&lt;/P&gt;&lt;P&gt;So, we ended up checking until there are available entries in the FIFO in a while loop, and that works.&lt;/P&gt;&lt;P&gt;My question is why does the while loop above does not work? I tried it with the lpadc_polling example that comes with the example as well, and the loop does not exit there either. TSTAT register's value always stays as 0, although ADC values become available in the FIFO.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2022 10:09:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-ADC-trigger-status-never-becomes-quot-complete-quot/m-p/1502059#M49778</guid>
      <dc:creator>CanolCael</dc:creator>
      <dc:date>2022-08-06T10:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S28 ADC trigger status never becomes "complete"</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-ADC-trigger-status-never-becomes-quot-complete-quot/m-p/1502078#M49781</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;CanolCael,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;First think,&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;above while loop works for only trigger 0 also if it's called the interrupt routine means this bit will set otherwise it's become zero. So that the register not set in both mode and check ADC trigger configurations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Also,Ensure 6 trigger sequence and check ADC trigger exception in TSTAT(0-15)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2022 20:32:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-ADC-trigger-status-never-becomes-quot-complete-quot/m-p/1502078#M49781</guid>
      <dc:creator>KalaimaniArumugamdev</dc:creator>
      <dc:date>2022-08-06T20:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S28 ADC trigger status never becomes "complete"</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-ADC-trigger-status-never-becomes-quot-complete-quot/m-p/1502114#M49782</link>
      <description>&lt;P&gt;Hi Kalaimani, I wasn't using interrupts, I was just polling. Does that mean if I don't set up the interrupts, that corresponding TSTAT bit will never be 1?&lt;/P&gt;&lt;P&gt;BTW, I checked the exception bits as well, they are also 0.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 17:36:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-ADC-trigger-status-never-becomes-quot-complete-quot/m-p/1502114#M49782</guid>
      <dc:creator>CanolCael</dc:creator>
      <dc:date>2022-08-07T17:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S28 ADC trigger status never becomes "complete"</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-ADC-trigger-status-never-becomes-quot-complete-quot/m-p/1502439#M49793</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;How do you configure "TCOMP_IE"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1659947816719.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189428i4E3845F5CC51F21B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1659947816719.png" alt="Alice_Yang_0-1659947816719.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 08:37:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-ADC-trigger-status-never-becomes-quot-complete-quot/m-p/1502439#M49793</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-08-08T08:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S28 ADC trigger status never becomes "complete"</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-ADC-trigger-status-never-becomes-quot-complete-quot/m-p/1502716#M49800</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204367"&gt;@CanolCael&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; If you're not enabled with this "TCOMP_IE" register means you wouldn't receive those TSTAT- TCOMP FLAG.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In case your trigger woking fine mean than check ADC0-&amp;gt;STAT-&amp;gt;TRGACT this&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 16:53:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-ADC-trigger-status-never-becomes-quot-complete-quot/m-p/1502716#M49800</guid>
      <dc:creator>KalaimaniArumugamdev</dc:creator>
      <dc:date>2022-08-08T16:53:42Z</dc:date>
    </item>
  </channel>
</rss>

