<?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: The Full Speed USB actual Speed? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291729#M11713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Lam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 12 Mbps is the bit rate, but actual throughput is less. The performance varies according with the Class, and if the MCU is used as Host or as Device, and depends of the used software (USBstack). Each transfer type (Interrupt, Bulk, Isochronous) have a maximum packet size, and number of transfers and transactions in a USB frame may vary depending of MCU load, but the frame rate is also constant (each 1ms).&lt;BR /&gt;Therefore, as Jim Donelson has commented, it is recommended to test the actual throughput in your specific application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information will be useful for you.&lt;BR /&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 01:07:43 GMT</pubDate>
    <dc:creator>CarlosCasillas</dc:creator>
    <dc:date>2013-04-03T01:07:43Z</dc:date>
    <item>
      <title>The Full Speed USB actual Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291725#M11709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Simsun; font-size: medium;"&gt;I know the KL2 series is using USB 2.0 Full Speed, and the ideal &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Simsun; font-size: medium;"&gt;transmit speed is 12 Mbps. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Simsun; font-size: medium;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Simsun; font-size: medium;"&gt;But I wonder what the actual data &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Simsun; font-size: medium;"&gt;speed it can be when MCU read the data from a NAND FLASH &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Simsun; font-size: medium;"&gt;and send it to a PC. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Simsun; font-size: medium;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Simsun; font-size: medium;"&gt;It's quite important to our design because &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Simsun; font-size: medium;"&gt;we have a large amount of data to send. Do anyone done &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Simsun; font-size: medium;"&gt;any relative test?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 06:25:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291725#M11709</guid>
      <dc:creator>lamtsingleung</dc:creator>
      <dc:date>2013-03-12T06:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: The Full Speed USB actual Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291726#M11710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to test the for your own application. I doubt you will get 12 Mbps or really anything close.&lt;/P&gt;&lt;P&gt;Also wondering why you would send data from nand flash? Do you mean a USB stick?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 13:29:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291726#M11710</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2013-03-12T13:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: The Full Speed USB actual Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291727#M11711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used MSP430 as my design's MCU first. It also declare to support USB full Speed, but the actually speed is just 1.8 Mbps, far from 12 Mbps. So I wonder if KL2 series have the same problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My circuit collects data from a ADC and then saves it in a Micron NAND FLASH chip. So I will have to transport data from a NAND FLASH to a PC through the USB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 02:07:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291727#M11711</guid>
      <dc:creator>lamtsingleung</dc:creator>
      <dc:date>2013-03-13T02:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: The Full Speed USB actual Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291728#M11712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lam,&lt;/P&gt;&lt;P&gt;how is the project going?&lt;/P&gt;&lt;P&gt;Please keep us posted!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards! :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 21:19:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291728#M11712</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2013-03-27T21:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: The Full Speed USB actual Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291729#M11713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Lam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 12 Mbps is the bit rate, but actual throughput is less. The performance varies according with the Class, and if the MCU is used as Host or as Device, and depends of the used software (USBstack). Each transfer type (Interrupt, Bulk, Isochronous) have a maximum packet size, and number of transfers and transactions in a USB frame may vary depending of MCU load, but the frame rate is also constant (each 1ms).&lt;BR /&gt;Therefore, as Jim Donelson has commented, it is recommended to test the actual throughput in your specific application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information will be useful for you.&lt;BR /&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 01:07:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291729#M11713</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2013-04-03T01:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: The Full Speed USB actual Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291730#M11714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monica,&lt;/P&gt;&lt;P&gt;I modified the example code named USB_CDC,given by Freescale USB stack v4.03. Run the code on the Freedom KL25Z Board, and let the&amp;nbsp; KL25 sending ASCII code constantly using USB_Class_CDC_Interface_DIC_Send_Data(). I mearsured the data rate on PC and get about 3.8 Mbps. It is far from 12 Mbps. How can I get faster?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 03:36:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291730#M11714</guid>
      <dc:creator>lamtsingleung</dc:creator>
      <dc:date>2013-04-15T03:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: The Full Speed USB actual Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291731#M11715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;Thank for answering my question,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Now I measured&amp;nbsp; the data rate in PC and get a number of 3.8 Mbps. It's far from 12 Mbps. So I wonder how can I get a higher speed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I use MCU as a Device and&amp;nbsp; I choose CDC class.Will MSC class or others transfer faster than CDC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested the KL25Z USB speed using&amp;nbsp; APl given by freescale example code,which send data API is &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;USB_Class_CDC_Interface_DIC_Send_Data(). I do not see any relate parameter such as &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;packet size&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, frame rate introduce in the API user manual. So how can I modify those parameter and get a higher speed?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 03:59:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291731#M11715</guid>
      <dc:creator>lamtsingleung</dc:creator>
      <dc:date>2013-04-15T03:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: The Full Speed USB actual Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291732#M11716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using bulk endpoints (as CDC and MSD will) and no USB hub the FS USB can achieve a maximum throughput of 9.7MBit/s due to overhead in the USB protocoll itself. [MSD has additional MSD protocoll overhead and so the absolute highest throughput would probably be acheived with CDC class]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FS device in the Kinetis has a high interrupt overhead and the software design must also be correct to achieve this (making sure that the data for transfer is ready, in the correct buffer descriptor, when each packet is requested by the host and using the controller's double-buffering capability).&lt;/P&gt;&lt;P&gt;Each time the packet deadline is missed the USB device will send a NAK and it will miss out on a transmission slot, reducing the throughput equivalently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to measure the amount of NAKs that the controller is sending and identify where the bottle-neck is when there are phases with then since it is invariably in the software design since the USB device controller can achieve 9.7MBit/s as long as the SW prepares the data correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interrupt overhead is high and the KL25 is of course not as fast as a K70 (etc.) so its (overall) SW design may need to be more optimised to get the top end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 10:43:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291732#M11716</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2013-04-15T10:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: The Full Speed USB actual Speed?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291733#M11717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How did you modify the function to send data constantl?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 09:20:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/The-Full-Speed-USB-actual-Speed/m-p/291733#M11717</guid>
      <dc:creator>Ahmedahmed</dc:creator>
      <dc:date>2013-08-19T09:20:38Z</dc:date>
    </item>
  </channel>
</rss>

