<?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: S32K ADC Hardware trigger Processor expert configuration in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K-ADC-Hardware-trigger-Processor-expert-configuration/m-p/1733707#M27559</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;hard to say based on the attached files. If you want to perform multiple conversions on single or dual ADCs it would be ideal to reuse the PDB module to trigger conversions. There are few example posted on community you can refer to...&lt;BR /&gt;baremetal:&amp;nbsp;&lt;BR /&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://community.nxp.com/docs/DOC-333054" target="_blank"&gt; Example S32K144 PDB ADC trigger DMA ISR S32DS - NXP Community &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;SDK based:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.nxp.com/docs/DOC-343295" target="_blank"&gt; Example S32K144 PDB ADC DMA S32DS.ARM.2018.R1 - NXP Community &lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K148-PDB0-PDB1-ring-S32DS3-4-RTM4-0-3/ta-p/1588330" target="_blank"&gt; Example S32K148 PDB0-PDB1 ring S32DS3.4 RTM4.0.3 - NXP Community&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K148-PDB0-PDB1-ring-DMA-S32DS3-4-RTM4-0-3/ta-p/1603780" target="_blank"&gt; Example S32K148 PDB0-PDB1 ring DMA S32DS3.4 RTM4.0... - NXP Community &lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 11:50:50 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2023-10-04T11:50:50Z</dc:date>
    <item>
      <title>S32K ADC Hardware trigger Processor expert configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K-ADC-Hardware-trigger-Processor-expert-configuration/m-p/1733644#M27552</link>
      <description>&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;Currently, We configured ADC1 with ADC PAL for two channels group conversion with Processor expert. Unfortunately, We are not using anymore the processor expert and want to configure the ADC0 for continuous conversion either same like ADC PAL group conversion or Hardware conversion.&lt;/P&gt;&lt;P&gt;I just copied the code which is configured for ADC1 and renamed some variable. I am not getting the ADC values in the call back function. Let me know what I did wrong with configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attachements:&lt;/P&gt;&lt;P&gt;Pal: Generated PAL folder&lt;/P&gt;&lt;P&gt;cp_adc.c and cp_adc.h : ADC1 configuration&lt;/P&gt;&lt;P&gt;pp_adc.c and pp_adc.h: ADC0 configuration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ADC Initialization:  
//Initialize ADC1
    ADC_Init(&amp;amp;cp_adc_instance, &amp;amp;g_cp_adc_InitConfig0);
    
    ADC_EnableHardwareTrigger(&amp;amp;cp_adc_instance, 0u);


    //Initialize ADC1
    ADC_Init(&amp;amp;pp_adc_instance, &amp;amp;g_pp_adc_InitConfig0);
    
    ADC_EnableHardwareTrigger(&amp;amp;pp_adc_instance, 0u);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADC1 call back function getting correct values and ADC0 call back function not getting any values.&lt;/P&gt;&lt;P&gt;Here my main aim is continuously get the 4 values of ADC0 and make average later in the code implementation.&lt;/P&gt;&lt;P&gt;Do I need to use only group conversion to convert the values without software trigger?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Call Back functions
/**
 *  @brief Interrupt when ADC data is available.
 *   callbackInfo, userData unused
 */
void cp_adc_data_ready_cb(const adc_callback_info_t * const callbackInfo, void * userData)
{
    (void)callbackInfo;
    (void)userData;
    
    g_positive_peak_raw_hist[g_peak_voltage_index] = cp_adc_Results00[0];
    g_negative_peak_raw_hist[g_peak_voltage_index] = cp_adc_Results00[1];
    
    g_peak_voltage_index++;
    g_peak_voltage_index %= CP_HISTORY_LEN;
}

/**
 *  @brief Interrupt when ADC data is available.
 *   callbackInfo, userData unused
 */
void pp_adc_data_ready_cb(const adc_callback_info_t * const callbackInfo, 
void * userData)
{
    (void)callbackInfo;
    (void)userData;
    
    g_proximity_raw_hist[g_proximity_index] = pp_adc_Results00[0];
    
    g_proximity_index++;
    g_proximity_index %= PP_HISTORY_LEN;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961" target="_self"&gt;&lt;SPAN class=""&gt;@PetrS&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;@&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001" target="_self"&gt;&lt;SPAN class=""&gt;danielmartynek&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 10:25:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-ADC-Hardware-trigger-Processor-expert-configuration/m-p/1733644#M27552</guid>
      <dc:creator>saireddy_saredd</dc:creator>
      <dc:date>2023-10-04T10:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K ADC Hardware trigger Processor expert configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K-ADC-Hardware-trigger-Processor-expert-configuration/m-p/1733707#M27559</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;hard to say based on the attached files. If you want to perform multiple conversions on single or dual ADCs it would be ideal to reuse the PDB module to trigger conversions. There are few example posted on community you can refer to...&lt;BR /&gt;baremetal:&amp;nbsp;&lt;BR /&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://community.nxp.com/docs/DOC-333054" target="_blank"&gt; Example S32K144 PDB ADC trigger DMA ISR S32DS - NXP Community &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;SDK based:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.nxp.com/docs/DOC-343295" target="_blank"&gt; Example S32K144 PDB ADC DMA S32DS.ARM.2018.R1 - NXP Community &lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K148-PDB0-PDB1-ring-S32DS3-4-RTM4-0-3/ta-p/1588330" target="_blank"&gt; Example S32K148 PDB0-PDB1 ring S32DS3.4 RTM4.0.3 - NXP Community&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K148-PDB0-PDB1-ring-DMA-S32DS3-4-RTM4-0-3/ta-p/1603780" target="_blank"&gt; Example S32K148 PDB0-PDB1 ring DMA S32DS3.4 RTM4.0... - NXP Community &lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 11:50:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-ADC-Hardware-trigger-Processor-expert-configuration/m-p/1733707#M27559</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-10-04T11:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: S32K ADC Hardware trigger Processor expert configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K-ADC-Hardware-trigger-Processor-expert-configuration/m-p/1742106#M27941</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I fixed the issue&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 12:23:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-ADC-Hardware-trigger-Processor-expert-configuration/m-p/1742106#M27941</guid>
      <dc:creator>saireddy_saredd</dc:creator>
      <dc:date>2023-10-18T12:23:51Z</dc:date>
    </item>
  </channel>
</rss>

