<?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>LPC Microcontrollers中的主题 USB reference designs?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-reference-designs/m-p/574487#M19037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mark03 on Mon Sep 10 10:13:07 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I intend to set up the LPC43xx USB OTG port so that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--My board can be powered by a USB charging cord or USB host, or by an on-board battery (using a Li-ion charge controller).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--The LPC43xx can function as a USB device when connected to a PC, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the cases it has to handle are&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) powered by USB, with no host at the other end (dumb charger only)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) powered by USB, with real USB host at the other end&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) powered by battery, with USB host at the other end (host not capable of supplying power)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) powered by battery (nothing connected to USB)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone point me toward a reference design or circuit examples for accomplishing this?&amp;nbsp; The official LPC43xx user guide is pretty thin on the necessary external components for getting USB power right (no circuit examples at all), and I couldn't find any app notes covering USB interface design.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:58:53 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:58:53Z</dc:date>
    <item>
      <title>USB reference designs?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-reference-designs/m-p/574487#M19037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mark03 on Mon Sep 10 10:13:07 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I intend to set up the LPC43xx USB OTG port so that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--My board can be powered by a USB charging cord or USB host, or by an on-board battery (using a Li-ion charge controller).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--The LPC43xx can function as a USB device when connected to a PC, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the cases it has to handle are&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) powered by USB, with no host at the other end (dumb charger only)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) powered by USB, with real USB host at the other end&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) powered by battery, with USB host at the other end (host not capable of supplying power)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) powered by battery (nothing connected to USB)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone point me toward a reference design or circuit examples for accomplishing this?&amp;nbsp; The official LPC43xx user guide is pretty thin on the necessary external components for getting USB power right (no circuit examples at all), and I couldn't find any app notes covering USB interface design.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-reference-designs/m-p/574487#M19037</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: USB reference designs?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-reference-designs/m-p/574488#M19038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pacman on Sun Oct 14 20:16:05 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Since noone replied yet, I'll give you what I have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that NXP's support group will comment on my answer; I'm no expert in this field!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look at the block-diagram for the 43xx, and find VBAT, you'll see how it connects to VDD _AND_ VBAT using two diodes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So try investigating how you could connect diodes from the USB-port or an external battery.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-If there's +5V on the USB, you don't have to worry whether or not it comes from a battery, a computer or a dumb charger; you can find out whether or not there is a connection to a computer using software.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This could be a possible solution. I haven't tested it and I cannot guarantee that it doesn't blow up your desk...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+5V from USB-connector -&amp;gt; U1: LD1117-33; gives 3.3V -&amp;gt; D1: 4148 -&amp;gt; VDDREG+VDDIO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+5V from USB-connector -&amp;gt; VBUS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+5V..9V from battery -&amp;gt; U2: LD1117-33 -&amp;gt; D2: 4148 -&amp;gt; VDDREG+VDDIO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remember: There's a voltage drop over a diode; approximately 0.6V - 0.7V.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...So if you want a 3.3V regulator on a 5V supply, the 5V will drop to 4.3V over a diode, then the regulator will take the 1.5V, which means you got 2.8V left for your microcontroller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why didn't I just share a single LD1117 and connect two diodes to this single LD1117 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The LD1117 needs an input voltage that is 1.5V higher than the desired output voltage. I'm not sure that it'll adjust correctly, if the input voltage is below 5.0V.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After the voltage is adjusted to 3.3V, I've put a diode in, because then you'll be able to connect power from more sources.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT BEWARE: Do not add an external power supply plus USB power at the same time; eg. Do not use two power supplies that are both connected to the mains in some way, or you could fry your microcontroller (plus your PC).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In other words: One mains power supply (which includes USB), and one battery (you could use more batteries, but that doesn't really make sense).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you're experimenting, it might be a good idea to have a USB-hub between your computer and your electronics. Also remember to measure your voltages before connecting your device to your PC; even though you're gong via a USB-hub.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And... Don't take my word for how to do this. Make sure you understand how it should be done, before you do it. ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Love&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jens&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-reference-designs/m-p/574488#M19038</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:54Z</dc:date>
    </item>
  </channel>
</rss>

