<?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 S32K118 ADC sample code in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K118-ADC-sample-code/m-p/2081555#M47818</link>
    <description>&lt;P&gt;Hello NXP team&lt;/P&gt;&lt;P&gt;I'm trying to use the &lt;STRONG&gt;ADC_pdb_IP_example_S32K118&lt;/STRONG&gt; project.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pohsuan_0-1744791702071.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/333416i13D29214B3431BFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pohsuan_0-1744791702071.png" alt="Pohsuan_0-1744791702071.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to use the S32 Configuration Tool to configure the ADC pin, but it seems not to be working, as shown in the image below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pohsuan_1-1744791898857.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/333419i01F08068EAEA5505/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pohsuan_1-1744791898857.png" alt="Pohsuan_1-1744791898857.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;Could you please advise how I can properly use this sample code?&lt;/P&gt;&lt;P class=""&gt;Thank you very much for your support.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2025 08:31:01 GMT</pubDate>
    <dc:creator>Pohsuan</dc:creator>
    <dc:date>2025-04-16T08:31:01Z</dc:date>
    <item>
      <title>S32K118 ADC sample code</title>
      <link>https://community.nxp.com/t5/S32K/S32K118-ADC-sample-code/m-p/2081555#M47818</link>
      <description>&lt;P&gt;Hello NXP team&lt;/P&gt;&lt;P&gt;I'm trying to use the &lt;STRONG&gt;ADC_pdb_IP_example_S32K118&lt;/STRONG&gt; project.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pohsuan_0-1744791702071.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/333416i13D29214B3431BFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pohsuan_0-1744791702071.png" alt="Pohsuan_0-1744791702071.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to use the S32 Configuration Tool to configure the ADC pin, but it seems not to be working, as shown in the image below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pohsuan_1-1744791898857.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/333419i01F08068EAEA5505/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pohsuan_1-1744791898857.png" alt="Pohsuan_1-1744791898857.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;Could you please advise how I can properly use this sample code?&lt;/P&gt;&lt;P class=""&gt;Thank you very much for your support.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 08:31:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K118-ADC-sample-code/m-p/2081555#M47818</guid>
      <dc:creator>Pohsuan</dc:creator>
      <dc:date>2025-04-16T08:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: S32K118 ADC sample code</title>
      <link>https://community.nxp.com/t5/S32K/S32K118-ADC-sample-code/m-p/2082005#M47842</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;P&gt;In &lt;EM&gt;ADC_pdb_IP_example_S32K118&lt;/EM&gt;, the &lt;EM&gt;Pins Tool&lt;/EM&gt; is disabled because this example do not use it, it use internal references only, please refer to &lt;EM&gt;description.txt&lt;/EM&gt; file.&lt;/P&gt;
&lt;P&gt;If you want to configure other pins, follow the following post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/Issue-reading-EXT-ADC0-input-on-MRCANHUBK344-using-Adc-Sar-Btcu/td-p/2076386" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K/Issue-reading-EXT-ADC0-input-on-MRCANHUBK344-using-Adc-Sar-Btcu/td-p/2076386&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It is more or less the same procedure but instead of use &lt;EM&gt;Siul2&lt;/EM&gt; driver, it use &lt;EM&gt;Port&lt;/EM&gt; driver.&lt;/P&gt;
&lt;P&gt;Additionally please refer to other examples which use &lt;EM&gt;Pins Tool&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;When debugging, you can see "&lt;EM&gt;data&lt;/EM&gt;" value in "&lt;EM&gt;Expression&lt;/EM&gt;" section.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps you.&lt;/P&gt;
&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 21:44:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K118-ADC-sample-code/m-p/2082005#M47842</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2025-04-16T21:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: S32K118 ADC sample code</title>
      <link>https://community.nxp.com/t5/S32K/S32K118-ADC-sample-code/m-p/2082470#M47881</link>
      <description>&lt;P&gt;Hello Leo&lt;/P&gt;&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using &lt;STRONG&gt;PTA7 on the S32K118EVB&lt;/STRONG&gt; as the external ADC channel.&lt;/P&gt;&lt;P&gt;I’m able to retrieve ADC values using &lt;STRONG&gt;software trigger&lt;/STRONG&gt; with the function below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pohsuan_1-1744882136761.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/333660iE84C70D35D6E4066/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pohsuan_1-1744882136761.png" alt="Pohsuan_1-1744882136761.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when using the &lt;STRONG&gt;hardware trigger&lt;/STRONG&gt; part from the sample code, the program gets stuck in the &lt;STRONG&gt;while loop&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pohsuan_3-1744882301351.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/333662iE9A4C2E7125F4190/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pohsuan_3-1744882301351.png" alt="Pohsuan_3-1744882301351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please provide any advice?&lt;BR /&gt;Or is there a &lt;STRONG&gt;hardware-triggered ADC&lt;/STRONG&gt; sample I can refer to?&lt;/P&gt;&lt;P&gt;The attached archive contains the source code I’m currently using. Please refer to it.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 09:43:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K118-ADC-sample-code/m-p/2082470#M47881</guid>
      <dc:creator>Pohsuan</dc:creator>
      <dc:date>2025-04-17T09:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: S32K118 ADC sample code</title>
      <link>https://community.nxp.com/t5/S32K/S32K118-ADC-sample-code/m-p/2082723#M47891</link>
      <description>&lt;P&gt;Please help us creating a new post with these new questions. Thank you in advance for your understanding.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 17:13:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K118-ADC-sample-code/m-p/2082723#M47891</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2025-04-17T17:13:49Z</dc:date>
    </item>
  </channel>
</rss>

