<?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: Is USB bus-powered mode supported when using K50 as a USB device? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-USB-bus-powered-mode-supported-when-using-K50-as-a-USB-device/m-p/1069122#M57253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Q1. If I were to use the system as a bus-powered USB device, 
I assume that I have to change the value of USB_DEVICE_CONFIG_SELF_POWER from 1U to 0U; 
however, the comment says value of 0U is not supported. 
If so, how could I switch to bus-powered mode?&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This SDK is designed to be compatible with the TWR, this one uses the OpenSDA connector to power the board and it isn't possible to power the MCU from the TWR-SER device connector alone. In your design, you will only need to be sure the MCU is powered by the VBUS and change this define so in the descriptor this is updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2020 22:37:22 GMT</pubDate>
    <dc:creator>Alexis_A</dc:creator>
    <dc:date>2020-08-10T22:37:22Z</dc:date>
    <item>
      <title>Is USB bus-powered mode supported when using K50 as a USB device?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-USB-bus-powered-mode-supported-when-using-K50-as-a-USB-device/m-p/1069120#M57251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal was to&amp;nbsp;have a&amp;nbsp;MCU system as a bus-powered USB device for data transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I incorporated the SDK example, &lt;EM&gt;usb_device_msc_sdcard_lite&lt;/EM&gt;, into my project, the USB device is working in general. But for some of our K50 systems, the operation current is high (over 300mA); and my experience was that the USB port from a host (a laptop, for instance) wasn't able to supply such an amount of current and the K50 system could not be powered up by a computer USB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I learned that the default current limit can be provided by a USB VBus is 100mA, I tried to increase the limit by changing&amp;nbsp;&lt;STRONG&gt;USB_DEVICE_MAX_POWER&lt;/STRONG&gt; setting in &lt;STRONG&gt;&lt;EM&gt;usb_device_descriptor.h&lt;/EM&gt;&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;USB_DEVICE_CONFIG_SELF_POWER&lt;/STRONG&gt;&amp;nbsp;macro in &lt;STRONG&gt;&lt;EM&gt;usb_device_config.h&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here comes my questions:&lt;/P&gt;&lt;P&gt;Q1. If I were to use the system&amp;nbsp;&lt;SPAN&gt;as a bus-powered USB device, I assume that I have to change the value of &lt;STRONG&gt;USB_DEVICE_CONFIG_SELF_POWER&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from 1U to 0U; however, the comment says value of 0U is not supported. If so, how could I switch to bus-powered mode?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q2. Is the default maximum USB current really 100mA? I measured the USB Vbus current with &lt;STRONG&gt;USB_DEVICE_MAX_POWER&amp;nbsp;&lt;/STRONG&gt;= 0x32U (100mA) and found that our normal systems draw about 240 mA, and the unusual systems draw about 300 mA (in this case the USB voltage regulator output dropped to 1.5V as opposed to the expected 3.3V).&amp;nbsp;Why&amp;nbsp;the Vbus current is beyond the limit?&lt;/P&gt;&lt;P&gt;I also experimented with &lt;STRONG&gt;USB_DEVICE_MAX_POWER &lt;/STRONG&gt;increased&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;to 0xE1 (450 mA), the measured Vbus currents&amp;nbsp;are the same as with &lt;STRONG&gt;USB_DEVICE_MAX_POWER&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;= 0x32U&lt;/SPAN&gt;&amp;nbsp;for&amp;nbsp;both the normal system and the unusual system that draws more current.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The schematic diagram of the USB connection is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 19:08:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-USB-bus-powered-mode-supported-when-using-K50-as-a-USB-device/m-p/1069120#M57251</guid>
      <dc:creator>yinni</dc:creator>
      <dc:date>2020-08-06T19:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB bus-powered mode supported when using K50 as a USB device?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-USB-bus-powered-mode-supported-when-using-K50-as-a-USB-device/m-p/1069121#M57252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Q2. Is the default maximum USB current really 100mA?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;BR /&gt;Yes.&amp;nbsp; The USB 2.0 standard says that a device shall draw no more than 100 mA at the start of enumeration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The device may request, and the host may or may not grant the request for more current during the enumeration process.&amp;nbsp; USB 3.x does allow for more current.&amp;nbsp; Most PCs will allow more current to be taken.&amp;nbsp; However at some point the host will see some amount as 'to much' and shut the port down.&amp;nbsp; Getting the port operating again can be a real challenge on some PCs.&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I measured the USB Vbus current with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;USB_DEVICE_MAX_POWER&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;= 0x32U (100mA) and found that our normal systems draw about 240 mA, and the unusual systems draw about 300 mA (in this case the USB voltage regulator output dropped to 1.5V as opposed to the expected 3.3V).&amp;nbsp;Why&amp;nbsp;the Vbus current is beyond the limit?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;The setting is not a current limit nor a constant current source. It is a request to the host. Your circuit will take what your circuit takes.&amp;nbsp; The internal regulator is not intended for loads of such currents.&lt;BR /&gt;&lt;BR /&gt;Also there should be more capacitance at the input of the regulator than just the 0.1uF cap.&lt;BR /&gt;As well as considering the advice about putting ceramic caps at the end of a long USB cable.&lt;BR /&gt;The quality of the USB cable itself can also become an issue at higher currents.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.analog.com/media/en/technical-documentation/application-notes/an88f.pdf" title="https://www.analog.com/media/en/technical-documentation/application-notes/an88f.pdf"&gt;https://www.analog.com/media/en/technical-documentation/application-notes/an88f.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2020 13:00:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-USB-bus-powered-mode-supported-when-using-K50-as-a-USB-device/m-p/1069121#M57252</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2020-08-07T13:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB bus-powered mode supported when using K50 as a USB device?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-USB-bus-powered-mode-supported-when-using-K50-as-a-USB-device/m-p/1069122#M57253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Q1. If I were to use the system as a bus-powered USB device, 
