<?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: frdmkv31f - ADC Performance in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1283636#M60652</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you so much for your great support, the customer works with&amp;nbsp;MCUexpresso and he tried to use the internal IRC48M as the ADC clock source.&lt;/P&gt;&lt;P&gt;But without a success, I can share the project if needed.&lt;/P&gt;&lt;P&gt;BTW, I do not familiar with KDS, and if it possible that you will provide me your project so the customer would try it on its own (preferred in MCUexpresso format).&lt;/P&gt;&lt;P&gt;secondly and more important could you please elaborate more about the figure of the scope, for example, what did you measure and how did you perform the test&amp;nbsp;in order to get the 920 nsec results output?&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Shai&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 17:12:58 GMT</pubDate>
    <dc:creator>shai_b</dc:creator>
    <dc:date>2021-05-27T17:12:58Z</dc:date>
    <item>
      <title>frdmkv31f - ADC Performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1278726#M60571</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I am trying to help my customer to achieve higher speed on the ADC peripheral, Could you please advise how can I get the maximum sampling time into the KV31P100M120SF7.&lt;BR /&gt;According to the datasheet, the maximum sampling in 12-bit is 1.2MS/s.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="frdmkv31f_adc.jpg" style="width: 397px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145031iCA523C3CF016E607/image-size/large?v=v2&amp;amp;px=999" role="button" title="frdmkv31f_adc.jpg" alt="frdmkv31f_adc.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I made few tests to check the performance of the ADC and MCU functionality and got different numbers.&lt;/P&gt;&lt;P&gt;1. ADC get value in polling mode (12 or 10bit) = 3.128µsec&lt;BR /&gt;2. Set channel config by using function ADC16_SetChannelConfig = 0.448µsec&lt;/P&gt;&lt;P&gt;Please find below my ADC configuration and I'm using with 120MHz system clock (BOARD_BootClockHSRUN):&lt;/P&gt;&lt;P&gt;adc16ConfigStruct.clockSource = &lt;EM&gt;kADC16_ClockSourceAlt0&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;adc16ConfigStruct.hardwareAverageMode = &lt;EM&gt;kADC16_HardwareAverageDisabled&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;adc16ConfigStruct.resolution = &lt;EM&gt;kADC16_ResolutionSE12Bit&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;adc16ConfigStruct.clockDivider = &lt;EM&gt;kADC16_ClockDivider1&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;adc16ConfigStruct.longSampleMode = &lt;EM&gt;kADC16_LongSampleDisabled&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;adc16ConfigStruct.enableHighSpeed = true;&lt;/P&gt;&lt;P&gt;adc16ConfigStruct.enableContinuousConversion = true;&lt;/P&gt;&lt;P&gt;adc16ConfigStruct.enableAsynchronousClock = false;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise how can we improve the ADC sampling time to &amp;lt;1µsec?&lt;/P&gt;&lt;P&gt;Waiting for your kind response, Thanks.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shai&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 07:30:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1278726#M60571</guid>
      <dc:creator>shai_b</dc:creator>
      <dc:date>2021-05-19T07:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: frdmkv31f - ADC Performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1279382#M60575</link>
      <description>&lt;P&gt;Hi Shai,&lt;/P&gt;
