<?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: Setting up Quadrature Encoder in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Setting-up-Quadrature-Encoder/m-p/436907#M25499</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;It need to use FTM Quadrature Decoder- Phase A and Phase B Encoding mode.&lt;/P&gt;&lt;P&gt;For there could exist counter increase and decrement situation, please check below picture:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2015-06-30_14-35-21.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61058iC627BE6F0802A6EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2015-06-30_14-35-21.png" alt="2015-06-30_14-35-21.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is a note for the FTM module using with quadrature decoder mode, the FTM channels in input capture and output compare mode.&lt;/P&gt;&lt;P&gt;When BDM is active, the FTM counter is frozen. This is the value that you may read.&lt;/P&gt;&lt;P&gt;So, it need to use the software to read the FTM counter value back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2015 06:52:07 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2015-06-30T06:52:07Z</dc:date>
    <item>
      <title>Setting up Quadrature Encoder</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Setting-up-Quadrature-Encoder/m-p/436906#M25498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a customer using the&lt;A _jive_internal="true" href="https://community.nxp.com/int-nac/draw/web?event=REG_SUMMARY&amp;amp;p_Track=1970358&amp;amp;p_CustomerNumber=50003545"&gt;MK21FX&lt;/A&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/int-nac/draw/web?event=REG_SUMMARY&amp;amp;p_Track=1970358&amp;amp;p_CustomerNumber=50003545"&gt;512VMC12&lt;/A&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/int-nac/draw/web?event=REG_SUMMARY&amp;amp;p_Track=1970358&amp;amp;p_CustomerNumber=50003545"&gt; &lt;/A&gt;&lt;/STRONG&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/int-nac/draw/web?event=REG_SUMMARY&amp;amp;p_Track=1970358&amp;amp;p_CustomerNumber=50003545"&gt; &lt;/A&gt;and is trying to set up the FTM2 for a quadrature encoder.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The goal is to have FTM2 in the Quadrature Mode where the PHA and PHB clocks come in and increment or decrement the counter. Every 100miliseconds, I want to read the FTM2 Counter value&lt;BR /&gt;and direction,&amp;nbsp; then reset back to the initial value. &lt;/P&gt;&lt;P&gt;To do this: do I have to set the channels up? &lt;/P&gt;&lt;P&gt;Are they only needed to load or compare to the count register?&lt;/P&gt;&lt;P&gt;Do I have to do anything with the mod register?&lt;/P&gt;&lt;P&gt;I see the initial Count value when I read it but I don’t see the counter change with PHA and PHB running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a txt file for the register set up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 23:56:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Setting-up-Quadrature-Encoder/m-p/436906#M25498</guid>
      <dc:creator>PHXFAE</dc:creator>
      <dc:date>2015-06-26T23:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up Quadrature Encoder</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Setting-up-Quadrature-Encoder/m-p/436907#M25499</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;It need to use FTM Quadrature Decoder- Phase A and Phase B Encoding mode.&lt;/P&gt;&lt;P&gt;For there could exist counter increase and decrement situation, please check below picture:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2015-06-30_14-35-21.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61058iC627BE6F0802A6EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2015-06-30_14-35-21.png" alt="2015-06-30_14-35-21.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is a note for the FTM module using with quadrature decoder mode, the FTM channels in input capture and output compare mode.&lt;/P&gt;&lt;P&gt;When BDM is active, the FTM counter is frozen. This is the value that you may read.&lt;/P&gt;&lt;P&gt;So, it need to use the software to read the FTM counter value back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 06:52:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Setting-up-Quadrature-Encoder/m-p/436907#M25499</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2015-06-30T06:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up Quadrature Encoder</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Setting-up-Quadrature-Encoder/m-p/436908#M25500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/499574"&gt;Re: QEI inputs, and index capture&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:53:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Setting-up-Quadrature-Encoder/m-p/436908#M25500</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2015-06-30T12:53:59Z</dc:date>
    </item>
  </channel>
</rss>

