<?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のトピックLPC552x ADC - Successive reads to RESFIFO</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-ADC-Successive-reads-to-RESFIFO/m-p/1550414#M50648</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to configure the ADC in our LPC5528 so it gets interrupted on FIFO 0 watermark, and I'm setting a watermark different than 0.&lt;/P&gt;&lt;P&gt;The interrupt part works: I get interrupted according to the watermark, but the problem comes when I try to read all the values in the FIFO:&lt;/P&gt;&lt;P&gt;1. Interrupt happens according to FIFO 0&amp;nbsp; watermark&lt;/P&gt;&lt;P&gt;2. I call&amp;nbsp;&lt;SPAN&gt;LPADC_GetConvResultCount() and get "watermark + 1" value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;I call&amp;nbsp;LPADC_GetConvResult() once to read the oldest value in the FIFO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. I call&amp;nbsp;LPADC_GetConvResultCount() again and get "0" value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;According to the documentation, "Reading RESFIFO provides the oldest unread data word entry in the FIFO and decrements FCOUNT. The FIFO can be emptied by successive reads of RESFIFO", but I can't find a way to read the other values in the FIFO.&lt;/P&gt;&lt;P&gt;I also made sure that I don't reset the FIFO in any way between steps 3. and 4.&lt;/P&gt;&lt;P&gt;And I couldn't find any example in the SDK where the watermark is set to something different than 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd appreciate any help. Thanks!&lt;/P&gt;&lt;P&gt;Paula&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 15:45:45 GMT</pubDate>
    <dc:creator>PaulaVelasco</dc:creator>
    <dc:date>2022-11-08T15:45:45Z</dc:date>
    <item>
      <title>LPC552x ADC - Successive reads to RESFIFO</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-ADC-Successive-reads-to-RESFIFO/m-p/1550414#M50648</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to configure the ADC in our LPC5528 so it gets interrupted on FIFO 0 watermark, and I'm setting a watermark different than 0.&lt;/P&gt;&lt;P&gt;The interrupt part works: I get interrupted according to the watermark, but the problem comes when I try to read all the values in the FIFO:&lt;/P&gt;&lt;P&gt;1. Interrupt happens according to FIFO 0&amp;nbsp; watermark&lt;/P&gt;&lt;P&gt;2. I call&amp;nbsp;&lt;SPAN&gt;LPADC_GetConvResultCount() and get "watermark + 1" value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;I call&amp;nbsp;LPADC_GetConvResult() once to read the oldest value in the FIFO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. I call&amp;nbsp;LPADC_GetConvResultCount() again and get "0" value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;According to the documentation, "Reading RESFIFO provides the oldest unread data word entry in the FIFO and decrements FCOUNT. The FIFO can be emptied by successive reads of RESFIFO", but I can't find a way to read the other values in the FIFO.&lt;/P&gt;&lt;P&gt;I also made sure that I don't reset the FIFO in any way between steps 3. and 4.&lt;/P&gt;&lt;P&gt;And I couldn't find any example in the SDK where the watermark is set to something different than 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd appreciate any help. Thanks!&lt;/P&gt;&lt;P&gt;Paula&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:45:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-ADC-Successive-reads-to-RESFIFO/m-p/1550414#M50648</guid>
      <dc:creator>PaulaVelasco</dc:creator>
      <dc:date>2022-11-08T15:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x ADC - Successive reads to RESFIFO</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-ADC-Successive-reads-to-RESFIFO/m-p/1552376#M50671</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/191195"&gt;@PaulaVelasco&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use MCUxpresso configure tool to config , If still can't work, please send you project to me, I&amp;nbsp;&lt;/P&gt;
&lt;P&gt;will help to test on my side.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1668137017643.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/199980i1A99BD8EE901B470/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1668137017643.png" alt="Alice_Yang_0-1668137017643.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>Fri, 11 Nov 2022 03:24:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-ADC-Successive-reads-to-RESFIFO/m-p/1552376#M50671</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-11-11T03:24:33Z</dc:date>
    </item>
  </channel>
</rss>

