<?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>S32 SDKのトピックADC_PAL change between SW and HW Triggering</title>
    <link>https://community.nxp.com/t5/S32-SDK/ADC-PAL-change-between-SW-and-HW-Triggering/m-p/977399#M1288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi together&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a S32K148 with S32 Design Studio.&lt;/P&gt;&lt;P&gt;I have a question about the ADC_PAL component from Processor expert.&lt;/P&gt;&lt;P&gt;Is it possible to change between HW Triggering and SW Triggering for a single Group?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102807i94C2F2442453ED52/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Because I have to measure a signal which is either constant at a specific voltage, or a PWM.&lt;/P&gt;&lt;P&gt;So I want to change the triggering for a ADC_PAL Group depending on the signal (PWM or static). The PWM Signal is generated by the FTM5. Thats why I set FTM5 as HW trigger for the conversion in Processer expert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to call the the following component functions to enable and disable the HW Triggering:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102939iB141F01367DF7135/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So I disabled the HW Triggering first to measure the stable signal (SW Triggering). This worked once, but for a second measurement, the function &lt;STRONG&gt;ADC_StartGroupConversion()&lt;/STRONG&gt; returned STATUS_BUSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that the "active" status will not be reseted after a conversion (in &lt;STRONG&gt;ADC_S32K1xx_IrqHandler()&lt;/STRONG&gt;):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103121iDC70634EB8B390DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This because the variable &lt;STRONG&gt;activeGroupCfg-&amp;gt;hwTriggerSupport&lt;/STRONG&gt; is set to true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the next steps I would like to Enable HW Triggering and measure the PWM signal on each period. But when the repeated measurement by SW Triggering of the stable signal does not work, I can't proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a sample program.&lt;/P&gt;&lt;P&gt;I hope you can understand my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2020 08:13:54 GMT</pubDate>
    <dc:creator>EE_CW</dc:creator>
    <dc:date>2020-03-03T08:13:54Z</dc:date>
    <item>
      <title>ADC_PAL change between SW and HW Triggering</title>
      <link>https://community.nxp.com/t5/S32-SDK/ADC-PAL-change-between-SW-and-HW-Triggering/m-p/977399#M1288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi together&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a S32K148 with S32 Design Studio.&lt;/P&gt;&lt;P&gt;I have a question about the ADC_PAL component from Processor expert.&lt;/P&gt;&lt;P&gt;Is it possible to change between HW Triggering and SW Triggering for a single Group?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102807i94C2F2442453ED52/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Because I have to measure a signal which is either constant at a specific voltage, or a PWM.&lt;/P&gt;&lt;P&gt;So I want to change the triggering for a ADC_PAL Group depending on the signal (PWM or static). The PWM Signal is generated by the FTM5. Thats why I set FTM5 as HW trigger for the conversion in Processer expert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to call the the following component functions to enable and disable the HW Triggering:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102939iB141F01367DF7135/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So I disabled the HW Triggering first to measure the stable signal (SW Triggering). This worked once, but for a second measurement, the function &lt;STRONG&gt;ADC_StartGroupConversion()&lt;/STRONG&gt; returned STATUS_BUSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that the "active" status will not be reseted after a conversion (in &lt;STRONG&gt;ADC_S32K1xx_IrqHandler()&lt;/STRONG&gt;):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103121iDC70634EB8B390DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This because the variable &lt;STRONG&gt;activeGroupCfg-&amp;gt;hwTriggerSupport&lt;/STRONG&gt; is set to true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the next steps I would like to Enable HW Triggering and measure the PWM signal on each period. But when the repeated measurement by SW Triggering of the stable signal does not work, I can't proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a sample program.&lt;/P&gt;&lt;P&gt;I hope you can understand my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 08:13:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/ADC-PAL-change-between-SW-and-HW-Triggering/m-p/977399#M1288</guid>
      <dc:creator>EE_CW</dc:creator>
      <dc:date>2020-03-03T08:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_PAL change between SW and HW Triggering</title>
      <link>https://community.nxp.com/t5/S32-SDK/ADC-PAL-change-between-SW-and-HW-Triggering/m-p/977400#M1289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the ADC_PAL does not support&amp;nbsp;updating triggering (SW &amp;lt;-&amp;gt; HW) for a group, without Deinit().&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead, to achieve your scenario, you would need to create another SW triggered group, configured to measure the same channel which you are measuring via HW triggered group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also please note that&amp;nbsp;ADC_StartGroupConversion only supports calling groups configured as SW triggered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Cosmin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 16:54:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/ADC-PAL-change-between-SW-and-HW-Triggering/m-p/977400#M1289</guid>
      <dc:creator>cosmindinu</dc:creator>
      <dc:date>2020-03-05T16:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_PAL change between SW and HW Triggering</title>
      <link>https://community.nxp.com/t5/S32-SDK/ADC-PAL-change-between-SW-and-HW-Triggering/m-p/977401#M1290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cosmin&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer. In the meantime I found a solution that seems working for me:&lt;/P&gt;&lt;P&gt;- 1 ADC configuration with SW Triggering&lt;/P&gt;&lt;P&gt;- 1 ADC configuration with HW Triggering&lt;/P&gt;&lt;P&gt;--&amp;gt; depending on the signal (PWM or not) I deinit the ADC and init it with the other configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But out of this there came up another question:&lt;/P&gt;&lt;P&gt;-It is not possible to have two HW Triggered groups active at the same time for one ADC. But is it possible to have a HW Triggered Group active and some SW Triggered groups for the same ADC instance (See first picture in the original question)?&lt;/P&gt;&lt;P&gt;This seems not working for me, but I'm not sure if I made a mistake or it is even not possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 06:20:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/ADC-PAL-change-between-SW-and-HW-Triggering/m-p/977401#M1290</guid>
      <dc:creator>EE_CW</dc:creator>
      <dc:date>2020-03-06T06:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_PAL change between SW and HW Triggering</title>
      <link>https://community.nxp.com/t5/S32-SDK/ADC-PAL-change-between-SW-and-HW-Triggering/m-p/977402#M1291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enabling another HW triggered group while other SW triggered is running will return BUSY.&lt;/P&gt;&lt;P&gt;Also, I would like to mention that there is an example in S32DS &lt;EM&gt;adc_pal_s32k148&lt;/EM&gt; which uses ADC PAL for a series of SW and HW triggered groups of conversions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 07:29:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/ADC-PAL-change-between-SW-and-HW-Triggering/m-p/977402#M1291</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-03-06T07:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_PAL change between SW and HW Triggering</title>
      <link>https://community.nxp.com/t5/S32-SDK/ADC-PAL-change-between-SW-and-HW-Triggering/m-p/977403#M1292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;Yes I know that example. Thanks for the hint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 08:05:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/ADC-PAL-change-between-SW-and-HW-Triggering/m-p/977403#M1292</guid>
      <dc:creator>EE_CW</dc:creator>
      <dc:date>2020-03-06T08:05:12Z</dc:date>
    </item>
  </channel>
</rss>