I assume that I have to change the value of USB_DEVICE_CONFIG_SELF_POWER from 1U to 0U; 
however, the comment says value of 0U is not supported. 
If so, how could I switch to bus-powered mode?&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This SDK is designed to be compatible with the TWR, this one uses the OpenSDA connector to power the board and it isn't possible to power the MCU from the TWR-SER device connector alone. In your design, you will only need to be sure the MCU is powered by the VBUS and change this define so in the descriptor this is updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 22:37:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-USB-bus-powered-mode-supported-when-using-K50-as-a-USB-device/m-p/1069122#M57253</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-08-10T22:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB bus-powered mode supported when using K50 as a USB device?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-USB-bus-powered-mode-supported-when-using-K50-as-a-USB-device/m-p/1069123#M57254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/nxf46116"&gt;nxf46116&lt;/A&gt;‌&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/bobpaddock"&gt;bobpaddock&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Bob and Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for the help. I took Alexis's advice and changed&amp;nbsp;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;USB_DEVICE_CONFIG_SELF_POWER&lt;/STRONG&gt; to 0U and set&amp;nbsp;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold;"&gt;USB_DEVICE_MAX_POWER&lt;/STRONG&gt; to 0xE1 (450mA). The current output measured the same as I described in my original question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ormal systems draw about 240 mA, and the unusual systems draw about 300 mA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Any further suggestion?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Many thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 15:20:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-USB-bus-powered-mode-supported-when-using-K50-as-a-USB-device/m-p/1069123#M57254</guid>
      <dc:creator>yinni</dc:creator>
      <dc:date>2020-08-11T15:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB bus-powered mode supported when using K50 as a USB device?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-USB-bus-powered-mode-supported-when-using-K50-as-a-USB-device/m-p/1069124#M57255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yinni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since your device draws too much current I think it will be better to use an external source of power and use the&amp;nbsp;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;USB_DEVICE_CONFIG_SELF_POWER = 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 22:55:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-USB-bus-powered-mode-supported-when-using-K50-as-a-USB-device/m-p/1069124#M57255</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-08-11T22:55:57Z</dc:date>
    </item>
  </channel>
</rss>

