<?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: High speed USB audio interrupts should occur every 125uS right? in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1248884#M13367</link>
    <description>&lt;P&gt;Ok&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;, that makes sense...&lt;/P&gt;&lt;P&gt;Also, after posting this question, I noticed the 'bInterval' field of the endpoint descriptor (section 9.6.6 of USB spec rev 2)&amp;nbsp; which apparently also has an effect on the rate (some multiple of the 1mS/125uS frame rate) at which the processor is interrupted.&amp;nbsp; Is that correct?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 19 Mar 2021 11:27:10 GMT</pubDate>
    <dc:creator>EdSutter</dc:creator>
    <dc:date>2021-03-19T11:27:10Z</dc:date>
    <item>
      <title>High speed USB audio interrupts should occur every 125uS right?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1247594#M13288</link>
      <description>&lt;P&gt;I am debugging some USB audio stuff on imx1060 and just noticed that my --apparently-- HIGH speed USB device is only being interrupted 1kHz (every millisecond) rather than the expected 8kHz (every 125 usec).&amp;nbsp; Any idea why that would be?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 21:02:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1247594#M13288</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2021-03-17T21:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: High speed USB audio interrupts should occur every 125uS right?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1248801#M13364</link>
      <description>&lt;P&gt;Hi EdSutter,&lt;/P&gt;
&lt;P&gt;Although SOF is sent every 1ms in full speed mode and 0.125 ms in high speed mode, USB controller will not generate interrupt when receiving SOF. It will interrupt when a transaction is complete. Please see the USBSTS and USBINTR register.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 09:45:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1248801#M13364</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-03-19T09:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: High speed USB audio interrupts should occur every 125uS right?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1248884#M13367</link>
      <description>&lt;P&gt;Ok&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;, that makes sense...&lt;/P&gt;&lt;P&gt;Also, after posting this question, I noticed the 'bInterval' field of the endpoint descriptor (section 9.6.6 of USB spec rev 2)&amp;nbsp; which apparently also has an effect on the rate (some multiple of the 1mS/125uS frame rate) at which the processor is interrupted.&amp;nbsp; Is that correct?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 11:27:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1248884#M13367</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2021-03-19T11:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: High speed USB audio interrupts should occur every 125uS right?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1249443#M13392</link>
      <description>&lt;P&gt;Hi Ed,&lt;/P&gt;&lt;P&gt;I have microframe polling going here in both directions with a hacked dev_composite_hid_audio_unified example.&lt;/P&gt;&lt;P&gt;You need the interval to be 0x01 and the packet size set to frameSize/8.&lt;/P&gt;&lt;P&gt;So for this example I changed:&lt;/P&gt;&lt;P&gt;#define HS_ISO_IN_ENDP_INTERVAL (0x04)&lt;/P&gt;&lt;P&gt;To:&lt;/P&gt;&lt;P&gt;#define HS_ISO_IN_ENDP_INTERVAL (0x01)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And changed :&lt;/P&gt;&lt;P&gt;#define HS_ISO_IN_ENDP_PACKET_SIZE (AUDIO_IN_TRANSFER_LENGTH_ONE_FRAME)&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;#if (HS_ISO_IN_ENDP_INTERVAL &amp;lt; 4)&lt;BR /&gt;#if (HS_ISO_IN_ENDP_INTERVAL == 1U)&lt;BR /&gt;#define HS_ISO_IN_ENDP_PACKET_SIZE ((AUDIO_IN_TRANSFER_LENGTH_ONE_FRAME) / 8U)&lt;BR /&gt;#elif (HS_ISO_IN_ENDP_INTERVAL == 2U)&lt;BR /&gt;#define HS_ISO_IN_ENDP_PACKET_SIZE ((AUDIO_IN_TRANSFER_LENGTH_ONE_FRAME) / 4U)&lt;BR /&gt;#elif (HS_ISO_IN_ENDP_INTERVAL == 3U)&lt;BR /&gt;#define HS_ISO_IN_ENDP_PACKET_SIZE ((AUDIO_IN_TRANSFER_LENGTH_ONE_FRAME) / 2U)&lt;BR /&gt;#endif&lt;BR /&gt;#else&lt;BR /&gt;#define HS_ISO_IN_ENDP_PACKET_SIZE (AUDIO_IN_TRANSFER_LENGTH_ONE_FRAME)&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 07:49:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1249443#M13392</guid>
      <dc:creator>AndyCapon</dc:creator>
      <dc:date>2021-03-22T07:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: High speed USB audio interrupts should occur every 125uS right?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1249843#M13397</link>
      <description>&lt;P&gt;Andy,&lt;/P&gt;&lt;P&gt;Yea after my original post I discovered the "&lt;STRONG&gt;bInterval&lt;/STRONG&gt;" field of the endpoint (see my earlier reply).&lt;/P&gt;&lt;P&gt;The thing I didn't realize is that the initialized descriptor is modifed by USB_DeviceSetSpeed() to update the endpoint bInterval values based on the USB speed.&amp;nbsp; I was incorrectly making the change in the initialized configuration descriptor.&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 17:43:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1249843#M13397</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2021-03-22T17:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: High speed USB audio interrupts should occur every 125uS right?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1252956#M13516</link>
      <description>&lt;P&gt;Just want to add a comment here, since I just noticed one major part of my confusion regarding the rate at which the interrupts occur...&lt;/P&gt;&lt;P&gt;I was changing the polling interval in the ENDPOINT descriptor and not seeing any change in the interrupt rate.&amp;nbsp; I didn't realize that there is a function called at startup that overrides some of the descriptor settings based on whether the system is FULL or HIGH speed (USB_DeviceSetSpeed()).&lt;/P&gt;&lt;P&gt;As soon as I removed that call things started working as expected...&lt;/P&gt;&lt;P&gt;That call is useful to modify some points in the descriptor based on USB speed, but if your application is fixed to run at a particular speed, it seems to me, the best thing to do is just set them up in the initialized descriptor (as I was doing) and eliminate that call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 15:09:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/High-speed-USB-audio-interrupts-should-occur-every-125uS-right/m-p/1252956#M13516</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2021-03-26T15:09:32Z</dc:date>
    </item>
  </channel>
</rss>

