<?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 Re: QDEC/FTM QDEC Maximum Expected Count/Decode Speed? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664538#M40835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the NXP rep pointed out, your KV part should have an ENC module,which is not only 32 bit but ALSO has a 16-bit 'distance moved since last read' register....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Mar 2017 01:48:58 GMT</pubDate>
    <dc:creator>egoodii</dc:creator>
    <dc:date>2017-03-22T01:48:58Z</dc:date>
    <item>
      <title>QDEC/FTM QDEC Maximum Expected Count/Decode Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664530#M40827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems clear enough that the maximum count frequency for the KV4x series directly relates to the Peripheral Bus Clock&amp;nbsp;rate (for Example 100MHz). &amp;nbsp;Can I really expect anything at all near 100MHz, or should I derate for some reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I wasn't able to find any relative method of estimating the maximum count frequency for a FTM based Quadrature Decoder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume it has something to do with the chosen clock. &amp;nbsp;but perhaps it takes several "clock cycles" to sample/debounce/filter the incoming signal. &amp;nbsp;Is there a good FTM "derating" that I should apply? &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Mar 2017 20:33:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664530#M40827</guid>
      <dc:creator>eljeffo</dc:creator>
      <dc:date>2017-03-18T20:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: QDEC/FTM QDEC Maximum Expected Count/Decode Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664531#M40828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know why this kind of detail is not 'obvious' somewhere in product data.&amp;nbsp; I have come to the 'general conclusion' that the minimum time between incoming edges is the 1.5 bus-clock 'minimum detection interval for GPIO events' from the datasheet, as a process to come in to the internal bus-clock-domain synchronizers.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/304806"&gt;QEI inputs, and index capture&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My need was to pick up quadrature from two RS422 links, so 'technically' limited to 10MHz each (40Medges/s), which I can 'just guarantee' from a 60MHz bus-clock.&amp;nbsp; I work in the K22 domain, so your KV bus-clock-limits may be higher, as I can't tell either if said synchronizers for timer-input-controls would run from Bus Clock or Fast Peripheral Clock (as for FTM itself).&amp;nbsp; The datasheet still says for timer I/O to 'refer to general I/O characteristics', which do mention the 1.5 bus-clock synchronous requirement.&amp;nbsp; It seems hard to believe you'd be limited to 16.66Medges/s (max 25MHz bus clock) for this 'advanced controller'...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Mar 2017 00:42:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664531#M40828</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-03-19T00:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: QDEC/FTM QDEC Maximum Expected Count/Decode Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664532#M40829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jeff,&lt;/P&gt;&lt;P&gt;Regarding the quadrature module input signal frequency, for the quadrature part of FTM module of KV4x, the FTM external driving clock frequency must not exceed 1/4 of system clock frequency, for KV4x, the system clock frequency is 150MHz, so the FTM driving clock frequency must be less than 150MHz/4=37.5Mhz. For the quadrature input signal PhaseA/PhaseB, the FTM has to count the rising/falling edges of both signal, so the PhaseA or PhaseB signal frequency should be less than 37.5Mhz/4=9.375MHz. Regarding the ENC module, I think we should follow up the same rule.&lt;/P&gt;&lt;P&gt;Assume that the motor is run in 10000rpm, and the motor polar pair is 1, the phaseA/phaseB output 2048 edges per revolution, the phaseA signal frequency is 10000*2048/(2*60)=170KHz, so i think it is okay that the phaseA/phaseB signal frequency can not exceed 10MHz.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 06:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664532#M40829</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-03-20T06:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: QDEC/FTM QDEC Maximum Expected Count/Decode Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664533#M40830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NXP should be aware that there are other sources of quadrature position information beyond simple motor-shaft-rotary.&amp;nbsp; Here is a datasheet-screenshot for a linear-position-encoder, which resolves 0.1um information over 30mm (other models are longer).&amp;nbsp; The stated 80m/min potential slew-rate implies an edge rate (at 10million-steps/m) of 13.33M/s --- and the extended info indicates a minimum 50ns between quadrature events.&amp;nbsp; So quadrature-decode-speed is NOT a 'moot point'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18406iC0FB1C18DAC7B976/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18448i0CCA7FD80463ECD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The other serious trouble I have using these things on Kinetis is the limited 16bit counters in FTM, even though these are inherently 32-bit processors.&amp;nbsp; A 100mm probe at 10million/m comes to 1 million steps, or about 20bits needed.&amp;nbsp; I use the 'overflow' to extend the count, BUT have a 'serious limitation' in that the overflow interrupt doesn't differentiate which DIRECTION of overflow, or buffer multiple events should the encoder quickly jitter right at the overflow point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned in the discussion linked above, I DID manage to get the 'reference point' signal from these devices to cleanly trigger encoder-count-capture thru the 'comparator input' option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 13:12:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664533#M40830</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-03-20T13:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: QDEC/FTM QDEC Maximum Expected Count/Decode Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664534#M40831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/xiangjunrong"&gt;xiangjunrong&lt;/A&gt;‌ Thanks for the insightful answer. &amp;nbsp;Much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/egoodii"&gt;egoodii&lt;/A&gt; it would be wonderful to have a 32 bit counter on a 32bit CPU :smileyhappy:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, it is definitely a challenge if the encoder goes back/forth over the overflow point unless there is "ample time"/CPU cycles to continually monitor such changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 18:06:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664534#M40831</guid>
      <dc:creator>eljeffo</dc:creator>
      <dc:date>2017-03-20T18:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: QDEC/FTM QDEC Maximum Expected Count/Decode Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664535#M40832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put overflow as the 'only, at highest possible, never-masked' interrupt and 'hope for the best'!&amp;nbsp; I read 'direction' in there, and try to confirm with the current count 'near top' or 'near bottom'.&amp;nbsp; Still seems like 'microsecond sized' holes exist in that logic...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 20:25:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664535#M40832</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-03-20T20:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: QDEC/FTM QDEC Maximum Expected Count/Decode Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664536#M40833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Earl,&lt;/P&gt;&lt;P&gt;I agree with you that there are application which require more higher frequency encoder signals. For 32 bits counter, i think you can use ENC module, it's position counter is 32 bits instead of 16 bits.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 02:26:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664536#M40833</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-03-21T02:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: QDEC/FTM QDEC Maximum Expected Count/Decode Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664537#M40834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I discover which family members have this ENC module?&amp;nbsp; It doesn't seem to be a selection-option in the 'MCU selector'...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 19:49:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664537#M40834</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-03-21T19:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: QDEC/FTM QDEC Maximum Expected Count/Decode Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664538#M40835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the NXP rep pointed out, your KV part should have an ENC module,which is not only 32 bit but ALSO has a 16-bit 'distance moved since last read' register....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 01:48:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664538#M40835</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-03-22T01:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: QDEC/FTM QDEC Maximum Expected Count/Decode Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664539#M40836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, looks like only the higher level KV parts have it. &amp;nbsp;"Interestingly" enough, the 32 bit counter is split up as 2 16-bit&amp;nbsp;registers that need to be read separately. &amp;nbsp;Must be something going on with 16 bit counter reuse.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 02:33:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664539#M40836</guid>
      <dc:creator>eljeffo</dc:creator>
      <dc:date>2017-03-22T02:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: QDEC/FTM QDEC Maximum Expected Count/Decode Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664540#M40837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jeff and Earl,&lt;/P&gt;&lt;P&gt;The KV4x and KV5x in&amp;nbsp; KV family and MC56F84xxx in DSC family have ENC module, which&amp;nbsp; focus on motor control.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 02:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/QDEC-FTM-QDEC-Maximum-Expected-Count-Decode-Speed/m-p/664540#M40837</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-03-22T02:40:56Z</dc:date>
    </item>
  </channel>
</rss>

