<?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 problem with k12d ucontroller</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ftm-problem-with-k12d-ucontroller/m-p/485919#M29844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you :smileywink:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2016 07:56:20 GMT</pubDate>
    <dc:creator>matteocivale</dc:creator>
    <dc:date>2016-04-12T07:56:20Z</dc:date>
    <item>
      <title>Ftm problem with k12d ucontroller</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ftm-problem-with-k12d-ucontroller/m-p/485916#M29841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to everyone,&lt;/P&gt;&lt;P&gt;i have a strange problem with a kinetis k12d microcontrollers,&amp;nbsp; i'm&amp;nbsp; trying to configure&amp;nbsp;&amp;nbsp; FTM0 peripherals with a desiderate frequency of 1kHz, to check correct frequency settings&amp;nbsp; i toggle a pin in the FTM0 interrupt function and see it with oscilloscope. the result is a wrong frequency of 135 kHz, this may be due to wrong settings of MOD and PRESCALER register&amp;nbsp; but i noted that if i change them the frequency result don't change&amp;nbsp; the output frequency looks like indipendent of MOD and PRESCALER settings. I set the FTM0 as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SCGC6|=SIM_SCGC6_FTM0_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FTM0_CNTIN = FTM_CNTIN_INIT(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; FTM0_MOD= 10000 - 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FTM0_SC|= FTM_SC_TOIE_MASK | FTM_SC_CLKS(1)|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FTM_SC_PS(0) | FTM_SC_TOIE_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set the bus frequency to 25 Mhz&lt;/P&gt;&lt;P&gt;have someone some idea about the problem ?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 13:52:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ftm-problem-with-k12d-ucontroller/m-p/485916#M29841</guid>
      <dc:creator>matteocivale</dc:creator>
      <dc:date>2016-03-17T13:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ftm problem with k12d ucontroller</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ftm-problem-with-k12d-ucontroller/m-p/485917#M29842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forget&amp;nbsp; an&amp;nbsp; imporatant things, to test that the bus freqency is correct, i try to set the pin tooggle at 1 khz by setting the PIT frequency and it work ok.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 16:07:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ftm-problem-with-k12d-ucontroller/m-p/485917#M29842</guid>
      <dc:creator>matteocivale</dc:creator>
      <dc:date>2016-03-17T16:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ftm problem with k12d ucontroller</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ftm-problem-with-k12d-ucontroller/m-p/485918#M29843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matteo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what other things you are doing during your project, but it seems rare that any change on MOD register does not impact the timing period for the pin that you are toggling, however, I was able to create a basic project for FRDM-K20D50M which uses a MK20D50 MCU which is compatible with MK12DX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching this basic project (maybe it serves you as guidance) and also I am adding an image that shows a 1-kHz toggling frequency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FTM Output.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23430i41DE99E5444F4241/image-size/large?v=v2&amp;amp;px=999" role="button" title="FTM Output.jpg" alt="FTM Output.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 23:33:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ftm-problem-with-k12d-ucontroller/m-p/485918#M29843</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-03-18T23:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ftm problem with k12d ucontroller</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ftm-problem-with-k12d-ucontroller/m-p/485919#M29844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you :smileywink:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 07:56:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ftm-problem-with-k12d-ucontroller/m-p/485919#M29844</guid>
      <dc:creator>matteocivale</dc:creator>
      <dc:date>2016-04-12T07:56:20Z</dc:date>
    </item>
  </channel>
</rss>

