<?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: enable DMA transfers in input capture mode FTM</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/enable-DMA-transfers-in-input-capture-mode-FTM/m-p/238471#M5660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply :smileyhappy: The document is very useful, but I am a little bit confused about how to initialize it properly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if I am able to only use one register to transfer (counting) the number of overflows, which my free running FTM counter has exceeded. Instead of manually counting it by overflow interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the only thing I want to use DMA for, but do it has to be that complicated to set up as it describes in the document you posted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2013 06:37:10 GMT</pubDate>
    <dc:creator>kenrenjen</dc:creator>
    <dc:date>2013-09-18T06:37:10Z</dc:date>
    <item>
      <title>enable DMA transfers in input capture mode FTM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/enable-DMA-transfers-in-input-capture-mode-FTM/m-p/238469#M5658</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;I have enabled DMA transfer for flextimer. How does it exactly works? how do I read/write data from the registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find any documents which describes this technology well and I need some examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone can help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13794190278075818" jivemacro_uid="_13794190278075818" modifiedtitle="true"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Initialisation of capture&lt;/P&gt;
&lt;P&gt;void ftm_init(void)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; POWER_UP(6, SIM_SCGC6_FTM0); // Enable clock &lt;/P&gt;
&lt;P&gt;&amp;nbsp; PORTC_PCR1 = PORT_MUX_ALT4; // Multiplexer (MUX) for flextimer (FTM) initialized to port FTM0 and channel 0&amp;nbsp; (route the desired signal to the pin)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FTM0_MODE = (FTM_MODE_WPDIS | FTM_MODE_FTMEN); // Disable write protection&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FTM0_CONF = FTM_CONF_BDMMODE_3; // FTM_DEBUG_BEHAVIOUR: Allow timer to continue operating when debugging&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FTM0_CNTIN = 0x0000; // Counter initial value&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FTM0_MOD = 0xFFFF; // Modulo to max&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FTM0_C0SC = (FTM_CSC_ELSA | FTM_CSC_CHIE | FTM_CSC_DMA); // Capture set to rising edge (ELSB:ELSA = 0:1) and enable channel interrupt &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FTM0_SC = (FTM_SC_CLKS_SYS | FTM_SC_PS_1 | FTM_SC_TOIE); // Sets the source to system clock and define the prescalar. Timer overflow interrupt enabled (1)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; fnEnterInterrupt(irq_FTM0_ID, PRIORITY_HW_TIMER, ftm0_isr); //Configure and enter the ftm0 handling interrupt routine in the vector table &lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 11:58:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/enable-DMA-transfers-in-input-capture-mode-FTM/m-p/238469#M5658</guid>
      <dc:creator>kenrenjen</dc:creator>
      <dc:date>2013-09-17T11:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: enable DMA transfers in input capture mode FTM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/enable-DMA-transfers-in-input-capture-mode-FTM/m-p/238470#M5659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kenneth&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The attached file will be helpful for you. Good luck with you.&lt;/P&gt;&lt;P&gt;I'm look forward for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 01:47:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/enable-DMA-transfers-in-input-capture-mode-FTM/m-p/238470#M5659</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2013-09-18T01:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: enable DMA transfers in input capture mode FTM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/enable-DMA-transfers-in-input-capture-mode-FTM/m-p/238471#M5660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply :smileyhappy: The document is very useful, but I am a little bit confused about how to initialize it properly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if I am able to only use one register to transfer (counting) the number of overflows, which my free running FTM counter has exceeded. Instead of manually counting it by overflow interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the only thing I want to use DMA for, but do it has to be that complicated to set up as it describes in the document you posted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 06:37:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/enable-DMA-transfers-in-input-capture-mode-FTM/m-p/238471#M5660</guid>
      <dc:creator>kenrenjen</dc:creator>
      <dc:date>2013-09-18T06:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: enable DMA transfers in input capture mode FTM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/enable-DMA-transfers-in-input-capture-mode-FTM/m-p/238472#M5661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kenneth,&lt;/P&gt;&lt;P&gt;I‘m glad to hear that the AN4693 is helpful for you. Have you figured out how to use DMA transfer the capture value by FTM module?&lt;/P&gt;&lt;P&gt;If you still don't have any ideas about that, Maybe the samle code will give you a hint. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Sep 2013 05:57:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/enable-DMA-transfers-in-input-capture-mode-FTM/m-p/238472#M5661</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2013-09-22T05:57:08Z</dc:date>
    </item>
  </channel>
</rss>

