<?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 Output compare mode setup using Flex timer module in KDS 1.2.0 ok to use? in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Output-compare-mode-setup-using-Flex-timer-module-in-KDS-1-2-0/m-p/420138#M2136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have noticed in the reference manual for KDS1.2.0 page 559 it says:&lt;/P&gt;&lt;P&gt;The current Kinetis SDK driver only supports the generation of PWM signals. The input capture&lt;/P&gt;&lt;P&gt;and output compare will be supported in upcoming Kinetis SDK releases.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in fsl_ftm_driver.c theres a function: FTM_DRV_SetupChnOutputCompare() &lt;/P&gt;&lt;P&gt;so that would indicate the functionality exists already. But there is no example code&lt;/P&gt;&lt;P&gt;to demonstrate output compare mode and Processor Expert doesn't allow me to &lt;/P&gt;&lt;P&gt;select Output Compare mode in the ftm driver component.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output compare mode is necessary for driving motors etc so its an important feature&lt;/P&gt;&lt;P&gt;of many embedded microcontrollers.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone confirm FTM_DRV_SetupChnOutputCompare() does work ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 14:23:30 GMT</pubDate>
    <dc:creator>chadwilliams</dc:creator>
    <dc:date>2015-06-22T14:23:30Z</dc:date>
    <item>
      <title>Output compare mode setup using Flex timer module in KDS 1.2.0 ok to use?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Output-compare-mode-setup-using-Flex-timer-module-in-KDS-1-2-0/m-p/420138#M2136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have noticed in the reference manual for KDS1.2.0 page 559 it says:&lt;/P&gt;&lt;P&gt;The current Kinetis SDK driver only supports the generation of PWM signals. The input capture&lt;/P&gt;&lt;P&gt;and output compare will be supported in upcoming Kinetis SDK releases.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in fsl_ftm_driver.c theres a function: FTM_DRV_SetupChnOutputCompare() &lt;/P&gt;&lt;P&gt;so that would indicate the functionality exists already. But there is no example code&lt;/P&gt;&lt;P&gt;to demonstrate output compare mode and Processor Expert doesn't allow me to &lt;/P&gt;&lt;P&gt;select Output Compare mode in the ftm driver component.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output compare mode is necessary for driving motors etc so its an important feature&lt;/P&gt;&lt;P&gt;of many embedded microcontrollers.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone confirm FTM_DRV_SetupChnOutputCompare() does work ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 14:23:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Output-compare-mode-setup-using-Flex-timer-module-in-KDS-1-2-0/m-p/420138#M2136</guid>
      <dc:creator>chadwilliams</dc:creator>
      <dc:date>2015-06-22T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Output compare mode setup using Flex timer module in KDS 1.2.0 ok to use?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Output-compare-mode-setup-using-Flex-timer-module-in-KDS-1-2-0/m-p/420139#M2137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the output compare mode is not yet fully implemented, only the PWM modes (Edge Aligned / Center Aligned / Combined).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However you can use that API you mention in the meantime. It lets you set a channel in output compare mode with a determined compare value and channel output mode (set on match, clear on match, toggle on match). Use the API &lt;STRONG&gt;FTM_DRV_Set_Clock()&lt;/STRONG&gt; to change the counting frequency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You still need to call the function &lt;STRONG&gt;FTM_DRV_Init()&lt;/STRONG&gt; and &lt;STRONG&gt;FTM_DRV_Set_Clock()&lt;/STRONG&gt; before calling the OutputCompare API, processor expert does it for you if you select "&lt;EM&gt;Auto initialization&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 00:32:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Output-compare-mode-setup-using-Flex-timer-module-in-KDS-1-2-0/m-p/420139#M2137</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-06-30T00:32:31Z</dc:date>
    </item>
  </channel>
</rss>

