<?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>Kinetis MicrocontrollersのトピックK64F Triggering ADC on DMA major loop completion?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-Triggering-ADC-on-DMA-major-loop-completion/m-p/644537#M39097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're evaluating the K64F for an instrumentation application. We'd like to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Generate an excitation waveform using DMA-to-DAC. I got this working here:&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/840245"&gt;https://community.nxp.com/message/840245&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;At the completion of each waveform cycle (completion of DMA major loop), generate a conversion trigger&lt;/LI&gt;&lt;LI&gt;Initiate an ADC conversion on the trigger&lt;/LI&gt;&lt;LI&gt;on ADC completion, copy the result via DMA to a buffer (ping-ponged)&lt;/LI&gt;&lt;LI&gt;When the ADC-DMA fills the buffer (completion of the DMA major loop), ping-pong to the alternate buffer and generate an interrupt signalling a load of data is ready to process&lt;/LI&gt;&lt;LI&gt;In the ADC-DMA-major-loop-completion ISR, we'll do our processing&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Steps 1-5 should proceed without code intervention.&lt;/P&gt;&lt;P&gt;The next question is how to configure K64F to perform steps 2-3:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px;"&gt;&lt;STRONG&gt;How do I trigger ADC conversion at the end of each DAC-DMA-major-loop completion?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Best Regards, Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2016 16:18:20 GMT</pubDate>
    <dc:creator>davenadler</dc:creator>
    <dc:date>2016-10-17T16:18:20Z</dc:date>
    <item>
      <title>K64F Triggering ADC on DMA major loop completion?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-Triggering-ADC-on-DMA-major-loop-completion/m-p/644537#M39097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're evaluating the K64F for an instrumentation application. We'd like to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Generate an excitation waveform using DMA-to-DAC. I got this working here:&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/840245"&gt;https://community.nxp.com/message/840245&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;At the completion of each waveform cycle (completion of DMA major loop), generate a conversion trigger&lt;/LI&gt;&lt;LI&gt;Initiate an ADC conversion on the trigger&lt;/LI&gt;&lt;LI&gt;on ADC completion, copy the result via DMA to a buffer (ping-ponged)&lt;/LI&gt;&lt;LI&gt;When the ADC-DMA fills the buffer (completion of the DMA major loop), ping-pong to the alternate buffer and generate an interrupt signalling a load of data is ready to process&lt;/LI&gt;&lt;LI&gt;In the ADC-DMA-major-loop-completion ISR, we'll do our processing&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Steps 1-5 should proceed without code intervention.&lt;/P&gt;&lt;P&gt;The next question is how to configure K64F to perform steps 2-3:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px;"&gt;&lt;STRONG&gt;How do I trigger ADC conversion at the end of each DAC-DMA-major-loop completion?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Best Regards, Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 16:18:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-Triggering-ADC-on-DMA-major-loop-completion/m-p/644537#M39097</guid>
      <dc:creator>davenadler</dc:creator>
      <dc:date>2016-10-17T16:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: K64F Triggering ADC on DMA major loop completion?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-Triggering-ADC-on-DMA-major-loop-completion/m-p/644538#M39098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer could using ADC software trigger mode.&lt;/P&gt;&lt;P&gt;In Software Trigger mode, when SC2[ADTRG]=0, writes to SC1A subsequently initiate a new conversion, if SC1[ADCH] contains a value other than all 1s.&lt;/P&gt;&lt;P&gt;After DMA to DAC major loop finished, customer could set a major loop link to another DMA channel to transfer already&amp;nbsp; ADC channel value(variable in RAM) to&amp;nbsp; ADC Status and Control Registers 1 (ADCx_SC1n) as software trigger ADC conversion. For only the SC1A is used for both software and hardware trigger modes of operation. Customer could using DMA link channel to transfer data to ADCx_SC1A register as software trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer could refer application note &lt;A href="http://cache.nxp.com/files/32bit/doc/app_note/AN4590.pdf"&gt;AN4590&lt;/A&gt;, which using a hardware trigger. Customer can use ADC software trigger to instead of the hardware trigger.&lt;/P&gt;&lt;P&gt;AN4590 software could be downloaded from &lt;A href="http://cache.nxp.com/files/32bit/doc/app_note/AN4590SW.zip"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 06:19:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-Triggering-ADC-on-DMA-major-loop-completion/m-p/644538#M39098</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-10-18T06:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: K64F Triggering ADC on DMA major loop completion?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-Triggering-ADC-on-DMA-major-loop-completion/m-p/644539#M39099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I think I understand your answer; I will try:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;DMA link on completion of DAC-DMA major loop to trigger for example DMA channel 2,&lt;/LI&gt;&lt;LI&gt;DMA channel 2: transfer a constant value into ADC peripheral to initiate an ADC conversion&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Thanks,&lt;BR /&gt;Best Regards, Dave&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 11:48:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-Triggering-ADC-on-DMA-major-loop-completion/m-p/644539#M39099</guid>
      <dc:creator>davenadler</dc:creator>
      <dc:date>2016-10-18T11:48:40Z</dc:date>
    </item>
  </channel>
</rss>

