<?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 Software Development Kit中的主题 Re: How to control clock pulse</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-control-clock-pulse/m-p/333033#M143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I can think of to output a specific number of pulses would be to count the times the Channel Value register (&lt;EM&gt;&lt;STRONG&gt;FTMx_CnV&lt;/STRONG&gt;&lt;/EM&gt;) overflows, this counter register provides the pulse width, every time a pulse stops the register overflows and the count is reset to star counting up/down again effectively letting you know a new pulse has started, you just need to know how many times it overflowed to stop the count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2015 13:35:22 GMT</pubDate>
    <dc:creator>apanecatl</dc:creator>
    <dc:date>2015-03-23T13:35:22Z</dc:date>
    <item>
      <title>How to control clock pulse</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-control-clock-pulse/m-p/333032#M142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, all.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use a FRDM-K64F.&lt;/P&gt;&lt;P&gt;I built "ftm_pwm" in KSDK 1.0.0 using Kinetis Design Studio, and I could get clock output from a FRDM-K64F.&lt;/P&gt;&lt;P&gt;As next step, I would like to control output pulse number to control motors.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;When I need ten pulses:&lt;/P&gt;&lt;P&gt;__|"|_|"|_|"|_|"|_|"|_|"|_|"|_|"|_|"|_|"|______________&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I need three pulses:&lt;/P&gt;&lt;P&gt;__|"|_|"|_|"|_______________________________&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need sample codes and documents about this.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone have information, please let me know.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kiyoshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 23:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-control-clock-pulse/m-p/333032#M142</guid>
      <dc:creator>kiyoshimatsuzak</dc:creator>
      <dc:date>2015-03-19T23:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to control clock pulse</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-control-clock-pulse/m-p/333033#M143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I can think of to output a specific number of pulses would be to count the times the Channel Value register (&lt;EM&gt;&lt;STRONG&gt;FTMx_CnV&lt;/STRONG&gt;&lt;/EM&gt;) overflows, this counter register provides the pulse width, every time a pulse stops the register overflows and the count is reset to star counting up/down again effectively letting you know a new pulse has started, you just need to know how many times it overflowed to stop the count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 13:35:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-control-clock-pulse/m-p/333033#M143</guid>
      <dc:creator>apanecatl</dc:creator>
      <dc:date>2015-03-23T13:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to control clock pulse</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-control-clock-pulse/m-p/333034#M144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Pedro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your advice.&lt;/P&gt;&lt;P&gt;I have some questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1.&lt;/P&gt;&lt;P&gt;"every time a pulse stops the register overflows and the count is reset"&lt;/P&gt;&lt;P&gt;Can I get a value of FTMx_CnV using FTM_HAL_GetChnCountVal( ) in "ftm_pwm" demo of KDS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q2.&lt;/P&gt;&lt;P&gt;"the count is reset"&lt;/P&gt;&lt;P&gt;Do you mean that FTMx_CnV become zero when a pulse stopped every time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiyoshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 01:58:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-control-clock-pulse/m-p/333034#M144</guid>
      <dc:creator>kiyoshimatsuzak</dc:creator>
      <dc:date>2015-03-24T01:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to control clock pulse</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-control-clock-pulse/m-p/333035#M145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well you need to check the reference manual in greater detail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1: Can I get a value of FTMx_CnV using FTM_HAL_GetChnCountVal( ) in "ftm_pwm" demo of KDS?&lt;/P&gt;&lt;P&gt;A: You can get the channel vale at any time, the register has no read restrictions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q2: Do you mean that FTMx_CnV become zero when a pulse stopped every time?&lt;/P&gt;&lt;P&gt;A: The channel value resets (reaches 0 or the maximum count value) whenever the counter overflows after reaching its maximum count value, since the counter max value defines the pulse's duty cycle,&amp;nbsp; knowing when the value resets lets you know when a pulse has been sent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 20:06:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-control-clock-pulse/m-p/333035#M145</guid>
      <dc:creator>apanecatl</dc:creator>
      <dc:date>2015-03-24T20:06:48Z</dc:date>
    </item>
  </channel>
</rss>

