<?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>S32KのトピックS32K ADC PAL groups conversion status check</title>
    <link>https://community.nxp.com/t5/S32K/S32K-ADC-PAL-groups-conversion-status-check/m-p/1360385#M12537</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I set two conversion groups of ADC0 using the RTM4.0.2. One group contains 8 channels and the other contains 7 channels. Both of them are triggered by software.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; After I start the conversion of group0 by calling&amp;nbsp;ADC_StartGroupConversion(&amp;amp;adc_pal_1_instance, 0 ), I store the adc results to related parameters. Then I start the second group by calling&amp;nbsp;ADC_StartGroupConversion(&amp;amp;adc_pal_1_instance, 1 ).However, I can not get the updated result inside the second group buffer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Putting a manaul delay like" while(cnt&amp;lt;10000){cnt++;}" before starting the second group, it comes out the updated result of second groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here comes the question: how long should it wait after starting the first group of Is these a way to check whether is finished or not of the first group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;status_t status;&lt;BR /&gt;u16 cnt=0;&lt;BR /&gt;/*acquire values of ADC0*/&lt;BR /&gt;/*adc_pal0_Results00[high]=channel[high]*/&lt;BR /&gt;status = ADC_StartGroupConversion(&amp;amp;adc_pal_1_instance, 0 );//groupIdx&lt;BR /&gt;DEV_ASSERT(status == STATUS_SUCCESS);&lt;BR /&gt;g_raw_KL15_adc =adc_pal_1_results0[0];&lt;BR /&gt;g_raw_BAT24V_adc =adc_pal_1_results0[1];&lt;BR /&gt;g_raw_TCV_ST_adc =adc_pal_1_results0[2];&lt;BR /&gt;g_raw_ERRL1_ST_adc =adc_pal_1_results0[3];&lt;BR /&gt;g_raw_ERRL2_ST_adc =adc_pal_1_results0[4];&lt;BR /&gt;g_raw_TCV_UB_ST_adc =adc_pal_1_results0[5];&lt;BR /&gt;g_raw_TCV_Sensor_adc =adc_pal_1_results0[6];&lt;BR /&gt;g_raw_TCV_LOW_ST_adc =adc_pal_1_results0[7];&lt;/P&gt;&lt;P&gt;//status = ADC_StopGroupConversion(&amp;amp;adc_pal_1_instance, 0 ,1 );//groupIdx&lt;/P&gt;&lt;P&gt;while(cnt&amp;lt;10000)&lt;BR /&gt;{&lt;BR /&gt;cnt++;&lt;BR /&gt;}&lt;BR /&gt;status = ADC_StartGroupConversion(&amp;amp;adc_pal_1_instance, 1 );&lt;BR /&gt;DEV_ASSERT(status == STATUS_SUCCESS);&lt;BR /&gt;g_raw_ABS_GND_adc =adc_pal_1_results1[0];&lt;BR /&gt;g_raw_RA_UB_adc =adc_pal_1_results1[1];&lt;BR /&gt;g_raw_DBR_ST_adc =adc_pal_1_results1[2];&lt;BR /&gt;g_raw_BRKL1_ST_adc =adc_pal_1_results1[3];&lt;BR /&gt;g_raw_EMAS_ST_adc =adc_pal_1_results1[4];&lt;BR /&gt;g_raw_WL1_ST_adc =adc_pal_1_results1[5];&lt;BR /&gt;g_raw_ABS_ST_adc =adc_pal_1_results1[6];&lt;BR /&gt;//status = ADC_StopGroupConversion(&amp;amp;adc_pal_1_instance, 1 ,1 );//groupIdx&lt;BR /&gt;//acquire values of ADC1&lt;/P&gt;&lt;P&gt;status = ADC_StartGroupConversion(&amp;amp;adc_pal_2_instance,0 );&lt;BR /&gt;DEV_ASSERT(status == STATUS_SUCCESS);&lt;BR /&gt;g_raw_XA_UB_adc =adc_pal_2_results0[0];&lt;BR /&gt;g_raw_FA_UB_adc =adc_pal_2_results0[1];&lt;BR /&gt;g_raw_BWG_UB_adc =adc_pal_2_results0[2];&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Oct 2021 12:19:30 GMT</pubDate>
    <dc:creator>thulzh</dc:creator>
    <dc:date>2021-10-24T12:19:30Z</dc:date>
    <item>
      <title>S32K ADC PAL groups conversion status check</title>
      <link>https://community.nxp.com/t5/S32K/S32K-ADC-PAL-groups-conversion-status-check/m-p/1360385#M12537</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I set two conversion groups of ADC0 using the RTM4.0.2. One group contains 8 channels and the other contains 7 channels. Both of them are triggered by software.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; After I start the conversion of group0 by calling&amp;nbsp;ADC_StartGroupConversion(&amp;amp;adc_pal_1_instance, 0 ), I store the adc results to related parameters. Then I start the second group by calling&amp;nbsp;ADC_StartGroupConversion(&amp;amp;adc_pal_1_instance, 1 ).However, I can not get the updated result inside the second group buffer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Putting a manaul delay like" while(cnt&amp;lt;10000){cnt++;}" before starting the second group, it comes out the updated result of second groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here comes the question: how long should it wait after starting the first group of Is these a way to check whether is finished or not of the first group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;status_t status;&lt;BR /&gt;u16 cnt=0;&lt;BR /&gt;/*acquire values of ADC0*/&lt;BR /&gt;/*adc_pal0_Results00[high]=channel[high]*/&lt;BR /&gt;status = ADC_StartGroupConversion(&amp;amp;adc_pal_1_instance, 0 );//groupIdx&lt;BR /&gt;DEV_ASSERT(status == STATUS_SUCCESS);&lt;BR /&gt;g_raw_KL15_adc =adc_pal_1_results0[0];&lt;BR /&gt;g_raw_BAT24V_adc =adc_pal_1_results0[1];&lt;BR /&gt;g_raw_TCV_ST_adc =adc_pal_1_results0[2];&lt;BR /&gt;g_raw_ERRL1_ST_adc =adc_pal_1_results0[3];&lt;BR /&gt;g_raw_ERRL2_ST_adc =adc_pal_1_results0[4];&lt;BR /&gt;g_raw_TCV_UB_ST_adc =adc_pal_1_results0[5];&lt;BR /&gt;g_raw_TCV_Sensor_adc =adc_pal_1_results0[6];&lt;BR /&gt;g_raw_TCV_LOW_ST_adc =adc_pal_1_results0[7];&lt;/P&gt;&lt;P&gt;//status = ADC_StopGroupConversion(&amp;amp;adc_pal_1_instance, 0 ,1 );//groupIdx&lt;/P&gt;&lt;P&gt;while(cnt&amp;lt;10000)&lt;BR /&gt;{&lt;BR /&gt;cnt++;&lt;BR /&gt;}&lt;BR /&gt;status = ADC_StartGroupConversion(&amp;amp;adc_pal_1_instance, 1 );&lt;BR /&gt;DEV_ASSERT(status == STATUS_SUCCESS);&lt;BR /&gt;g_raw_ABS_GND_adc =adc_pal_1_results1[0];&lt;BR /&gt;g_raw_RA_UB_adc =adc_pal_1_results1[1];&lt;BR /&gt;g_raw_DBR_ST_adc =adc_pal_1_results1[2];&lt;BR /&gt;g_raw_BRKL1_ST_adc =adc_pal_1_results1[3];&lt;BR /&gt;g_raw_EMAS_ST_adc =adc_pal_1_results1[4];&lt;BR /&gt;g_raw_WL1_ST_adc =adc_pal_1_results1[5];&lt;BR /&gt;g_raw_ABS_ST_adc =adc_pal_1_results1[6];&lt;BR /&gt;//status = ADC_StopGroupConversion(&amp;amp;adc_pal_1_instance, 1 ,1 );//groupIdx&lt;BR /&gt;//acquire values of ADC1&lt;/P&gt;&lt;P&gt;status = ADC_StartGroupConversion(&amp;amp;adc_pal_2_instance,0 );&lt;BR /&gt;DEV_ASSERT(status == STATUS_SUCCESS);&lt;BR /&gt;g_raw_XA_UB_adc =adc_pal_2_results0[0];&lt;BR /&gt;g_raw_FA_UB_adc =adc_pal_2_results0[1];&lt;BR /&gt;g_raw_BWG_UB_adc =adc_pal_2_results0[2];&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 12:19:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-ADC-PAL-groups-conversion-status-check/m-p/1360385#M12537</guid>
      <dc:creator>thulzh</dc:creator>
      <dc:date>2021-10-24T12:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: S32K ADC PAL groups conversion status check</title>
      <link>https://community.nxp.com/t5/S32K/S32K-ADC-PAL-groups-conversion-status-check/m-p/1360867#M12551</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/146123"&gt;@thulzh&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This is expected as the ADC_StartGroupConversion() function does not block the execution.&lt;/P&gt;
&lt;P&gt;The STATUS_SUCCESS means the group conversion has been triggered but not finished.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1635165568707.png" style="width: 656px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/160035iCC9E21678C53431B/image-dimensions/656x361?v=v2" width="656" height="361" role="button" title="danielmartynek_0-1635165568707.png" alt="danielmartynek_0-1635165568707.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can either&lt;/P&gt;
&lt;P&gt;1. Read the status of the subsequent ADC_StartGroupConversion() function until it returns STATUS_SUCCESS and the second group has been successfully triggered or&lt;/P&gt;
&lt;P&gt;2. use callbacks or&lt;/P&gt;
&lt;P&gt;3. measure the duration of the first group conversion. A single conversion time can be calculated, &lt;STRONG&gt;Section 44.5.4.5 Sample time and total conversion time&lt;/STRONG&gt;, (RM. rev.13).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 12:46:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-ADC-PAL-groups-conversion-status-check/m-p/1360867#M12551</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-10-25T12:46:21Z</dc:date>
    </item>
  </channel>
</rss>

