<?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 s32k312 ADC in S32K</title>
    <link>https://community.nxp.com/t5/S32K/s32k312-ADC/m-p/1951644#M40811</link>
    <description>&lt;P&gt;Hello, I'm working with the ADC sampling function of the s32k312 and I'm trying to understand how the values are stored in the adc1_result[] array when I call the function Adc_Sar_Ip_GetConvDataToArray(ADCHWUNIT_1_INSTANCE, ADC_SAR_IP_CONV_CHAIN_NORMAL, ADC1_CHANNEL_NUM, adc1_result); to retrieve the ADC sampling results.&lt;/P&gt;&lt;P&gt;Specifically, I want to know if the values in the adc1_result[] array are stored based on the configured channel numbers of ADC1, for example:&lt;/P&gt;&lt;P&gt;adc1_result[0] stores the conversion result of p0_chanNum0&lt;BR /&gt;adc1_result[1] stores the conversion result of p1_chanNum1&lt;BR /&gt;And so on, in a sequential manner.&lt;BR /&gt;Or, are they stored based on the actual ADC channel numbers and their corresponding positions in the ADC configuration, like:&lt;/P&gt;&lt;P&gt;adc1_result[0] stores the conversion result of adcchannel0 which might correspond to S19_ChanNum43&lt;BR /&gt;adc1_result[1] stores the conversion result of adcchannel1 which might correspond to S20_ChanNum44&lt;BR /&gt;And so forth.&lt;BR /&gt;I'm looking for clarification on how the results are mapped to the adc1_result[] array&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="微信图片_20240911112743.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298438i17BDA260BBB5593E/image-size/large?v=v2&amp;amp;px=999" role="button" title="微信图片_20240911112743.png" alt="微信图片_20240911112743.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 03:28:22 GMT</pubDate>
    <dc:creator>fengba_360</dc:creator>
    <dc:date>2024-09-11T03:28:22Z</dc:date>
    <item>
      <title>s32k312 ADC</title>
      <link>https://community.nxp.com/t5/S32K/s32k312-ADC/m-p/1951644#M40811</link>
      <description>&lt;P&gt;Hello, I'm working with the ADC sampling function of the s32k312 and I'm trying to understand how the values are stored in the adc1_result[] array when I call the function Adc_Sar_Ip_GetConvDataToArray(ADCHWUNIT_1_INSTANCE, ADC_SAR_IP_CONV_CHAIN_NORMAL, ADC1_CHANNEL_NUM, adc1_result); to retrieve the ADC sampling results.&lt;/P&gt;&lt;P&gt;Specifically, I want to know if the values in the adc1_result[] array are stored based on the configured channel numbers of ADC1, for example:&lt;/P&gt;&lt;P&gt;adc1_result[0] stores the conversion result of p0_chanNum0&lt;BR /&gt;adc1_result[1] stores the conversion result of p1_chanNum1&lt;BR /&gt;And so on, in a sequential manner.&lt;BR /&gt;Or, are they stored based on the actual ADC channel numbers and their corresponding positions in the ADC configuration, like:&lt;/P&gt;&lt;P&gt;adc1_result[0] stores the conversion result of adcchannel0 which might correspond to S19_ChanNum43&lt;BR /&gt;adc1_result[1] stores the conversion result of adcchannel1 which might correspond to S20_ChanNum44&lt;BR /&gt;And so forth.&lt;BR /&gt;I'm looking for clarification on how the results are mapped to the adc1_result[] array&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="微信图片_20240911112743.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298438i17BDA260BBB5593E/image-size/large?v=v2&amp;amp;px=999" role="button" title="微信图片_20240911112743.png" alt="微信图片_20240911112743.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 03:28:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k312-ADC/m-p/1951644#M40811</guid>
      <dc:creator>fengba_360</dc:creator>
      <dc:date>2024-09-11T03:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: s32k312 ADC</title>
      <link>https://community.nxp.com/t5/S32K/s32k312-ADC/m-p/1953864#M40915</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Sorry, there is very little information about &lt;STRONG&gt;Adc_Sar_Ip_GetConvDataToArray&lt;/STRONG&gt;, so I did a test: I adjusted the order of &lt;STRONG&gt;Adc Physical Channel Name&lt;/STRONG&gt; in &lt;STRONG&gt;Channel configurations arry&lt;/STRONG&gt;, but the order of ADC result did not change.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adc_Sar_Ip_GetConvDataToArray Channel Number order 48 54 55.png" style="width: 843px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298955iC489E45A5A0C0065/image-size/large?v=v2&amp;amp;px=999" role="button" title="Adc_Sar_Ip_GetConvDataToArray Channel Number order 48 54 55.png" alt="Adc_Sar_Ip_GetConvDataToArray Channel Number order 48 54 55.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adc_Sar_Ip_GetConvDataToArray Channel Number 55 54 48.png" style="width: 845px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298952i425762CA04175BA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Adc_Sar_Ip_GetConvDataToArray Channel Number 55 54 48.png" alt="Adc_Sar_Ip_GetConvDataToArray Channel Number 55 54 48.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So I think your test result should be:&lt;BR /&gt;adc1_result[0] stores the conversion result of p0_chanNum0&lt;BR /&gt;adc1_result[1] stores the conversion result of p1_chanNum1&lt;/P&gt;
&lt;P&gt;It is recommended that you verify this in a non-debugging situation as well.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 02:46:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k312-ADC/m-p/1953864#M40915</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2024-09-13T02:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: s32k312 ADC</title>
      <link>https://community.nxp.com/t5/S32K/s32k312-ADC/m-p/1954106#M40928</link>
      <description>My test results are the same as yours. thanks</description>
      <pubDate>Fri, 13 Sep 2024 08:41:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k312-ADC/m-p/1954106#M40928</guid>
      <dc:creator>fengba_360</dc:creator>
      <dc:date>2024-09-13T08:41:42Z</dc:date>
    </item>
  </channel>
</rss>

