<?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 Quadrature enable disable in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Quadrature-enable-disable/m-p/521140#M32745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using quadrature mode with k22fx512vmc12, it works fine with encoder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I disable and enable it again, FTM counts starting phase shift in between phase A and phase B which is not desired as encoder is at steady state (i.e. either 01, 10 or 11).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using following code to enable again, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FTM1_QDCTRL = (FTM_QDCTRL_QUADEN_MASK);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to disable again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FTM1_QDCTRL = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 07:23:55 GMT</pubDate>
    <dc:creator>riteshunde</dc:creator>
    <dc:date>2016-06-15T07:23:55Z</dc:date>
    <item>
      <title>Quadrature enable disable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Quadrature-enable-disable/m-p/521140#M32745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using quadrature mode with k22fx512vmc12, it works fine with encoder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I disable and enable it again, FTM counts starting phase shift in between phase A and phase B which is not desired as encoder is at steady state (i.e. either 01, 10 or 11).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using following code to enable again, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FTM1_QDCTRL = (FTM_QDCTRL_QUADEN_MASK);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to disable again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FTM1_QDCTRL = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 07:23:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Quadrature-enable-disable/m-p/521140#M32745</guid>
      <dc:creator>riteshunde</dc:creator>
      <dc:date>2016-06-15T07:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Quadrature enable disable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Quadrature-enable-disable/m-p/521141#M32746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，&lt;/P&gt;&lt;P&gt;Thank your for your interest in NXP Semiconductor products and the opportunity to serve you.&lt;/P&gt;&lt;P&gt;After had a brief look through the statement, I'd like to suggest that you can try the code below instead of the original.&lt;/P&gt;&lt;P&gt;Disable the Quadrature Eecoder Mode&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14660461509671769 jive_macro_code jive_text_macro" data-renderedposition="112_8_1192_32" jivemacro_uid="_14660461509671769" modifiedtitle="true"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman', serif; font-size: medium; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;FTM1_QDCTRL &amp;amp;= (~FTM_QDCTRL_QUADEN_MASK);&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;Enable the Quadrature Eecoder Mode&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14660461709477526 jive_text_macro" data-renderedposition="170_8_1192_32" jivemacro_uid="_14660461709477526" modifiedtitle="true"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman', serif; font-size: medium; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;FTM1_QDCTRL |= (FTM_QDCTRL_QUADEN_MASK);&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Thu, 16 Jun 2016 03:03:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Quadrature-enable-disable/m-p/521141#M32746</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-06-16T03:03:16Z</dc:date>
    </item>
  </channel>
</rss>

