<?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のトピックMK64:How can I initialize FTM with max 60MHz</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK64-How-can-I-initialize-FTM-with-max-60MHz/m-p/1671404#M65187</link>
    <description>&lt;P&gt;&lt;EM&gt;Chip:MK64FN1M0VMD12&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The source clock of FTM is&amp;nbsp;kCLOCK_BusClk which is 60Mhz,but in the function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ftm_clock_prescale_t FTM_CalculateCounterClkDiv(FTM_Type *base, uint32_t counterPeriod_Hz, uint32_t srcClock_Hz)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It has two assertation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;assert((srcClock_Hz / 2U) &amp;gt; counterPeriod_Hz);&lt;BR /&gt;assert((srcClock_Hz / 128U / 0xFFFFU) &amp;lt;= counterPeriod_Hz);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does it support 60MHz timer?Or what timer can I use with frequency as high as possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jun 2023 03:27:58 GMT</pubDate>
    <dc:creator>Vinos</dc:creator>
    <dc:date>2023-06-19T03:27:58Z</dc:date>
    <item>
      <title>MK64:How can I initialize FTM with max 60MHz</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK64-How-can-I-initialize-FTM-with-max-60MHz/m-p/1671404#M65187</link>
      <description>&lt;P&gt;&lt;EM&gt;Chip:MK64FN1M0VMD12&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The source clock of FTM is&amp;nbsp;kCLOCK_BusClk which is 60Mhz,but in the function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ftm_clock_prescale_t FTM_CalculateCounterClkDiv(FTM_Type *base, uint32_t counterPeriod_Hz, uint32_t srcClock_Hz)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It has two assertation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;assert((srcClock_Hz / 2U) &amp;gt; counterPeriod_Hz);&lt;BR /&gt;assert((srcClock_Hz / 128U / 0xFFFFU) &amp;lt;= counterPeriod_Hz);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does it support 60MHz timer?Or what timer can I use with frequency as high as possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 03:27:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK64-How-can-I-initialize-FTM-with-max-60MHz/m-p/1671404#M65187</guid>
      <dc:creator>Vinos</dc:creator>
      <dc:date>2023-06-19T03:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: MK64:How can I initialize FTM with max 60MHz</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK64-How-can-I-initialize-FTM-with-max-60MHz/m-p/1672153#M65194</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/215805"&gt;@Vinos&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please look into chapters from your reference manual:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;40.2 FTM signal descriptions&amp;nbsp;Table 40-1&amp;nbsp;FTM signal descriptions&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The external clock input signal is used as the FTM counter clock if selected by CLKS[1:0] bits in the SC register. This clock signal must not exceed 1/4 of system clock frequency.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;40.4.1.1 Counter clock source&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Due to FTM hardware implementation limitations, the frequency of the fixed frequency clock must not exceed 1/2 of the system clock frequency.&lt;/P&gt;
&lt;P&gt;The K64 has a system clock of 120MHz so you should be able to use the fixed frequency clock to get the 60MHz you want. However this values could cause some issues depending on your implementation since it says&lt;STRONG&gt; must not exceed 1/2 of the system clock frequency&lt;/STRONG&gt;, and 60MHz is exactly the half.&lt;/P&gt;
&lt;P&gt;Best Regards, Miguel.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 19:16:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK64-How-can-I-initialize-FTM-with-max-60MHz/m-p/1672153#M65194</guid>
      <dc:creator>Miguel04</dc:creator>
      <dc:date>2023-06-19T19:16:55Z</dc:date>
    </item>
  </channel>
</rss>

