<?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 Re: How to use FTM to trigger DMA request using FRDM K64? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-FTM-to-trigger-DMA-request-using-FRDM-K64/m-p/620738#M37142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Olivia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the FTM module for both K60 and K64 is the same, so the FTM code in above function is right, you have to check the other code.&lt;/P&gt;&lt;P&gt;Hope it can help you&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>Mon, 13 Feb 2017 06:45:49 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2017-02-13T06:45:49Z</dc:date>
    <item>
      <title>How to use FTM to trigger DMA request using FRDM K64?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-FTM-to-trigger-DMA-request-using-FRDM-K64/m-p/620737#M37141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading audio files from SD card in &amp;nbsp;k60&amp;nbsp;and putting it to the DAC out . From there i gave it to the G510 GSM audio pins and i hear the audio while making a call to the G510. It is successfully working .But now I need to make the same code using FRDM K64. and the code is not working . I think the issue is with FTM which generate signal to trigger DMA request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my FTM code . It is working for K60. what changes should I make so that it works with FRDM K64.&lt;/P&gt;&lt;P&gt;bus clock is 50mhz for k60 and 60 mhz for frdm k64&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void Init_FTM2(void)&lt;BR /&gt;{&lt;BR /&gt; SIM_SCGC3 |= SIM_SCGC3_FTM2_MASK; // enable clock to FTM2&lt;BR /&gt; SIM_SCGC5 |= SIM_SCGC5_PORTB_MASK; // enable clock to PORTB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FTM2_C1SC |= FTM_CnSC_MSB_MASK | FTM_CnSC_ELSB_MASK | FTM_CnSC_CHIE_MASK | FTM_CnSC_DMA_MASK ; // PWM, true high pulses - generates DMA req&lt;BR /&gt; FTM2_MOD = (uint_32)((uint_32)BSP_BUS_CLOCK/(SAMPLERATE)); // 50MHz / 16000 = 3125.&lt;BR /&gt; FTM2_C0V = 1100; // any initial random value&lt;BR /&gt; FTM2_C1V = 50; // this value does NOT change -it is used to generate audio reload DMA request&lt;BR /&gt; // this starts the timer&lt;BR /&gt; FTM2_SC |= FTM_SC_CLKS(0x01) | FTM_SC_PS(0x00) ; // Bus Clock, divide-by-1&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Olivia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 11:51:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-FTM-to-trigger-DMA-request-using-FRDM-K64/m-p/620737#M37141</guid>
      <dc:creator>oliviachristyva</dc:creator>
      <dc:date>2017-02-10T11:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use FTM to trigger DMA request using FRDM K64?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-FTM-to-trigger-DMA-request-using-FRDM-K64/m-p/620738#M37142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Olivia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the FTM module for both K60 and K64 is the same, so the FTM code in above function is right, you have to check the other code.&lt;/P&gt;&lt;P&gt;Hope it can help you&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>Mon, 13 Feb 2017 06:45:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-FTM-to-trigger-DMA-request-using-FRDM-K64/m-p/620738#M37142</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-02-13T06:45:49Z</dc:date>
    </item>
  </channel>
</rss>

