<?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: FRDM-K64F FTM_CH5 output as PWM using KDS_3.2+KSDK_v2 in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-FTM-CH5-output-as-PWM-using-KDS-3-2-KSDK-v2/m-p/511107#M5248</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;&lt;/P&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;As you suggested, I have used another GPIO. &lt;/P&gt;&lt;P&gt;And, as the GPIO PTD5 is used for the SPI in my design,&lt;/P&gt;&lt;P&gt;I have used PTA2 (FTM0_CH7) and it works fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Nadine,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2016 09:45:51 GMT</pubDate>
    <dc:creator>nadine</dc:creator>
    <dc:date>2016-05-10T09:45:51Z</dc:date>
    <item>
      <title>FRDM-K64F FTM_CH5 output as PWM using KDS_3.2+KSDK_v2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-FTM-CH5-output-as-PWM-using-KDS-3-2-KSDK-v2/m-p/511105#M5246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I wrote a program using the FTM timer to configure a PWM clock and associate it &lt;/P&gt;&lt;P&gt;to a specific GPIO.&lt;/P&gt;&lt;P&gt;As described in the Reference Manual (section K64 Signal Multiplexing an PIn Assignments),&lt;/P&gt;&lt;P&gt;I used the GPIO PTA0&amp;nbsp; multipexed and set to FMT0_CH5 (ALT3).&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program is quite simple and linked to this message (main.c)&lt;/P&gt;&lt;P&gt;In the interrupt function, I made the red led blink. It looks ok, but if I plugged&lt;/P&gt;&lt;P&gt;an oscilloscope to the PTA0 pin, I have no signal output generated.&lt;/P&gt;&lt;P&gt;I probably made something wrong ... &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support again&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Nadine&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338934"&gt;main.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 09:20:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-FTM-CH5-output-as-PWM-using-KDS-3-2-KSDK-v2/m-p/511105#M5246</guid>
      <dc:creator>nadine</dc:creator>
      <dc:date>2016-05-09T09:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F FTM_CH5 output as PWM using KDS_3.2+KSDK_v2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-FTM-CH5-output-as-PWM-using-KDS-3-2-KSDK-v2/m-p/511106#M5247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nadine,&lt;/P&gt;&lt;P&gt;I branched this post since one question had been answered correctly.&lt;/P&gt;&lt;P&gt;Attached is your main.c updated to work with KDS_3.2 (Note I think you are using KDS3.0 so please update if you can) + KSDK_v2 for FRDM-K64F.&lt;/P&gt;&lt;P&gt;I have one #define to change the output from PTA0 to PTD5 so that I could debug the code.&amp;nbsp; PTA0 used for debugger interface.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define OUTPUT_PIN 0&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;//DES 1=PTD5 (can debug), 0=PTA0 (loose debugger interface)....read notes above main().&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please review my comments by looking for "//DES" comments.&lt;/P&gt;&lt;P&gt;I think the primary issue was setting duty cycle to 100.&amp;nbsp; I made following change:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ftmParam[0].dutyCyclePercent = 50U;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;//DES was 100U;&amp;nbsp; 100% duty cycle means output will not change.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 16:23:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-FTM-CH5-output-as-PWM-using-KDS-3-2-KSDK-v2/m-p/511106#M5247</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-05-09T16:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F FTM_CH5 output as PWM using KDS_3.2+KSDK_v2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-FTM-CH5-output-as-PWM-using-KDS-3-2-KSDK-v2/m-p/511107#M5248</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;&lt;/P&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;As you suggested, I have used another GPIO. &lt;/P&gt;&lt;P&gt;And, as the GPIO PTD5 is used for the SPI in my design,&lt;/P&gt;&lt;P&gt;I have used PTA2 (FTM0_CH7) and it works fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Nadine,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 09:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-FTM-CH5-output-as-PWM-using-KDS-3-2-KSDK-v2/m-p/511107#M5248</guid>
      <dc:creator>nadine</dc:creator>
      <dc:date>2016-05-10T09:45:51Z</dc:date>
    </item>
  </channel>
</rss>

