<?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 KE18 ADC hardware trigger in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KE18-ADC-hardware-trigger/m-p/792655#M48217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't seem to get the ADC to trigger from the LPIT or the FTM using the TRGMUX.&amp;nbsp; The ADC works from software triggers.&amp;nbsp; I can confirm the LPIT is running and it is triggering events, but I can't get the ADC interrupt to happen on any of the channels.&amp;nbsp; I have the pseudocode example in the KE18 manual implemented, but nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIM-&amp;gt;ADCOPT |= SIM_ADCOPT_ADC0TRGSEL(1) | SIM_ADCOPT_ADC0PRETRGSEL(1);&lt;/P&gt;&lt;P&gt;TRGMUX0-&amp;gt;TRGCFG[TRGMUX_ADC0_INDEX] = TRGMUX_TRGCFG_SEL0(0x07); // use LPIT ch0 for trigger source&lt;/P&gt;&lt;P&gt;&amp;nbsp;ADC0-&amp;gt;SC2 |= ADC_SC2_ADTRG(1);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&amp;nbsp; Unfortunately, the ADC chapter is confusing on the subject of pretriggers and triggers.&amp;nbsp; I'm just trying to get the ADC to trigger at a regular interval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2018 20:05:03 GMT</pubDate>
    <dc:creator>davidsherman</dc:creator>
    <dc:date>2018-10-15T20:05:03Z</dc:date>
    <item>
      <title>KE18 ADC hardware trigger</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KE18-ADC-hardware-trigger/m-p/792655#M48217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't seem to get the ADC to trigger from the LPIT or the FTM using the TRGMUX.&amp;nbsp; The ADC works from software triggers.&amp;nbsp; I can confirm the LPIT is running and it is triggering events, but I can't get the ADC interrupt to happen on any of the channels.&amp;nbsp; I have the pseudocode example in the KE18 manual implemented, but nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIM-&amp;gt;ADCOPT |= SIM_ADCOPT_ADC0TRGSEL(1) | SIM_ADCOPT_ADC0PRETRGSEL(1);&lt;/P&gt;&lt;P&gt;TRGMUX0-&amp;gt;TRGCFG[TRGMUX_ADC0_INDEX] = TRGMUX_TRGCFG_SEL0(0x07); // use LPIT ch0 for trigger source&lt;/P&gt;&lt;P&gt;&amp;nbsp;ADC0-&amp;gt;SC2 |= ADC_SC2_ADTRG(1);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&amp;nbsp; Unfortunately, the ADC chapter is confusing on the subject of pretriggers and triggers.&amp;nbsp; I'm just trying to get the ADC to trigger at a regular interval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2018 20:05:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KE18-ADC-hardware-trigger/m-p/792655#M48217</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2018-10-15T20:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: KE18 ADC hardware trigger</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KE18-ADC-hardware-trigger/m-p/792656#M48218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, David,&lt;/P&gt;&lt;P&gt;I think your above code is correct, can you post your code here so that we can have a review and debug?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 07:23:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KE18-ADC-hardware-trigger/m-p/792656#M48218</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2018-10-16T07:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: KE18 ADC hardware trigger</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KE18-ADC-hardware-trigger/m-p/792657#M48219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found it, I missed the part in the LPIT where it has to be stopped to change the interval.&amp;nbsp; I was modifying something that did software triggers, but part of it calculates the acquisition interval and it stopped the LPIT when it tried to update the interval.&amp;nbsp; Seems to be working now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:43:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KE18-ADC-hardware-trigger/m-p/792657#M48219</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2018-10-16T14:43:59Z</dc:date>
    </item>
  </channel>
</rss>

