<?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: ADC Trigger Spacing in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-Trigger-Spacing/m-p/1024842#M56342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the app notes.&amp;nbsp; I looked through them and didn't really find what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From everything that I have read, using two ADC modules simultaneously should not effect ADC results.&amp;nbsp; However, it seems that they do if you trigger them too close to each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make the point that I am currently using FTM to trigger a DMA request to write to ADCx-&amp;gt;SC1[0] every 4us to trigger a conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally the set up was a single FTM channel would trigger a single DMA request to write to ADC0-&amp;gt;SC1[0], then the DADDR would update to the ADC2-&amp;gt;SC1[0].&amp;nbsp; Since then, I set up a new FTM channel and DMA channel that would operate specifically with ADC2.&amp;nbsp; So now I have an FTM channel that triggers a DMA channel to write to ADC0-&amp;gt;SC1[0], and an FTM channel that triggers a separate DMA channel to write to ADC2-&amp;gt;SC1[0].&amp;nbsp; I have found that separating the FTM CnV for the two channels by about 2.8us gives me the best results.&amp;nbsp; The question is why 2.8us, and why did I have to separate them in the first place?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There were also two separate DMA channels that will be triggered when conversions&amp;nbsp;are completed.&amp;nbsp; One DMA channel triggered on ADC0 COCO, and one DMA channel on ADC2 COCO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only bring this up because everything I read says that ADCs running in parallel should not interfere with each other.&amp;nbsp; So that brings the question about whether it has to do more with my set up then the time between ADC triggers.&amp;nbsp; Could DMA channels be taking priority over others, and that is somehow effecting the results of ADC2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2020 21:50:49 GMT</pubDate>
    <dc:creator>sean_dvorscak</dc:creator>
    <dc:date>2020-05-04T21:50:49Z</dc:date>
    <item>
      <title>ADC Trigger Spacing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-Trigger-Spacing/m-p/1024838#M56338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a MKE18F16 MCU.&amp;nbsp; I&amp;nbsp;was having issues while using two ADCs simultaneously (ADC0 and ADC2).&amp;nbsp; The issue was that ADC2 was performing significantly worse than ADC0.&amp;nbsp; The same AutoCalibration mechanisms for both ADCs, and each ADC had its own unique calibration stored in NVM to be used out of reset.&amp;nbsp; However, every time the device was reset, ADC2 would give different results that were not accurate at all.&amp;nbsp; ADC0 sometimes would randomly give different results, but not to the extent that ADC2 was showing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since then, this error that was being observed with the two ADCs has gone down significantly.&amp;nbsp; The issue was determined to be that both ADC0 and ADC2 were interfering with each other, because they were being triggered at the same time.&amp;nbsp; ADC0 and ADC2 would both trigger at a 50% duty cycle, and since ADC0 was set to be triggered first, it is believed that this is why ADC0 performed better then ADC2.&amp;nbsp; Changing the operation to give some space between ADC triggers fixed the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the question is why?&amp;nbsp; Why does having them trigger at the same time cause issues?&amp;nbsp; Why does spacing them apart help?&amp;nbsp; Is there any recommendation on how much time should be allocated between triggers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 17:42:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-Trigger-Spacing/m-p/1024838#M56338</guid>
      <dc:creator>sean_dvorscak</dc:creator>
      <dc:date>2020-03-26T17:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: ADC Trigger Spacing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-Trigger-Spacing/m-p/1024839#M56339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sean,&lt;/P&gt;&lt;P&gt;Hope you are doing well.&lt;/P&gt;&lt;P&gt;Could you please specify how you are triggering the ADC modules.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The issue was determined to be that both ADC0 and ADC2 were interfering with each other, because they were being triggered at the same time.&amp;nbsp; ADC0 and ADC2 would both trigger at a 50% duty cycle, and since ADC0 was set to be triggered first, it is believed that this is why ADC0 performed better then ADC2.&amp;nbsp; Changing the operation to give some space between ADC triggers fixed the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are they using the same trigger?What is your configuration?&lt;/P&gt;&lt;P&gt;In the reference manual, there is a description for two different cases. One case, configures the trigger sources separately, while the second uses the same trigger for the ADC modules.&amp;nbsp;&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/101092i5ACBDB3A4817294C/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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2020 16:20:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-Trigger-Spacing/m-p/1024839#M56339</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-03-29T16:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: ADC Trigger Spacing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-Trigger-Spacing/m-p/1024840#M56340</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;Originally, the configuration was set up to represent case 2.&amp;nbsp; Changing it to resemble case 1 fixed the issue that I had.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any reference on how much spacing I should have between ADC triggers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 00:54:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-Trigger-Spacing/m-p/1024840#M56340</guid>
      <dc:creator>sean_dvorscak</dc:creator>
      <dc:date>2020-03-31T00:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: ADC Trigger Spacing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-Trigger-Spacing/m-p/1024841#M56341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following application note, describes how to design the system timing.It states that&amp;nbsp;&amp;nbsp;it depends on how the peripheral resources are utilized and how the MCU performance is allocated. So there is not a minimum or maximum specified, but i believe this explains what are the considerations to be made.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN5380.pdf" title="https://www.nxp.com/docs/en/application-note/AN5380.pdf"&gt;AN5380&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, this next application note also describes a similiar section. In section 2.2 you will find Timing of PDB. This is for the KE16Z, so please use it as a reference only.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN12313.pdf" title="https://www.nxp.com/docs/en/application-note/AN12313.pdf"&gt;AN12313&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2020 15:16:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-Trigger-Spacing/m-p/1024841#M56341</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-04-02T15:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: ADC Trigger Spacing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-Trigger-Spacing/m-p/1024842#M56342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the app notes.&amp;nbsp; I looked through them and didn't really find what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From everything that I have read, using two ADC modules simultaneously should not effect ADC results.&amp;nbsp; However, it seems that they do if you trigger them too close to each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make the point that I am currently using FTM to trigger a DMA request to write to ADCx-&amp;gt;SC1[0] every 4us to trigger a conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally the set up was a single FTM channel would trigger a single DMA request to write to ADC0-&amp;gt;SC1[0], then the DADDR would update to the ADC2-&amp;gt;SC1[0].&amp;nbsp; Since then, I set up a new FTM channel and DMA channel that would operate specifically with ADC2.&amp;nbsp; So now I have an FTM channel that triggers a DMA channel to write to ADC0-&amp;gt;SC1[0], and an FTM channel that triggers a separate DMA channel to write to ADC2-&amp;gt;SC1[0].&amp;nbsp; I have found that separating the FTM CnV for the two channels by about 2.8us gives me the best results.&amp;nbsp; The question is why 2.8us, and why did I have to separate them in the first place?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There were also two separate DMA channels that will be triggered when conversions&amp;nbsp;are completed.&amp;nbsp; One DMA channel triggered on ADC0 COCO, and one DMA channel on ADC2 COCO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only bring this up because everything I read says that ADCs running in parallel should not interfere with each other.&amp;nbsp; So that brings the question about whether it has to do more with my set up then the time between ADC triggers.&amp;nbsp; Could DMA channels be taking priority over others, and that is somehow effecting the results of ADC2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2020 21:50:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-Trigger-Spacing/m-p/1024842#M56342</guid>
      <dc:creator>sean_dvorscak</dc:creator>
      <dc:date>2020-05-04T21:50:49Z</dc:date>
    </item>
  </channel>
</rss>

