<?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 Problem with Flextimer's quadrature decoder mode on IMX7S in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060366#M155903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;Hi, Community,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;I am experiencing problems with using the Flextimer in the quadrature decoder more, as the counter stops incrementing as soon as I enable&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;QUADEN&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;QDCTRL&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;register. I am using the following initialization scheme:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;// All registers using default values up to this point&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_SC &amp;amp;= ~FTM_SC_CLKS_MASK;&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_MODE |= FTM_MODE_FTMEN_MASK;&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_MOD = 1000;&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_CNTIN = 100;&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_CNT = 0;&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_SC |= FTM_SC_CLKS(1);&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_QDCTRL |= FTM_QDCTRL_QUADEN_MASK;&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;while(1) {&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;debug(("FTM2_CNT value: %5d\n\r", FTM2_CNT));&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;}&lt;/EM&gt;&lt;/PRE&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold; padding: 0px;"&gt;Notes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;1) The counter value will reach 113 and stop increasing due to enabling&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;QUADEN.&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;2) I have initialized clocks for FTM2 (&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;RDC = 37, ROOT = 111(0x3038b780), CCGR = 129(0x30384810))&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;3) I have initialized clocks for the PHA and PHB pins&amp;nbsp;&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;(SAI1 port, RDC = 106, ROOT = 74(0x3038a500), CCGR = 140(0x303848c0))&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;4) I am using ALT4 for MUX-ing both the PHA (&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;SAI1_RXC&lt;/EM&gt;) and PHB (&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;SAI1_MCLK&lt;/EM&gt;) pins&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;5) Regularly reading the PHA and PHB pins as GPIOs works correctly&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;6) I am aware that the IMX7S datasheet has incorrect bit numeration in the datasheet's FTM register parts, so I have used K64 datasheet's register numeration instead when declaring the bitmasks.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;7) I have tried various ways of initialization orders without any results&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&lt;SPAN class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;&lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; I have validated with an oscilloscope that the encoder signals are valid&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;I have read the datasheet multiple times and have read all forum posts and documents there are on this topic, so I'm hoping that you can point out something that is wrong for me.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;With regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2020 16:37:43 GMT</pubDate>
    <dc:creator>jjamesson</dc:creator>
    <dc:date>2020-05-08T16:37:43Z</dc:date>
    <item>
      <title>Problem with Flextimer's quadrature decoder mode on IMX7S</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060366#M155903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;Hi, Community,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;I am experiencing problems with using the Flextimer in the quadrature decoder more, as the counter stops incrementing as soon as I enable&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;QUADEN&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;QDCTRL&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;register. I am using the following initialization scheme:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;// All registers using default values up to this point&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_SC &amp;amp;= ~FTM_SC_CLKS_MASK;&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_MODE |= FTM_MODE_FTMEN_MASK;&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_MOD = 1000;&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_CNTIN = 100;&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_CNT = 0;&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_SC |= FTM_SC_CLKS(1);&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;FTM2_QDCTRL |= FTM_QDCTRL_QUADEN_MASK;&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;while(1) {&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;debug(("FTM2_CNT value: %5d\n\r", FTM2_CNT));&lt;/EM&gt;