&lt;P&gt;According to the datasheet, you need to configure:&lt;BR /&gt;fADCK(ADC conversion clock frequency)=24MHz&lt;BR /&gt;12bit mode&lt;BR /&gt;CFG2[ADHSC] must be set and CFG1[ADLPC] must be clear&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1200Ksps 12bit ADC Continuous conversions enabled, subsequent conversion time.jpg" style="width: 598px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145088i44AACA0DA846B175/image-size/large?v=v2&amp;amp;px=999" role="button" title="1200Ksps 12bit ADC Continuous conversions enabled, subsequent conversion time.jpg" alt="1200Ksps 12bit ADC Continuous conversions enabled, subsequent conversion time.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then you will get the 1200 Ksps Crate(ADC conversionrate).&lt;BR /&gt;Notice: No ADC hardware averaging Continuous conversions enabled, subsequent conversion time&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check whether the ADC clock source in your configuration can be divided to &lt;STRONG&gt;24MHz&lt;/STRONG&gt;.&lt;BR /&gt;According to your codes, I can see you configure the Core clock to 120MHz.&lt;BR /&gt;But I don't know the frequency of Bus clock.(I am afraid 120MHz MCGOUTCLK can't divide to 48MHz or 24MHz Bus clock) &lt;BR /&gt;It caused you can't achieve 1200 Ksps ADC.&lt;/P&gt;
&lt;P&gt;Maybe you can try to select kADC16_ClockDivider2:&lt;BR /&gt;use IRC48M as ADC clock &lt;BR /&gt;or &lt;BR /&gt;configure 96MHz MCGOUTCLK and 48MHz Bus clock, select Bus clock as ADC clock source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 03:09:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1279382#M60575</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2021-05-20T03:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: frdmkv31f - ADC Performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1279585#M60577</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&amp;nbsp;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your inputs, I'll follow your point-out and advise you back (if needed).&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Shai&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 08:07:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1279585#M60577</guid>
      <dc:creator>shai_b</dc:creator>
      <dc:date>2021-05-20T08:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: frdmkv31f - ADC Performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1280660#M60599</link>
      <description>&lt;P&gt;Dear &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the info and support.&lt;/P&gt;&lt;P&gt;I've created a project from scratch and added the relevant drivers.&lt;/P&gt;&lt;P&gt;I changed the ADC configuration according to your suggestion.&lt;/P&gt;&lt;P&gt;Now, ADC sampling time is around 2.5usec and if I change the divider to 1 it was improved to 2usec (but it’s not like the recommendation).&lt;/P&gt;&lt;P&gt;Be noted, If it would assist I can share with you the customer project for review.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, the example project of ADC polling mode contains the following condition for the end of conversion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while&amp;nbsp;(0U == (kADC16_ChannelConversionDoneFlag&amp;nbsp;&amp;amp;&lt;/P&gt;&lt;P&gt;ADC16_GetChannelStatusFlags(DEMO_ADC16_BASE, DEMO_ADC16_CHANNEL_GROUP)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it enough to wait only to &amp;nbsp;kADC16_ChannelConversionDoneFlag? If yes, the ADC sampling time will improve to 1u.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more question, what is the fast way to read and set the GPIO?&lt;/P&gt;&lt;P&gt;The function of GPIO_PinWrite takes around&amp;nbsp;– ~0.4µsec (while working MCGOUTCLK&amp;nbsp;as&amp;nbsp;120MHz).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Waiting for your feedback, Thanks in advance.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Shai&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2021 09:49:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1280660#M60599</guid>
      <dc:creator>shai_b</dc:creator>
      <dc:date>2021-05-22T09:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: frdmkv31f - ADC Performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1281683#M60608</link>
      <description>&lt;P&gt;I think you can refer &lt;STRONG&gt;frdmkv31f_adc16_continuous_edma&lt;/STRONG&gt; example instead of &lt;STRONG&gt;frdmkv31f_adc16_polling&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Would you please let me know the clock source of ADC that you selected? (IRC48M or 120MHz &lt;STRONG&gt;MCGOUTCLK&lt;/STRONG&gt;) &lt;BR /&gt;If you select &lt;STRONG&gt;MCGOUTCLK&lt;/STRONG&gt; as clock source of ADC, &lt;STRONG&gt;MCGOUTCLK&lt;/STRONG&gt; should be configured 96MHz in order to get 24MHz &lt;STRONG&gt;fADCK&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;GPIO_PinWrite&lt;/STRONG&gt; will determine whether to set or clear, maybe you can direct write the PCOR or PSOR register.(But I don't think it will not reduce too much time consumption)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GPIO_PinWrite.jpg" style="width: 771px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145455iD4B1C61D10C9FF73/image-size/large?v=v2&amp;amp;px=999" role="button" title="GPIO_PinWrite.jpg" alt="GPIO_PinWrite.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;What is the purpose of GPIO operation? If you just want to observe the ADC sampling frequency, you can refer &lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/verify-ADC-conversion-rate-with-oscilloscope/ta-p/1114142" target="_self"&gt;verify ADC conversion rate with oscilloscope&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 09:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1281683#M60608</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2021-05-25T09:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: frdmkv31f - ADC Performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1283173#M60634</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The customer used the IRC48M as a clock source of ADC, he will try to use the adc16_continuous_edma example demo to see if he can achieve 1 usec.&lt;/P&gt;&lt;P&gt;BTW, Did you managed to achieve 1 usec with frdmkv31f MCU?&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shai&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 07:16:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1283173#M60634</guid>
      <dc:creator>shai_b</dc:creator>
      <dc:date>2021-05-27T07:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: frdmkv31f - ADC Performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1283271#M60637</link>
      <description>&lt;P&gt;I used the Processor Expert tool in KDS to configure a simple test project to quickly verify the ADC sampling frequency. (The ADC clock source is Bus Clock, which is divided down to 24MHz for ADC use)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="24MHz ADC clock.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145660iFC042B73C70E8A24/image-size/large?v=v2&amp;amp;px=999" role="button" title="24MHz ADC clock.jpg" alt="24MHz ADC clock.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NewFile0.bmp" style="width: 320px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145661i7A153A8C534512B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="NewFile0.bmp" alt="NewFile0.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 08:27:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1283271#M60637</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2021-05-27T08:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: frdmkv31f - ADC Performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1283636#M60652</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you so much for your great support, the customer works with&amp;nbsp;MCUexpresso and he tried to use the internal IRC48M as the ADC clock source.&lt;/P&gt;&lt;P&gt;But without a success, I can share the project if needed.&lt;/P&gt;&lt;P&gt;BTW, I do not familiar with KDS, and if it possible that you will provide me your project so the customer would try it on its own (preferred in MCUexpresso format).&lt;/P&gt;&lt;P&gt;secondly and more important could you please elaborate more about the figure of the scope, for example, what did you measure and how did you perform the test&amp;nbsp;in order to get the 920 nsec results output?&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Shai&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 17:12:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1283636#M60652</guid>
      <dc:creator>shai_b</dc:creator>
      <dc:date>2021-05-27T17:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: frdmkv31f - ADC Performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1283998#M60659</link>
      <description>&lt;P&gt;For more detail about the the figure of the scope, you may need to read&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/verify-ADC-conversion-rate-with-oscilloscope/ta-p/1114142" target="_self"&gt;verify ADC conversion rate with oscilloscope&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The probe of oscilloscope is connect at ADC0_DP0_RC(Pin5 J2) of &lt;A href="https://www.nxp.com/design/development-boards/freedom-development-boards/mcu-boards/freedom-development-platform-for-kinetis-kv3x-family-mcus:FRDM-KV31F" target="_self"&gt;FRDM-KV31F&lt;/A&gt; board.&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="1622188447576.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145761iCF029C858B1FAF97/image-size/large?v=v2&amp;amp;px=999" role="button" title="1622188447576.jpg" alt="1622188447576.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 08:01:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1283998#M60659</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2021-05-28T08:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: frdmkv31f - ADC Performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1287864#M60757</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your great support and info.&lt;BR /&gt;There is bad and good news.&lt;/P&gt;&lt;P&gt;The bad news is that I made the same test as below and didn’t get the figures that you achieved.&lt;BR /&gt;I was using with 2K resistor and ADC0_SE8 pin.&lt;BR /&gt;I would be happy to understand what am I missing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="frdmkv31f_scope.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146360i20CDEDDF605E3842/image-size/medium?v=v2&amp;amp;px=400" role="button" title="frdmkv31f_scope.jpg" alt="frdmkv31f_scope.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="frdmkv31f_scope2.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146361iB24276CE5F13E419/image-size/medium?v=v2&amp;amp;px=400" role="button" title="frdmkv31f_scope2.jpg" alt="frdmkv31f_scope2.jpg" /&gt;&lt;/span&gt;&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;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;&amp;nbsp;&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;P&gt;The good news is that when I bypass the function of the GPIO driver and set\get directly from the registers the TP time is improved.&lt;/P&gt;&lt;P&gt;For example, the GPIO_PinWrite function takes around 500nSec but when I set the IO directly from the registers is takes 160nSec.&lt;/P&gt;&lt;P&gt;520nSec -&amp;gt; GPIO_PinWrite(BOARD_DBG_GPIO, BOARD_DBG_GPIO_PIN, LOGIC_HIGH);&lt;/P&gt;&lt;P&gt;160nSec -&amp;gt; BOARD_DBG_GPIO-&amp;gt;PSOR = GPIO_FIT_REG(u32flag &amp;lt;&amp;lt; BOARD_DBG_GPIO_PIN);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Waiting for your kind comment on how I can reach a better conversion time as you managed to reach?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Shai&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 20:08:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1287864#M60757</guid>
      <dc:creator>shai_b</dc:creator>
      <dc:date>2021-06-06T20:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: frdmkv31f - ADC Performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1288147#M60769</link>
      <description>&lt;P&gt;I modify the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt; frdmkv31f_adc16_continuous_edma&lt;/STRONG&gt; based on &lt;STRONG&gt;SDK_2.9.0_FRDM-KV31F&lt;/STRONG&gt; with &lt;STRONG&gt;MCUXpresso IDE v11.3.1_5262&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can refer the modification shown 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="MCG PLL FLL IRC48M clock.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146423iFF86318CB56F0E3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="MCG PLL FLL IRC48M clock.jpg" alt="MCG PLL FLL IRC48M clock.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="frdmkv31f_adc16_continuous_edma.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146424i1EEBFE185DAB0750/image-size/large?v=v2&amp;amp;px=999" role="button" title="frdmkv31f_adc16_continuous_edma.jpg" alt="frdmkv31f_adc16_continuous_edma.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1623055724683.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146427i183CBB1279560039/image-size/large?v=v2&amp;amp;px=999" role="button" title="1623055724683.jpg" alt="1623055724683.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;notice the setting of oscilloscope: AC 20mV&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="920ns.bmp" style="width: 640px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146426i98ED43ABDE29460D/image-size/large?v=v2&amp;amp;px=999" role="button" title="920ns.bmp" alt="920ns.bmp" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Customer can direct test the attached project.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 09:04:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1288147#M60769</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2021-06-07T09:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: frdmkv31f - ADC Performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1288229#M60771</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&amp;nbsp;, Thank you so much.&lt;/P&gt;&lt;P&gt;I will keep you posted as needed.&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Shai&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 10:38:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/frdmkv31f-ADC-Performance/m-p/1288229#M60771</guid>
      <dc:creator>shai_b</dc:creator>
      <dc:date>2021-06-07T10:38:52Z</dc:date>
    </item>
  </channel>
</rss>

