<?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 Does it possible to switch USB role actively on lpc1768? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Does-it-possible-to-switch-USB-role-actively-on-lpc1768/m-p/519048#M2962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cgha on Mon Nov 05 19:51:21 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When on reset ,poll a special pin, for example, P1.5 ,if it is low initilize to device, otherwise, to host.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When on running, poll P1.5 to check if it should switch role, if need, just softwareReset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cgha&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:36:40 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:36:40Z</dc:date>
    <item>
      <title>Does it possible to switch USB role actively on lpc1768?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Does-it-possible-to-switch-USB-role-actively-on-lpc1768/m-p/519048#M2962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cgha on Mon Nov 05 19:51:21 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When on reset ,poll a special pin, for example, P1.5 ,if it is low initilize to device, otherwise, to host.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When on running, poll P1.5 to check if it should switch role, if need, just softwareReset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cgha&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:36:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Does-it-possible-to-switch-USB-role-actively-on-lpc1768/m-p/519048#M2962</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Does it possible to switch USB role actively on lpc1768?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Does-it-possible-to-switch-USB-role-actively-on-lpc1768/m-p/519049#M2963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Daniel Widyanto on Wed Nov 07 23:27:22 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are thinking to implement similar USB OTG scheme, yes it's possible to switch the USB port role (host -&amp;gt; device, device -&amp;gt; host) on the fly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact, this is the default implementation for USB OTG in LPC17xx. When USB cable ID pin is low, the OTG transceiver will interrupt the MCU, then the MCU is configuring itself for Host function (Refer to OTGStCtrl, PORT_FUNC bit, and restart the OHCI registers). Otherwise, the MCU will configure the port as USB device. See Fig 40 and Fig 41 UM10360 LPC17xx User Manual for the clarification.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't use the OTG transceiver, then you need to figure out how to connect / disconnect the D+ pull up. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:36:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Does-it-possible-to-switch-USB-role-actively-on-lpc1768/m-p/519049#M2963</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Does it possible to switch USB role actively on lpc1768?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Does-it-possible-to-switch-USB-role-actively-on-lpc1768/m-p/519050#M2964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nxpUSBlib team on Mon Nov 12 11:07:04 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The latest release of nxpUSBlib, v0.98, includes a new dual role example (Example_KeyboardHostDevice) which compiles in both the host and device stacks at the same time and provides a means to switch between the two on the fly via an external event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This new example does not run the controller in OTG mode nor does it make use of the ID pin in the USB cable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This new example is experimental, which in this case means it works but is not reasonably documented or tested.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:36:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Does-it-possible-to-switch-USB-role-actively-on-lpc1768/m-p/519050#M2964</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:36:41Z</dc:date>
    </item>
  </channel>
</rss>

