<?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 ADC High Sampling Rate and Graph in S32K</title>
    <link>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871689#M3891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using S32K144 with S32DS. I want to use the ADC function with a very high sampling rate to capture a high frequency signal. What is the maximum sampling frequency I could achieve using this board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already have coded ADC with SWTrigger mode (using the example code), and changed the&amp;nbsp;PCC-&amp;gt;PCCn[PCC_ADC0_INDEX] |= PCC_PCCn_PCS(6); to use the high frequency SPLL clock. Also, reduced the&amp;nbsp;ADC0-&amp;gt;CFG2 = 0x000000002; to reduce the sampling time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this mean the ADC is sampling at 80MHz? Please check the attached code and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My next step is to get the ADC values and plot a graph using those values. It would be of great help if anyone could tell me a way to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2019 00:05:17 GMT</pubDate>
    <dc:creator>sadabmm</dc:creator>
    <dc:date>2019-03-07T00:05:17Z</dc:date>
    <item>
      <title>ADC High Sampling Rate and Graph</title>
      <link>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871689#M3891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using S32K144 with S32DS. I want to use the ADC function with a very high sampling rate to capture a high frequency signal. What is the maximum sampling frequency I could achieve using this board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already have coded ADC with SWTrigger mode (using the example code), and changed the&amp;nbsp;PCC-&amp;gt;PCCn[PCC_ADC0_INDEX] |= PCC_PCCn_PCS(6); to use the high frequency SPLL clock. Also, reduced the&amp;nbsp;ADC0-&amp;gt;CFG2 = 0x000000002; to reduce the sampling time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this mean the ADC is sampling at 80MHz? Please check the attached code and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My next step is to get the ADC values and plot a graph using those values. It would be of great help if anyone could tell me a way to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 00:05:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871689#M3891</guid>
      <dc:creator>sadabmm</dc:creator>
      <dc:date>2019-03-07T00:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: ADC High Sampling Rate and Graph</title>
      <link>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871690#M3892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear .&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="337088" data-username="sadabmm" href="https://community.nxp.com/people/sadabmm" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;Sadab Mahmud&lt;/A&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;I also under&amp;nbsp;studding ADC high sample Rate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think&amp;nbsp;convertAdcChan(12); was change like below.&amp;nbsp;&amp;nbsp;&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/67280i523CA1112E028EDB/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 05:11:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871690#M3892</guid>
      <dc:creator>yrson7</dc:creator>
      <dc:date>2019-03-08T05:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: ADC High Sampling Rate and Graph</title>
      <link>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871691#M3893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sadab,&lt;/P&gt;&lt;P&gt;The ADC conversion clock frequency ADCK is limited to 50MHz. &lt;BR /&gt;The peripheral clock selected in PCC_PCS is divided by ADC_CFG1[ADIV].&lt;BR /&gt;Please see below specifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to sample one ADC input continuously, you can select continuous conversion ADC_SC3[ADCO] and use DMA to transfer the results to RAM.&lt;BR /&gt;Or you can use PDB to trigger a sequence of conversion in back-to-back mode and again use DMA.&lt;BR /&gt;You can plot a graph from the results in RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to this example:&lt;BR /&gt;&lt;A href="https://community.nxp.com/docs/DOC-333054"&gt;https://community.nxp.com/docs/DOC-333054&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S32K1xx Datasheet rev.9&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/68465i720E2397EFD02C30/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;S32K1xx Reference Manual rev.9&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/68281iD32E8FCD39C90A04/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;&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/67486i433568C4F2C956B0/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 14:41:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871691#M3893</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-03-08T14:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: ADC High Sampling Rate and Graph</title>
      <link>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871692#M3894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&amp;nbsp;Daniel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the PDB triggering in back-to-back mode to get ADC inputs from 2 or more channels. Did not implement the DMA yet, but I'm working on it.&lt;/P&gt;&lt;P&gt;I set the sampling rate at 40MHz and set up LPUART to transfer the recorded data at 115200 baud rate via PuTTY then, used python to plot graphs.&lt;/P&gt;&lt;P&gt;I was pretty satisfied with the data that I collected, the graph looks pretty decent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a graph of a sine wave at 500Khz.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Figure_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78192i1E7BAF7DACF49FCC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Figure_1.png" alt="Figure_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 15:44:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871692#M3894</guid>
      <dc:creator>sadabmm</dc:creator>
      <dc:date>2019-03-18T15:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: ADC High Sampling Rate and Graph</title>
      <link>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871693#M3895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,Are you in continuous mode? Whether continuous mode is suitable for back to back?&amp;nbsp;&lt;/P&gt;&lt;P&gt;my app needs to 24 channel adc.but i&amp;nbsp; can't improve&amp;nbsp;Sampling Rate。&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Mar 2019 02:19:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871693#M3895</guid>
      <dc:creator>liuweiliang</dc:creator>
      <dc:date>2019-03-23T02:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: ADC High Sampling Rate and Graph</title>
      <link>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871694#M3896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, sorry for the late reply. I didn't notice the notification.&lt;/P&gt;&lt;P&gt;I guess&amp;nbsp;I am not using the continuous mode. For PDB back-to-back you need HW trigger.&lt;/P&gt;&lt;P&gt;For greater sampling rate you need to select the SPLL clock as source in&amp;nbsp;PCC_PCCn_PCS, and then look into the&amp;nbsp;CFG1 and CFG2 registers for sampling time calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 17:43:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/871694#M3896</guid>
      <dc:creator>sadabmm</dc:creator>
      <dc:date>2019-04-09T17:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: ADC High Sampling Rate and Graph</title>
      <link>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/1212477#M9612</link>
      <description>&lt;P&gt;I tried to understand which parameters of ADC_CFG1 and&amp;nbsp;ADC_CFG2 &lt;SPAN&gt;but with no&amp;nbsp;&lt;/SPAN&gt;result. I need to improve my sample rate to achieve one sample per bit in 500 kbps CANH and CANL channels. Does anyone know how to do it?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kindly guide me or small example code will be helpful. Many thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 16:31:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-High-Sampling-Rate-and-Graph/m-p/1212477#M9612</guid>
      <dc:creator>Andre_b</dc:creator>
      <dc:date>2021-01-15T16:31:18Z</dc:date>
    </item>
  </channel>
</rss>

