<?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: FTM changing FTMx_CxV</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-changing-FTMx-CxV/m-p/444086#M26157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Wojciech Serek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to stop the timer to change the FTMx_CnV value. Please be sure that you write to this register the counts needed until the channel match and not the duty cycle of the PWM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next snapshot is from the K64 reference manual when you can see how the PWM period and the duty cycle is computed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31126i26B57BA3092981A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps. I remain at your service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl Orlando Ramírez-Sánchez.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2015 16:12:08 GMT</pubDate>
    <dc:creator>EarlOrlando</dc:creator>
    <dc:date>2015-05-20T16:12:08Z</dc:date>
    <item>
      <title>FTM changing FTMx_CxV</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-changing-FTMx-CxV/m-p/444085#M26156</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'm using FTM3 on channel 0 to generate PWM signal. Processor expert was use to setup the timer. It works ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to change FTM3_C0V register in my app. Changing value of this register does not change the puls width.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that such action works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14320257572148056 jive_macro_code jive_text_macro" data-renderedposition="176_8_1232_64" jivemacro_uid="_14320257572148056" modifiedtitle="true"&gt;FTM3_SC &amp;amp;= ~(1&amp;lt;&amp;lt;3);
FTM3_C0V = value
FTM3_SC |= (1&amp;lt;&amp;lt;3);

&lt;/PRE&gt;&lt;P&gt;Do I really need to stop the timer to chanche C0V value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 09:00:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-changing-FTMx-CxV/m-p/444085#M26156</guid>
      <dc:creator>wojtek_84</dc:creator>
      <dc:date>2015-05-19T09:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: FTM changing FTMx_CxV</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-changing-FTMx-CxV/m-p/444086#M26157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Wojciech Serek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to stop the timer to change the FTMx_CnV value. Please be sure that you write to this register the counts needed until the channel match and not the duty cycle of the PWM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next snapshot is from the K64 reference manual when you can see how the PWM period and the duty cycle is computed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31126i26B57BA3092981A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps. I remain at your service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl Orlando Ramírez-Sánchez.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 16:12:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-changing-FTMx-CxV/m-p/444086#M26157</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-05-20T16:12:08Z</dc:date>
    </item>
  </channel>
</rss>

