<?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 send and receive in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-send-and-receive/m-p/719996#M44112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working on a K22 series controller and using latest USB stack. I have connected 2 MSD &amp;amp; 1 speaker on USB and trying to read the .wav file from MSD and playing it on speaker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For playing sound, reading data in buffer1(1152bytes) &amp;amp;sending 64 bytes every 1ms and while sending audio data trying to read in buffer2(1152bytes).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I observed on analyzer that traffic on USB bus which is coming as follows,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210812_pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123279i5F7E07EC2C2CF6FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210812_pastedImage_2.png" alt="https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210812_pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;since data is not getting sent every 1ms, sound played is distorted. (&lt;STRONG&gt;Why data is not being read from MSD after sending audio data in 1ms time frame?)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and i want to achieve something like as follows&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210805_pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123280i23884C708C69084B/image-size/large?v=v2&amp;amp;px=999" role="button" title="https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210805_pastedImage_1.png" alt="https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210805_pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i was not able to do this although i am using the usb stack APIs.&lt;/P&gt;&lt;P&gt;Please let me know how i can implement this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Aniket&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 09:13:31 GMT</pubDate>
    <dc:creator>aniketmarkande</dc:creator>
    <dc:date>2018-02-06T09:13:31Z</dc:date>
    <item>
      <title>USB send and receive</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-send-and-receive/m-p/719996#M44112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working on a K22 series controller and using latest USB stack. I have connected 2 MSD &amp;amp; 1 speaker on USB and trying to read the .wav file from MSD and playing it on speaker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For playing sound, reading data in buffer1(1152bytes) &amp;amp;sending 64 bytes every 1ms and while sending audio data trying to read in buffer2(1152bytes).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I observed on analyzer that traffic on USB bus which is coming as follows,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210812_pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123279i5F7E07EC2C2CF6FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210812_pastedImage_2.png" alt="https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210812_pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;since data is not getting sent every 1ms, sound played is distorted. (&lt;STRONG&gt;Why data is not being read from MSD after sending audio data in 1ms time frame?)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and i want to achieve something like as follows&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210805_pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123280i23884C708C69084B/image-size/large?v=v2&amp;amp;px=999" role="button" title="https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210805_pastedImage_1.png" alt="https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210805_pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i was not able to do this although i am using the usb stack APIs.&lt;/P&gt;&lt;P&gt;Please let me know how i can implement this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Aniket&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 09:13:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-send-and-receive/m-p/719996#M44112</guid>
      <dc:creator>aniketmarkande</dc:creator>
      <dc:date>2018-02-06T09:13:31Z</dc:date>
    </item>
  </channel>
</rss>