&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;}&lt;/EM&gt;&lt;/PRE&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold; padding: 0px;"&gt;Notes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;1) The counter value will reach 113 and stop increasing due to enabling&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;QUADEN.&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;2) I have initialized clocks for FTM2 (&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;RDC = 37, ROOT = 111(0x3038b780), CCGR = 129(0x30384810))&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;3) I have initialized clocks for the PHA and PHB pins&amp;nbsp;&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;(SAI1 port, RDC = 106, ROOT = 74(0x3038a500), CCGR = 140(0x303848c0))&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;4) I am using ALT4 for MUX-ing both the PHA (&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;SAI1_RXC&lt;/EM&gt;) and PHB (&lt;EM style="border: 0px; font-weight: inherit; padding: 0px;"&gt;SAI1_MCLK&lt;/EM&gt;) pins&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;5) Regularly reading the PHA and PHB pins as GPIOs works correctly&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;6) I am aware that the IMX7S datasheet has incorrect bit numeration in the datasheet's FTM register parts, so I have used K64 datasheet's register numeration instead when declaring the bitmasks.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;7) I have tried various ways of initialization orders without any results&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&lt;SPAN class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;&lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; I have validated with an oscilloscope that the encoder signals are valid&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;I have read the datasheet multiple times and have read all forum posts and documents there are on this topic, so I'm hoping that you can point out something that is wrong for me.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;With regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2020 16:37:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060366#M155903</guid>
      <dc:creator>jjamesson</dc:creator>
      <dc:date>2020-05-08T16:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Flextimer's quadrature decoder mode on IMX7S</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060367#M155904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reason may be initialization sequence, may be useful to look&lt;/P&gt;&lt;P&gt;at i.MX8QM SDK or Kinetis examples&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/525666"&gt;FlexTimer for Quadrature Decoder on K66 - How to&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/484962"&gt;Quadrature Decoder not counting correctly on FRDM-K66F&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Sat, 09 May 2020 23:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060367#M155904</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-05-09T23:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Flextimer's quadrature decoder mode on IMX7S</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060368#M155905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the references.&amp;nbsp;The examples follow a very similar&amp;nbsp;initialization sequence to what I have and I still didn't get expected results, so&amp;nbsp;perhaps this is some other issue. I'm starting to think that this might be a clock initialization or routing issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you have any suggestions on how to debug this issue further? Since the timer is working in a normal state (QUADEN disabled), I know that the clock gets routed to the FTM module correctly, but Is there a way to validate that the clock gets actually routed to the PHA/PHB pins? If i MUX these pins to FTM2_PHA and FTM2_PHB, I can't read these pins as GPIO-s, because they are always 0 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2020 18:22:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060368#M155905</guid>
      <dc:creator>jjamesson</dc:creator>
      <dc:date>2020-05-11T18:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Flextimer's quadrature decoder mode on IMX7S</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060369#M155906</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 have also tried using the input capture mode of the FTM module with the following initialization sequence with another pin connected to FLEXTIMER2_CH0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FTM2_CNTIN = 10;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; FTM2_MOD = 0x0000FFFF;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FTM2_CNT = 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; FTM2_C0SC |= (FTM_CSC_ELSA_MASK | FTM_CSC_ELSB_MASK);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; FTM2_SC |= FTM_SC_PS(3);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; FTM2_SC |= FTM_SC_CLKS(1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am toggling the pin with a power supply between 0 and 3.3V. The results are similar: the CNT value keeps increasing, but the C0V value never gets stored, and the CH0F bit never gets pulled up. Does this again indicates that the pin actual voltage doesn't reach the FTM module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 18:13:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060369#M155906</guid>
      <dc:creator>jjamesson</dc:creator>
      <dc:date>2020-05-12T18:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Flextimer's quadrature decoder mode on IMX7S</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060370#M155907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually flex timer module was reused from IP Kinetis, please reread&lt;/P&gt;&lt;P&gt;sect.12.2.4.24 Quadrature Decoder mode, be aware of&amp;nbsp; "NOTE"&lt;/P&gt;&lt;P&gt;conditions, sect.12.2.4.24.1 Quadrature Decoder boundary conditions&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX7DRM" target="_blank"&gt;&lt;STRONG&gt;i.MX 7Dual Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Probably makes sense to test it on some miscellaneous kinetis boards&lt;/P&gt;&lt;P&gt;to check your hardware setup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 00:44:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060370#M155907</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-05-13T00:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Flextimer's quadrature decoder mode on IMX7S</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060371#M155908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to get the FTM running in quadrature decoder mode. It turns out I hadn't configured the&amp;nbsp;&lt;EM&gt;IOMUXC_FLEXTIMER2_PHA_SELECT_INPUT&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;IOMUXC_FLEXTIMER2_PHB_SELECT_INPUT&lt;/EM&gt; registers to select the pad involved in daisy chain.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, if anyone else gets stuck with this issue, I can confirm that the following initialization sequence works:&lt;/P&gt;&lt;PRE style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;// All registers using default values up to this point
FTM2_MOD = 0x0000FFFF;
FTM2_CNT = 0;
FTM2_QDCTRL |= FTM_QDCTRL_QUADEN_MASK;
&lt;/EM&gt;// Read number of decoded pulses with FTM2_CNT&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;It's as easy as that. I wish the datasheet would make it that clear. if you have any problems with this, it is likely that your clocks or&amp;nbsp;IOMUX configuration, or input selection is invalid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for thinking along, Igor!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 09:34:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-Flextimer-s-quadrature-decoder-mode-on-IMX7S/m-p/1060371#M155908</guid>
      <dc:creator>jjamesson</dc:creator>
      <dc:date>2020-05-13T09:34:59Z</dc:date>
    </item>
  </channel>
</rss>

