<?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: KV58F FTM1 used to count encoder in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692196#M42644</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;&lt;/P&gt;&lt;P&gt;Yes. I saw it on manual.&lt;/P&gt;&lt;P&gt;When you check the page 1216 for quad mode, there is no pre-scale, looks by-passed.&lt;/P&gt;&lt;P&gt;In the sample code, it is set to pre-scale=32 that is not right either. In sample, the filter value is set to 16. It should be wrong as well because range is 0~~15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to confirm if it is done in this way on purpose because I used MC56F8367, FTM QUAD is not related to pre-scale...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2017 13:18:32 GMT</pubDate>
    <dc:creator>a8Chcx</dc:creator>
    <dc:date>2017-08-03T13:18:32Z</dc:date>
    <item>
      <title>KV58F FTM1 used to count encoder</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692191#M42639</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 am running the FTM_quad_decoder sample project and turning encoder in the same speed.&lt;/P&gt;&lt;P&gt;If choose pre-scale=128, counts is about 243.&lt;/P&gt;&lt;P&gt;if choose pre-scale=64, counts is about 483&lt;/P&gt;&lt;P&gt;....and so on...&lt;/P&gt;&lt;P&gt;Can anybody tell me where the problem is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 20:23:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692191#M42639</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2017-08-02T20:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: KV58F FTM1 used to count encoder</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692192#M42640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're not giving us anything to go on, so I can only guess that you are NOT getting 'quadrature mode' on this FTM, but rather using one phase as some form of FTM1_CLKIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 01:10:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692192#M42640</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-08-03T01:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: KV58F FTM1 used to count encoder</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692193#M42641</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;&lt;/P&gt;&lt;P&gt;I just use the FTM_quad_sample for TWR-KV58F, and connect the encoder PHa and PHb on PE20&amp;amp;PE21.&lt;/P&gt;&lt;P&gt;I got the encoder counts. The question is why the counts are changing based on pre-scale? It should not be related to pre-scale, right? Or it is related to pre-scale and how to set pre-scale?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 11:55:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692193#M42641</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2017-08-03T11:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: KV58F FTM1 used to count encoder</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692194#M42642</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;&lt;/P&gt;&lt;P&gt;I tested with the encoder with 6K frequency, I can get the counts around 24000/s if I use pre-scale=1.&lt;/P&gt;&lt;P&gt;I can get counts around 750/s if I use pre-scale=32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the encoder on TWR-KV58F, I can get the counts is around 24000/s. There is no pre-scale on encoder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to know why FTM_QUAD_ENCODER count is related to pre-scale setting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 12:29:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692194#M42642</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2017-08-03T12:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: KV58F FTM1 used to count encoder</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692195#M42643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to figure 44-3 of the reference manual KV5XP144M240RM.pdf, QD input DOES go thru the prescaler:&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/8985i631F41D95C5B89C9/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;So you are seeing perfectly proper operation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 13:10:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692195#M42643</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-08-03T13:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: KV58F FTM1 used to count encoder</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692196#M42644</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;&lt;/P&gt;&lt;P&gt;Yes. I saw it on manual.&lt;/P&gt;&lt;P&gt;When you check the page 1216 for quad mode, there is no pre-scale, looks by-passed.&lt;/P&gt;&lt;P&gt;In the sample code, it is set to pre-scale=32 that is not right either. In sample, the filter value is set to 16. It should be wrong as well because range is 0~~15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to confirm if it is done in this way on purpose because I used MC56F8367, FTM QUAD is not related to pre-scale...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 13:18:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692196#M42644</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2017-08-03T13:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: KV58F FTM1 used to count encoder</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692197#M42645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what you mean by 'on purpose' in this context.&amp;nbsp; The hardware 'does what it does'; I see what you mean about Fig.44-91, it is 'a pity' the documentation writer elected to 'lump' prescaler functions within the 'FTM counter' functional block, but your own experiments confirm 'it is in the path'.&amp;nbsp; The fact a completely different family of parts works differently is not surprising.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree it seems a 'poor default' for a prescaler of 32, MOST applications of quadrature input need every edge they can see.&amp;nbsp; I can't comment on the 'filter value', as I don't know how the 'supplied value' is adapted into a 'register value' --- you can certainly look in your debugger and 'see what you get' from 16 (or try to follow the driver code!).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 14:31:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692197#M42645</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-08-03T14:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: KV58F FTM1 used to count encoder</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692198#M42646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer the 'Figure 44-3. FTM block diagram' in KV5XP144M240RM.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FTM block diagram.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/10689i294094906F48A66B/image-size/large?v=v2&amp;amp;px=999" role="button" title="FTM block diagram.png" alt="FTM block diagram.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The FTM counter clock is the selected clock divided by the prescaler.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Prescaler.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/10543iFD3E2E264C9FCF3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Prescaler.png" alt="Prescaler.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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>Fri, 04 Aug 2017 07:28:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58F-FTM1-used-to-count-encoder/m-p/692198#M42646</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-08-04T07:28:37Z</dc:date>
    </item>
  </channel>
</rss>

