<?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のトピックRe: K22F not triggering DMA on FTM input capture</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-not-triggering-DMA-on-FTM-input-capture/m-p/1018740#M56229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I figured it out - both the DMA and CHIE bits have to be set.&amp;nbsp; Looks like I made a mistake at some point when migrating off of the old PEx PDD to KSDK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Dec 2019 03:04:54 GMT</pubDate>
    <dc:creator>scottm</dc:creator>
    <dc:date>2019-12-25T03:04:54Z</dc:date>
    <item>
      <title>K22F not triggering DMA on FTM input capture</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-not-triggering-DMA-on-FTM-input-capture/m-p/1018739#M56228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seem to be having one of those days where simple things just aren't working, for no apparent reason.&amp;nbsp; I'm hoping someone will be able to catch what I'm missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This part of my project&amp;nbsp;&lt;EM&gt;was&lt;/EM&gt; working.&amp;nbsp; Version control is a little wonky and for reasons beyond the scope of this post it's going to be hard to roll back to the last known good version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using an MK22FN1M0AVLH12.&amp;nbsp; I've got FTM0 channel 2 set up for input capture on pin 46, with FTM0-C2SC:DMA set.&amp;nbsp; DMA is set up to transfer the channel value register to a buffer on each channel event.&amp;nbsp; It used to work, and now it doesn't.&amp;nbsp; If I disable the signal source and clear the channel flag, the channel flag stays cleared until I hook up the signal source again.&amp;nbsp; That tells me that the pin mux setup is right and the input capture is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the START bit on the DMA channel (TCD6), it'll complete a transfer with the right source and destination, so that part works.&amp;nbsp; It's just that the FTM channel never triggers DMA on its own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DMAMUX channel 6 is set to source 22, which is FTM0 CH2.&amp;nbsp; TRIG is 0 (no PIT trigger), ENBL is 1.&amp;nbsp; DMA-ES shows no errors,&amp;nbsp; DMA-ERQ:ERQ6 is set.&amp;nbsp; HALT is 0 and other DMA transfers are working.&amp;nbsp; DCHPRI6 is 6, and all DMA priorities are set uniquely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What the heck am I missing here?&amp;nbsp; The channel flag (FMT0-C2SC:CHF) is set and FTM0-C2SC:DMA is set, so that&amp;nbsp;&lt;EM&gt;should&lt;/EM&gt; be generating a trigger on DMA source 22, right?&amp;nbsp;&amp;nbsp;It ought to pass through DMAMUX and trigger the DMA channel, but it doesn't.&amp;nbsp; The other DMAs are functioning normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Dec 2019 01:33:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-not-triggering-DMA-on-FTM-input-capture/m-p/1018739#M56228</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2019-12-25T01:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: K22F not triggering DMA on FTM input capture</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-not-triggering-DMA-on-FTM-input-capture/m-p/1018740#M56229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I figured it out - both the DMA and CHIE bits have to be set.&amp;nbsp; Looks like I made a mistake at some point when migrating off of the old PEx PDD to KSDK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Dec 2019 03:04:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-not-triggering-DMA-on-FTM-input-capture/m-p/1018740#M56229</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2019-12-25T03:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: K22F not triggering DMA on FTM input capture</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-not-triggering-DMA-on-FTM-input-capture/m-p/1018741#M56230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FTM Channel Interruption must be also enabled, i.e. FTMx_CnSC CHIE = 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Dec 2019 03:53:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-not-triggering-DMA-on-FTM-input-capture/m-p/1018741#M56230</guid>
      <dc:creator>jianfengzheng</dc:creator>
      <dc:date>2019-12-25T03:53:36Z</dc:date>
    </item>
  </channel>
</rss>

