<?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>MCUXpresso SDKのトピックInterrupt handler for ENC phase inputs?</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/Interrupt-handler-for-ENC-phase-inputs/m-p/902813#M1511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to find documentation or an example of the MCUXpresso SDK ENC module that uses interrupts on the phase inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SDK examples use a polling cycle to look for increments of the position value, but I would like to trigger an interrupt if the position value changes.&amp;nbsp; I do see that there is an interrupt config for tracking index, but I don't see a corresponding example for the position value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2019 13:28:21 GMT</pubDate>
    <dc:creator>jackking</dc:creator>
    <dc:date>2019-05-21T13:28:21Z</dc:date>
    <item>
      <title>Interrupt handler for ENC phase inputs?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Interrupt-handler-for-ENC-phase-inputs/m-p/902813#M1511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to find documentation or an example of the MCUXpresso SDK ENC module that uses interrupts on the phase inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SDK examples use a polling cycle to look for increments of the position value, but I would like to trigger an interrupt if the position value changes.&amp;nbsp; I do see that there is an interrupt config for tracking index, but I don't see a corresponding example for the position value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 13:28:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Interrupt-handler-for-ENC-phase-inputs/m-p/902813#M1511</guid>
      <dc:creator>jackking</dc:creator>
      <dc:date>2019-05-21T13:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt handler for ENC phase inputs?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Interrupt-handler-for-ENC-phase-inputs/m-p/902814#M1512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please specify the MCU you are working on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 20:43:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Interrupt-handler-for-ENC-phase-inputs/m-p/902814#M1512</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-05-23T20:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt handler for ENC phase inputs?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Interrupt-handler-for-ENC-phase-inputs/m-p/902815#M1513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, it is the IMXRT1052&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 20:44:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Interrupt-handler-for-ENC-phase-inputs/m-p/902815#M1513</guid>
      <dc:creator>jackking</dc:creator>
      <dc:date>2019-05-23T20:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt handler for ENC phase inputs?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Interrupt-handler-for-ENC-phase-inputs/m-p/902816#M1514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, we don’t have examples using interrupt for position value. However, you have the following interrupt triggers.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 10.0pt;"&gt;&lt;STRONG style="color: #7f0055; "&gt;enum&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt; _enc_interrupt_enable&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 10.0pt; color: black;"&gt;{&lt;/P&gt;&lt;P style="margin: 0in; font-size: 10.0pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #0000c0; "&gt;kENC_HOMETransitionInterruptEnable&lt;/EM&gt;&lt;SPAN style="color: black;"&gt; = (1U &amp;lt;&amp;lt; 0U),&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;/*!&amp;lt; HOME interrupt enable. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 10.0pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #0000c0; background: silver; "&gt;kENC_INDEXPulseInterruptEnable&lt;/EM&gt;&lt;SPAN style="color: black;"&gt; = (1U &amp;lt;&amp;lt; 1U),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;/*!&amp;lt; INDEX pulse interrupt enable. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 10.0pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #0000c0; "&gt;kENC_WatchdogTimeoutInterruptEnable&lt;/EM&gt;&lt;SPAN style="color: black;"&gt; = (1U &amp;lt;&amp;lt; 2U), &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;/*!&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline; color: #3f7f5f;"&gt;Watchdog&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt; timeout interrupt enable. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 10.0pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #0000c0; "&gt;kENC_PositionCompareInerruptEnable&lt;/EM&gt;&lt;SPAN style="color: black;"&gt; = (1U &amp;lt;&amp;lt; 3U),&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;/*!&amp;lt; Position compare interrupt enable. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 10.0pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #0000c0; "&gt;kENC_SimultBothPhaseChangeInterruptEnable&lt;/EM&gt;&lt;SPAN style="color: black;"&gt; =&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 10.0pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (1U &amp;lt;&amp;lt; 4U),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;/*!&amp;lt; Simultaneous PHASEA and PHASEB change interrupt enable. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 10.0pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #0000c0; "&gt;kENC_PositionRollOverInterruptEnable&lt;/EM&gt;&lt;SPAN style="color: black;"&gt; = (1U &amp;lt;&amp;lt; 5U),&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;/*!&amp;lt; Roll-over interrupt enable. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 10.0pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #0000c0; "&gt;kENC_PositionRollUnderInterruptEnable&lt;/EM&gt;&lt;SPAN style="color: black;"&gt; = (1U &amp;lt;&amp;lt; 6U), &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;/*!&amp;lt; Roll-under interrupt enable. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 8pt; font-size: 10.0pt; color: black;"&gt;};&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the one you are looking for is &lt;STRONG&gt;kENC_PositionCompareInerruptEnable&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&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, 24 May 2019 21:57:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Interrupt-handler-for-ENC-phase-inputs/m-p/902816#M1514</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-05-24T21:57:48Z</dc:date>
    </item>
  </channel>
</rss>

