<?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 LPC177x/178x USB configuration clarification in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC177x-178x-USB-configuration-clarification/m-p/524202#M6838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jdupre on Mon Oct 28 17:31:17 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;On the LPC 177x/178x chips, is it possible to configure USB1 as a regular device (not OTG device) while simultaneously using USB2 as host?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;User Manual 14.7.3&amp;nbsp; (Figure 51) shows host on USB1 and device on USB2.&amp;nbsp; There is no mention of the reversed configuration with device on USB1 and host on USB2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Section 14.8.5 (Table 314) lists STCTRL PORT_FUNC bits:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Controls connection of USB functions (see Figure 52). Bit 0 is set or cleared by hardware&lt;BR /&gt;when B_HNP_TRACK or A_HNP_TRACK is set and HNP succeeds. See Section 14.9.&lt;BR /&gt;00: U1 = device (OTG), U2 = host&lt;BR /&gt;01: U1 = host (OTG), U2 = host&lt;BR /&gt;10: Reserved&lt;BR /&gt;11: U1 = host, U2 = device&lt;BR /&gt;In a device-only configuration, the following values are allowed:&lt;BR /&gt;00: U1 = device. The USB device controller signals are mapped to the U1 port:&lt;BR /&gt;USB_CONNECT1, USB_UP_LED1, USB_D+1, USB_D-1.&lt;BR /&gt;11: U2 = device. The USB device controller signals are mapped to the U2 port:&lt;BR /&gt;USB_CONNECT2, USB_UP_LED2, USB_D+2, USB_D-2.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what is meant by "In a device-only configuration".&amp;nbsp; Does that mean no hosts?&amp;nbsp; Or does it only mean not operating in OTG mode?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I set STCTRL bits 1:0 to 00,&amp;nbsp; can I use USB1 as device (without the extra OTG hardware) while simultaneously using USB2 as host???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Joe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:47:56 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:47:56Z</dc:date>
    <item>
      <title>LPC177x/178x USB configuration clarification</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC177x-178x-USB-configuration-clarification/m-p/524202#M6838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jdupre on Mon Oct 28 17:31:17 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;On the LPC 177x/178x chips, is it possible to configure USB1 as a regular device (not OTG device) while simultaneously using USB2 as host?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;User Manual 14.7.3&amp;nbsp; (Figure 51) shows host on USB1 and device on USB2.&amp;nbsp; There is no mention of the reversed configuration with device on USB1 and host on USB2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Section 14.8.5 (Table 314) lists STCTRL PORT_FUNC bits:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Controls connection of USB functions (see Figure 52). Bit 0 is set or cleared by hardware&lt;BR /&gt;when B_HNP_TRACK or A_HNP_TRACK is set and HNP succeeds. See Section 14.9.&lt;BR /&gt;00: U1 = device (OTG), U2 = host&lt;BR /&gt;01: U1 = host (OTG), U2 = host&lt;BR /&gt;10: Reserved&lt;BR /&gt;11: U1 = host, U2 = device&lt;BR /&gt;In a device-only configuration, the following values are allowed:&lt;BR /&gt;00: U1 = device. The USB device controller signals are mapped to the U1 port:&lt;BR /&gt;USB_CONNECT1, USB_UP_LED1, USB_D+1, USB_D-1.&lt;BR /&gt;11: U2 = device. The USB device controller signals are mapped to the U2 port:&lt;BR /&gt;USB_CONNECT2, USB_UP_LED2, USB_D+2, USB_D-2.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what is meant by "In a device-only configuration".&amp;nbsp; Does that mean no hosts?&amp;nbsp; Or does it only mean not operating in OTG mode?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I set STCTRL bits 1:0 to 00,&amp;nbsp; can I use USB1 as device (without the extra OTG hardware) while simultaneously using USB2 as host???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Joe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:47:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC177x-178x-USB-configuration-clarification/m-p/524202#M6838</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC177x/178x USB configuration clarification</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC177x-178x-USB-configuration-clarification/m-p/524203#M6839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Tue Oct 29 09:42:24 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;On the LPC 177x/178x chips, is it possible to configure USB1 as a regular device (not OTG device) while simultaneously using USB2 as host?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's possible by setting STCTRL:PORT_FUNC to 00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Assign pin functions, as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;USB1 - device&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; P0.29 - USB_D+1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; P0.30 - USB_D-1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; P1.30 - USB_VBUS - input for VBUS(5V) detection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; P2.9&amp;nbsp; - #USB_CONNECT1 - output to enable 1k5 D+ pull-up resistor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;USB2 - host&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; P0.31 - USB_D+2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; USB_D-2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; P1.30 - USB_PWRD2 - input to detect VBUS(5V) voltage&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; P1.31 - #USB_OVRCR2 - input to get over-current flag&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; P0.12 - #USB_PPWR2 - output to enable an external VBUS(5V) power switch&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:47:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC177x-178x-USB-configuration-clarification/m-p/524203#M6839</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC177x/178x USB configuration clarification</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC177x-178x-USB-configuration-clarification/m-p/524204#M6840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kiantek on Wed Jul 29 04:39:05 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Tsuneo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greeting. Can you share with us how you handle the USB2 Over-current Flag?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPCOPEN v2.10 on LPC1788. I able to modify the code and change the host from U1 to U2. However, I face problem when I try to enable Over-current protection. The code is working fine if I do not define P1.31 as USB_OVRCR2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added "Chip_IOCON_PinMux(LPC_IOCON, 1, 31, IOCON_MODE_INACT, IOCON_FUNC1);"&amp;nbsp; in the HAL_USBInit(...).&amp;nbsp; But the power is switch off and the board can't read the thumbdrive. Is there anyway to enable the power? i.e. Vout?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;KT&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:47:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC177x-178x-USB-configuration-clarification/m-p/524204#M6840</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:47:58Z</dc:date>
    </item>
  </channel>
</rss>

