<?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: IMX1050RT Encoder Interrupt Posmatch mode has no effect in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934661#M3854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the CMPIRQ interrupt when POS is equal to POSCOMPARE (initialized as -1 in the default settings).&lt;/P&gt;&lt;P&gt;In the data sheet and in the source, it looks like setting the OUTCTL bit should change the POSMATCH function so that it fires ANY TIME a position register is read. I want an interrupt to fire any time the position changes, but setting OUTCTL isn't making that happen. Basically, the OUTCTL bit seems to do nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simpler way to get an interrupt any time the encoder position changes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2019-07-05 at 12.27.48.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90473iC694E716D7234245/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-07-05 at 12.27.48.png" alt="Screen Shot 2019-07-05 at 12.27.48.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jul 2019 10:32:49 GMT</pubDate>
    <dc:creator>benolayinka</dc:creator>
    <dc:date>2019-07-05T10:32:49Z</dc:date>
    <item>
      <title>IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934658#M3851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to trigger an interrupt any time an encoder position changes, and it looks like the&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;enc_config_t.&lt;SPAN class=""&gt;positionMatchMode =&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;kENC_POSMATCHOnReadingAnyPositionCounter inititialization setting should cause the interrupt to trigger, but it does nothing. I confirmed in ENC_Init that setting positionMatchMode sets the&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;ENC_CTRL2_OUTCTL_MASK, but it doesn't change the behaviour, I only get an interrupt when the position is equal to position compare.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Is this a hardware bug? Can someone with this board check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* Initialize the ENC module. */&lt;/SPAN&gt;
 enc_config_t mEncConfigStruct&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;ENC_GetDefaultConfig&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;mEncConfigStruct&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 mEncConfigStruct&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;positionMatchMode &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; kENC_POSMATCHOnReadingAnyPositionCounter&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;ENC_Init&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ENC1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;mEncConfigStruct&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;ENC_DoSoftwareLoadInitialPositionValue&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ENC1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* Update the position counter with initial value. */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;NVIC_SetPriority&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ENC1_IRQn&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; MAX_INTERRUPT_PRIORITY&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;EnableIRQ&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ENC1_IRQn&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;ENC_EnableInterrupts&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ENC1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; kENC_PositionCompareInerruptEnable&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;c&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:57:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934658#M3851</guid>
      <dc:creator>benolayinka</dc:creator>
      <dc:date>2019-07-03T15:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934659#M3852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried it as well, and I didn't ever see the interrupt generated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 14:07:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934659#M3852</guid>
      <dc:creator>jackking</dc:creator>
      <dc:date>2019-07-04T14:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934660#M3853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="341679" data-username="benolayinka" href="https://community.nxp.com/people/benolayinka"&gt;BENJAMIN OLAYINKA&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RT1050 chip ENC module can support the following interrupt:&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/90468i5472527B8699EC33/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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So, when you use the posmatch, do you want to get the compare match interrupt?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you posmatch happens, do you check the CTRL[CMPIRQ], is it set or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 09:54:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934660#M3853</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-07-05T09:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934661#M3854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the CMPIRQ interrupt when POS is equal to POSCOMPARE (initialized as -1 in the default settings).&lt;/P&gt;&lt;P&gt;In the data sheet and in the source, it looks like setting the OUTCTL bit should change the POSMATCH function so that it fires ANY TIME a position register is read. I want an interrupt to fire any time the position changes, but setting OUTCTL isn't making that happen. Basically, the OUTCTL bit seems to do nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simpler way to get an interrupt any time the encoder position changes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2019-07-05 at 12.27.48.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90473iC694E716D7234245/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-07-05 at 12.27.48.png" alt="Screen Shot 2019-07-05 at 12.27.48.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 10:32:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934661#M3854</guid>
      <dc:creator>benolayinka</dc:creator>
      <dc:date>2019-07-05T10:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934662#M3855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do get the interrupt, but only when POS = POSCOMPARE, which is initialized to -1 in the default settings. I would like to get an interrupt any time the position changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;ENC_GetDefaultConfig&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;enc_config_t &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;config&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;//changing positionMatchMode should set OUTCTL and fire an interrupt any time position changes.. but it doesn't&lt;/SPAN&gt;
    config&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;positionMatchMode &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; kENC_POSMATCHOnPositionCounterEqualToComapreValue&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    config&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;positionCompareValue &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xFFFFFFFFU&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 10:37:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934662#M3855</guid>
      <dc:creator>benolayinka</dc:creator>
      <dc:date>2019-07-05T10:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934663#M3856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any updates on this?&amp;nbsp; I asked a similar question awhile ago: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/503445"&gt;https://community.nxp.com/thread/503445&lt;/A&gt;&amp;nbsp;&amp;nbsp; but I didn't know this OUTCTL option could allow interrupts on any position change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up abandoning the ENC peripheral and writing my own encoder library using GPIO and interrupts so I could generate interrupts whenever the encoder position changes, but I would love to go back to using the ENC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 14:12:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934663#M3856</guid>
      <dc:creator>jackking</dc:creator>
      <dc:date>2019-07-08T14:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934664#M3857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="341679" data-username="benolayinka" href="https://community.nxp.com/people/benolayinka"&gt;BENJAMIN OLAYINKA&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Even you modify the OUTCTL to 1, but this bit can't fire the interrupt directly, it just can make POSMATCH pulses when the UPOS, LPOS, REV, or POSD registers are read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Just as the interrupt list for ENC which I give you, it doesn't have the PSMATCH pulse interrupt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But, if you want the PSMATCH pulse to trigger the interrupt, I think you can connect this signal to another external interrupt, then when the PSMATCH pulse happens, then that interrupt happens, take use the PSMATCH to trigger another gpio interrupt, but you need to connect your PSMATCH to the related gpio input pin.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can try it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still have questions about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 06:53:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934664#M3857</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-07-09T06:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934665#M3858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-userid="310308" data-username="jackking" href="https://community.nxp.com/people/jackking"&gt;Jack King&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; What's your detail problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I find you didn't follow up your own post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; As I know, OUTCTL&amp;nbsp; can't trigger the ENC interrupt directly. As you know, the ENC just have these interrupt:&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/90621i108562CA93F78175/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;But I didn't find the OUTCTL&amp;nbsp; triggered interrupt, so my thought is the same as you, can use OUTCTL&amp;nbsp; associate with the GPIO input interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 07:00:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934665#M3858</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-07-09T07:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934666#M3859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The POSMATCH signal is the same one triggering the CMPIE (COMPARE MATCH) interrupt, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any simple way to trigger an interrupt when the position changes? This seems like an obvious feature. I'm going to try wiring the POSMATCH signal in to a GPIO but that seems like an unnecessary workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 12:24:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934666#M3859</guid>
      <dc:creator>benolayinka</dc:creator>
      <dc:date>2019-07-12T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934667#M3860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="341679" data-username="benolayinka" href="https://community.nxp.com/people/benolayinka"&gt;BENJAMIN OLAYINKA&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1. The POSMATCH signal is the same one triggering the CMPIE (COMPARE MATCH) interrupt, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No, POSMATCH signal is the position match output, it own't triggering CMPIE.&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/91195i7C870971A94DCDC2/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;&amp;nbsp;&amp;nbsp;&amp;nbsp; But when the compare matches the COMP, the compare interrupt request flag is set, then the POSMATCH output is asserted, please note, not the POSMATCH output trigger the CMPIE.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91196i6B96BCEAB7CDDD35/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Is there any simple way to trigger an interrupt when the position changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can check the GPIO interrupt code in the SDK, as you know the POSMATCH will output the signal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have questions about it, please kindly let me know.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 07:55:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934667#M3860</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-07-15T07:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934668#M3861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, thanks. Having to use two extra GPIO pins just to send/receive posmatch to trigger an interrupt makes it basically useless to me, I just wrote my own simple driver using an interrupt on the encoder phase a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 16:42:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934668#M3861</guid>
      <dc:creator>benolayinka</dc:creator>
      <dc:date>2019-07-16T16:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934669#M3862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That’s exactly the same route I ended up taking. &amp;nbsp;A custom encoder library based on GPIO and interrupts... &amp;nbsp; I didn’t use the ENC module at all because it didn’t have this interrupt capability.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 18:01:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934669#M3862</guid>
      <dc:creator>jackking</dc:creator>
      <dc:date>2019-07-16T18:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934670#M3863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="341679" data-username="benolayinka" href="https://community.nxp.com/people/benolayinka"&gt;BENJAMIN OLAYINKA&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSMATCH can be connected to other SoC resources, just as the reference manual described:&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/80335i2B14A1C73696FB41/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;If you don't want to use the external GPIO, maybe you can consider to use the POSMATCH output to tigger the timer channel, then use the timer interrupt, you can set the timer is very small.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 02:06:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/934670#M3863</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-07-17T02:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT Encoder Interrupt Posmatch mode has no effect</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/1164804#M10449</link>
      <description>&lt;P&gt;Were you able workaround your issue and get an interrupt fired whenever the position changes?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 00:23:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-Encoder-Interrupt-Posmatch-mode-has-no-effect/m-p/1164804#M10449</guid>
      <dc:creator>thivya_ashokkum</dc:creator>
      <dc:date>2020-10-09T00:23:45Z</dc:date>
    </item>
  </channel>
</rss>

