<?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: FTM-PDB-ADC trigger goes wrong on S32K148 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1254730#M10393</link>
    <description>&lt;P&gt;Hi&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 had followed the first 3 steps, but I don't really get the 4th step,&lt;/P&gt;&lt;P&gt;I only use&amp;nbsp;ADC_DRV_GetChanResult() function to get the result, and it end up the same.&lt;/P&gt;&lt;P&gt;I'm a little confuse with this part, It would be better if you could explain more details,&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 06:36:40 GMT</pubDate>
    <dc:creator>renhaochen</dc:creator>
    <dc:date>2021-03-31T06:36:40Z</dc:date>
    <item>
      <title>FTM-PDB-ADC trigger goes wrong on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1248011#M10226</link>
      <description>&lt;P&gt;Hi, I'm developing a DC motor control project based on S32K148, and I basically follow the MTR-148 example code to write code. Now the problem is that adc interrupt randomly stopped after successful working few seconds or few minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I use the FTM-PDB-ADC trigger sequence, I had tried to change PDB MOD, Delay time...etc, but the interrupt is acting the same, sometimes even not work since beginning. When I check the register after the interrupt stopped, the COCO flag of last ADC channel (which also is configured to generate interrupt) is not set, but the COCO flag before this channel had all set.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADCCOCO.JPG" style="width: 798px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140023i7ADEF4E1B914583F/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADCCOCO.JPG" alt="ADCCOCO.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea to this problem? Or is there any reference could help to this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's my initial settings below:&lt;/P&gt;&lt;P&gt;FTM with 80us,12.5kHz&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FTM.JPG" style="width: 460px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140027i85090F62092C74E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="FTM.JPG" alt="FTM.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;TRGMUX:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TRGMUX.JPG" style="width: 430px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140024i3BBEFF6A9E1043A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="TRGMUX.JPG" alt="TRGMUX.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PDB:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PDB.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140026i3BC8B24004CF1E5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="PDB.JPG" alt="PDB.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;ADC:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADC1.JPG" style="width: 369px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140025iA8DB5C69CA39DF46/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC1.JPG" alt="ADC1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADC2.JPG" style="width: 708px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140028i16B353FC232B11FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC2.JPG" alt="ADC2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 09:39:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1248011#M10226</guid>
      <dc:creator>renhaochen</dc:creator>
      <dc:date>2021-03-18T09:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: FTM-PDB-ADC trigger goes wrong on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1248195#M10229</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;do you see some sequence error reported on PDB_CH0S?&lt;BR /&gt;Generally, be sure PDB pretriggers delays are properly set to be sure a conversion is finished between two petriggers. Also be sure ADC result registers are always read after conversion.&lt;BR /&gt;You can try to use DMA to read all result registers, trigger DMA from PDB using IDLY set for right time with respect of expected last conversion.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 13:09:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1248195#M10229</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-03-18T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: FTM-PDB-ADC trigger goes wrong on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1248675#M10237</link>
      <description>&lt;P&gt;Hi&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;Thank you for the fast replying,&lt;/P&gt;&lt;P&gt;I checked PDB0.CH0S register and it shows Sequence error not detected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PDB_CH0S.JPG" style="width: 930px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140149i4353AA80AEBC8AD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="PDB_CH0S.JPG" alt="PDB_CH0S.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I had tried to set DMA enable configuration for ADC module and add DMA channel for ADC0, it works fine until I enable UART0 through DMA. While UART0 is working ADC interrupt goes unstable again. Is this one of the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also you had mentioned "&amp;nbsp;&lt;SPAN&gt;trigger DMA from PDB using IDLY&amp;nbsp;", is there more specific settings information I could know? For now I just simply configured ADC and DMA on Processor Expert tool, and PDB initial codes shows below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PDBINIT.JPG" style="width: 625px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140151iD7FD874E80BA2683/image-size/large?v=v2&amp;amp;px=999" role="button" title="PDBINIT.JPG" alt="PDBINIT.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 06:48:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1248675#M10237</guid>
      <dc:creator>renhaochen</dc:creator>
      <dc:date>2021-03-19T06:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: FTM-PDB-ADC trigger goes wrong on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1251119#M10294</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not aware of the example for&amp;nbsp;&lt;SPAN&gt;trigger DMA from PDB. Anyway you should&amp;nbsp;do&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- disable DMA from ADC and enable DMA from PDB within ADC and PDB components&lt;BR /&gt;- assign PDB as request to DMA channel in DMA component&lt;BR /&gt;- use&amp;nbsp;PDB_SetValueForTimerInterrupt to configure IDLY register, to specify a time when DMA is&amp;nbsp;&lt;/SPAN&gt;triggered&lt;BR /&gt;- configure DMA channel to read all ADC result registers upon single DMA request&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 10:12:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1251119#M10294</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-03-24T10:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: FTM-PDB-ADC trigger goes wrong on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1254730#M10393</link>
      <description>&lt;P&gt;Hi&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 had followed the first 3 steps, but I don't really get the 4th step,&lt;/P&gt;&lt;P&gt;I only use&amp;nbsp;ADC_DRV_GetChanResult() function to get the result, and it end up the same.&lt;/P&gt;&lt;P&gt;I'm a little confuse with this part, It would be better if you could explain more details,&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 06:36:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1254730#M10393</guid>
      <dc:creator>renhaochen</dc:creator>
      <dc:date>2021-03-31T06:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: FTM-PDB-ADC trigger goes wrong on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1257860#M10471</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;when using DMA to read result registers then you need not to use&amp;nbsp;ADC_DRV_GetChanResult() function.&lt;BR /&gt;You can try to refer to&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-PDB-ADC-DMA-S32DS-ARM-2018-R1/ta-p/1101686" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-PDB-ADC-DMA-S32DS-ARM-2018-R1/ta-p/1101686&lt;/A&gt;&lt;BR /&gt;to see how DMA is used. It is set up differently, to be triggered from ADC directly, but you can modify it for your need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 09:29:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FTM-PDB-ADC-trigger-goes-wrong-on-S32K148/m-p/1257860#M10471</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-04-07T09:29:27Z</dc:date>
    </item>
  </channel>
</rss>

