<?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 Can I make a 32-bit counter from FTM? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-I-make-a-32-bit-counter-from-FTM/m-p/388062#M20981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'm using MK60DN512VLQ10 with MQX 4.1 on a custom PCB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I have FTM0 configured as a free-running counter from FTM_CLKIN1.&amp;nbsp; I'm driving this with an external 100kHz clock.&lt;/P&gt;&lt;P&gt;However I'd like to have a 32-bit counter, preferably without software intervention, ie interrupts, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I could use FTM1 with prescaler = 65536, but the prescaler doesn't go that high.&amp;nbsp; It only goes to 128.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I chain two FTMs together to create a 32-bit counter?&amp;nbsp; The clock source of a given FTM doesn't appear to allow the MSB of a different FTM.&lt;/P&gt;&lt;P&gt;I also have the 100kHz clock going to FTM0_CH4 input, but I'm not using that for anything now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2014 23:23:18 GMT</pubDate>
    <dc:creator>michaelschwager</dc:creator>
    <dc:date>2014-11-07T23:23:18Z</dc:date>
    <item>
      <title>Can I make a 32-bit counter from FTM?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-I-make-a-32-bit-counter-from-FTM/m-p/388062#M20981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'm using MK60DN512VLQ10 with MQX 4.1 on a custom PCB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I have FTM0 configured as a free-running counter from FTM_CLKIN1.&amp;nbsp; I'm driving this with an external 100kHz clock.&lt;/P&gt;&lt;P&gt;However I'd like to have a 32-bit counter, preferably without software intervention, ie interrupts, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I could use FTM1 with prescaler = 65536, but the prescaler doesn't go that high.&amp;nbsp; It only goes to 128.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I chain two FTMs together to create a 32-bit counter?&amp;nbsp; The clock source of a given FTM doesn't appear to allow the MSB of a different FTM.&lt;/P&gt;&lt;P&gt;I also have the 100kHz clock going to FTM0_CH4 input, but I'm not using that for anything now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 23:23:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-I-make-a-32-bit-counter-from-FTM/m-p/388062#M20981</guid>
      <dc:creator>michaelschwager</dc:creator>
      <dc:date>2014-11-07T23:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a 32-bit counter from FTM?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-I-make-a-32-bit-counter-from-FTM/m-p/388063#M20982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, Kinetis Flextimer doesn't support chained timer.&lt;/P&gt;&lt;P&gt;So, customer can not chain two Flextimer as a 32-bit counter.&lt;/P&gt;&lt;P&gt;Customer can consider to use PIT, which is a 32-bit timer and also could support chained timer for 64-bit timer.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;BR /&gt;best regards &lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 08:04:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-I-make-a-32-bit-counter-from-FTM/m-p/388063#M20982</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-11-11T08:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a 32-bit counter from FTM?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-I-make-a-32-bit-counter-from-FTM/m-p/388064#M20983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this is what I discovered.&lt;/P&gt;&lt;P&gt;I put an interrupt every time overflow flag (TOF) goes high, then increment my variable by 0x10000;&lt;/P&gt;&lt;P&gt;I need this to connect to an external clock from an FPGA (I’m synchronizing multiple boards to a global 100kHz clock), so I cannot use PIT, which states “The PIT module has no external pins”.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 19:57:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-I-make-a-32-bit-counter-from-FTM/m-p/388064#M20983</guid>
      <dc:creator>michaelschwager</dc:creator>
      <dc:date>2014-11-11T19:57:09Z</dc:date>
    </item>
  </channel>
</rss>

