<?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 USB Enable/Disable Interrupt problem in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/USB-Enable-Disable-Interrupt-problem/m-p/1007044#M2045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I'm using the KL26 microcontroller in one of our boards with "SDK_2.4.1_MKL26Z256xxx4"&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I have a question about disabling/enabling the USB interrupts in order to masking them in a function that must not be interrupted.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The functions&amp;nbsp;&lt;SPAN&gt;DisableIRQ/EnableIRQ seem not to work properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;I implement an HID keyboard: I am able to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;disable the interrupt but when I try to re-enable it, the interrupt works only if I haven't pressed any key while it was disabled, otherwise any other key will be not recognized.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I use these functions "normally" to mask interrupts coming from PortC and PortD.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Are there some special precautions in order to use them for the USB port ?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thank you for all the attention.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Best Regards&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Daniele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jan 2020 11:53:16 GMT</pubDate>
    <dc:creator>danielebruno</dc:creator>
    <dc:date>2020-01-27T11:53:16Z</dc:date>
    <item>
      <title>USB Enable/Disable Interrupt problem</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/USB-Enable-Disable-Interrupt-problem/m-p/1007044#M2045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I'm using the KL26 microcontroller in one of our boards with "SDK_2.4.1_MKL26Z256xxx4"&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I have a question about disabling/enabling the USB interrupts in order to masking them in a function that must not be interrupted.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The functions&amp;nbsp;&lt;SPAN&gt;DisableIRQ/EnableIRQ seem not to work properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;I implement an HID keyboard: I am able to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;disable the interrupt but when I try to re-enable it, the interrupt works only if I haven't pressed any key while it was disabled, otherwise any other key will be not recognized.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I use these functions "normally" to mask interrupts coming from PortC and PortD.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Are there some special precautions in order to use them for the USB port ?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thank you for all the attention.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Best Regards&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Daniele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2020 11:53:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/USB-Enable-Disable-Interrupt-problem/m-p/1007044#M2045</guid>
      <dc:creator>danielebruno</dc:creator>
      <dc:date>2020-01-27T11:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: USB Enable/Disable Interrupt problem</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/USB-Enable-Disable-Interrupt-problem/m-p/1007045#M2046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniele,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to check the below application note document that explains a little further how you can implement resume and suspend USB feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5385.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN5385.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&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>Wed, 29 Jan 2020 18:32:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/USB-Enable-Disable-Interrupt-problem/m-p/1007045#M2046</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-01-29T18:32:25Z</dc:date>
    </item>
  </channel>
</rss>

