<?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 How do I enable ADC0 input trigger on FRDM_K64F in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-I-enable-ADC0-input-trigger-on-FRDM-K64F/m-p/390357#M21241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Processor Expert, I'm using the ADC_LDD Component with DMA1 for a FRDM-K64F.&amp;nbsp; I selected PDB0 as trigger since I wanted to use the external trigger (PDB0_EXTTRG pin), but I got no samples. Using method AD0_StartLoopMeasurement( ) instead of AD0_StartLoopTriggeredMeasurement( ) (i.e. an untriggered data acquisition) I get 256 samples in my input buffer, taken at back-to-back conversion rate.&amp;nbsp; So, everything works but the trigger. I turned on the PDB0 interrupt and set Debug breakpoint and sure enough the PDB counted down and the ADC should have seen the trigger.&amp;nbsp; I thought the PDB might be the problem and selected the PIT timer as the ADC trigger, and even though the PIT interrupt can blink an LED, the ADC never gets a trigger.&amp;nbsp; I initialized with AD0_Init().&amp;nbsp; I have done a similar setup on the TWR-K20D50M chip (simpler ADC), and had no problems. Either I'm missing how to enable the trigger or I have a defective device.&amp;nbsp; Any hints?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2014 00:47:10 GMT</pubDate>
    <dc:creator>MarkHaines</dc:creator>
    <dc:date>2014-10-15T00:47:10Z</dc:date>
    <item>
      <title>How do I enable ADC0 input trigger on FRDM_K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-I-enable-ADC0-input-trigger-on-FRDM-K64F/m-p/390357#M21241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Processor Expert, I'm using the ADC_LDD Component with DMA1 for a FRDM-K64F.&amp;nbsp; I selected PDB0 as trigger since I wanted to use the external trigger (PDB0_EXTTRG pin), but I got no samples. Using method AD0_StartLoopMeasurement( ) instead of AD0_StartLoopTriggeredMeasurement( ) (i.e. an untriggered data acquisition) I get 256 samples in my input buffer, taken at back-to-back conversion rate.&amp;nbsp; So, everything works but the trigger. I turned on the PDB0 interrupt and set Debug breakpoint and sure enough the PDB counted down and the ADC should have seen the trigger.&amp;nbsp; I thought the PDB might be the problem and selected the PIT timer as the ADC trigger, and even though the PIT interrupt can blink an LED, the ADC never gets a trigger.&amp;nbsp; I initialized with AD0_Init().&amp;nbsp; I have done a similar setup on the TWR-K20D50M chip (simpler ADC), and had no problems. Either I'm missing how to enable the trigger or I have a defective device.&amp;nbsp; Any hints?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 00:47:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-I-enable-ADC0-input-trigger-on-FRDM-K64F/m-p/390357#M21241</guid>
      <dc:creator>MarkHaines</dc:creator>
      <dc:date>2014-10-15T00:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I enable ADC0 input trigger on FRDM_K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-I-enable-ADC0-input-trigger-on-FRDM-K64F/m-p/390358#M21242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked that processor expert is configuring the registers with the desired values, you can compare the registers values of the 2 applications you have developed (K64 and K20), you could be missing something to set in PEx? I would start trying an application just with the ADC being triggered externally (without DMA).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 22:07:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-I-enable-ADC0-input-trigger-on-FRDM-K64F/m-p/390358#M21242</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2014-10-20T22:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I enable ADC0 input trigger on FRDM_K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-I-enable-ADC0-input-trigger-on-FRDM-K64F/m-p/390359#M21243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the problem is not with the DMA setup, since it uses the DMA correctly when I call the AD0_StartLoopMeasurement( ).&amp;nbsp; There's only problem when using AD1_StartLoopTriggeredMeasurement.( ). With earlier MCUs PEx had a selection of EXTRG, so any external signal or MCU timer source (using a jumper wire on the board) could be used to trigger the ADC samples.&amp;nbsp; But, the K64F (or at least the PEx support for K64) forces you to pass the trigger signal thru the PDB.&amp;nbsp; So comparing code doesn't help because I can't get the trigger thru the PDB on the K20D72M either (but I can select EXTRG on the K20 so it all works OK).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'll eventually try "poking" all the register bits to set up PDB bypass, but am going ahead with using the K20D72M for this project.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 18:24:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-I-enable-ADC0-input-trigger-on-FRDM-K64F/m-p/390359#M21243</guid>
      <dc:creator>MarkHaines</dc:creator>
      <dc:date>2014-11-02T18:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I enable ADC0 input trigger on FRDM_K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-I-enable-ADC0-input-trigger-on-FRDM-K64F/m-p/390360#M21244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, comparing registers doesn't help since the architectures are different.&amp;nbsp; The K20 works by using the EXTRG which directly triggers the ADC, and this option is not available on the K64F. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 13:26:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-I-enable-ADC0-input-trigger-on-FRDM-K64F/m-p/390360#M21244</guid>
      <dc:creator>MarkHaines</dc:creator>
      <dc:date>2014-11-04T13:26:21Z</dc:date>
    </item>
  </channel>
</rss>

