<?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 qd mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/qd-mode/m-p/502963#M31547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can not get qd mode to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2016 14:19:35 GMT</pubDate>
    <dc:creator>ralf1694</dc:creator>
    <dc:date>2016-01-20T14:19:35Z</dc:date>
    <item>
      <title>qd mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/qd-mode/m-p/502963#M31547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can not get qd mode to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 14:19:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/qd-mode/m-p/502963#M31547</guid>
      <dc:creator>ralf1694</dc:creator>
      <dc:date>2016-01-20T14:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get quadrature decoder to work on K21FN1M0VMD12 FTM2</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/qd-mode/m-p/502964#M31548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ralf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose that your code is correct. From hardware perspective, I suppose you connect the encoder signals PhaseA/PhaseB with 90 degree phase shift to the PTA10(FTM2_QD_PHA) and PTA11(FTM2_QD_PHB), then rotate the motor shaft manually so that the Encoder sensor can generate the PhaseA and PhaseB edges and FTM can count the edges.&amp;nbsp; If the motor shaft is still, no edges of PhaseA and PhaseB signal are generated, the FTM counter will be zero. &lt;/P&gt;&lt;P&gt;Regarding your code, I suppose you have enable the POPTA gate clock in the SIM_SCGC5 by the code such as SIM_SCGC5|=0x200; prior to your code: PORTA_PCR10 = PORT_PCR_MUX(6); &lt;/P&gt;&lt;P&gt;Regarding the test, pls check the FTM2_CNT register directly in the debugger of the tools and check it's value.&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>Thu, 21 Jan 2016 03:14:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/qd-mode/m-p/502964#M31548</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-01-21T03:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get quadrature decoder to work on K21FN1M0VMD12 FTM2</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/qd-mode/m-p/502965#M31549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I enable the PORTA gate clock before muxing the port. I spin the motor but the FTM2_CNT (debug) register is always null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 08:39:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/qd-mode/m-p/502965#M31549</guid>
      <dc:creator>ralf1694</dc:creator>
      <dc:date>2016-01-21T08:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get quadrature decoder to work on K21FN1M0VMD12 FTM2</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/qd-mode/m-p/502966#M31550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, ralf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls set the FTMEN bit by the code:FTM2_MODE|=0x05; //enable FTM2 module. I do not suggest you use center-alignment, but I do not think it is the cause of the issue either.&lt;/P&gt;&lt;P&gt;Pls have a try. If you still have problem, I will test on my tower board tomorrow.&lt;/P&gt;&lt;P&gt;&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>Thu, 21 Jan 2016 09:25:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/qd-mode/m-p/502966#M31550</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-01-21T09:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get quadrature decoder to work on K21FN1M0VMD12 FTM2</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/qd-mode/m-p/502967#M31551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi xiangjun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i solved the problem. the pha and phb signal goes throw a mux and the mux input was wrong.&lt;/P&gt;&lt;P&gt;thank you for your fast answers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 13:03:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/qd-mode/m-p/502967#M31551</guid>
      <dc:creator>ralf1694</dc:creator>
      <dc:date>2016-01-21T13:03:27Z</dc:date>
    </item>
  </channel>
</rss>

