<?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: Confusion about ID-pin used in USB-OTG in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Confusion-about-ID-pin-used-in-USB-OTG/m-p/227725#M4646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After internet research, I found some pix describes USB macro A to macro B cable. Obviously, ID-pin in device A is always grounded, and ID-pin in device B is always open. The ID pins of each side are disconnected in cable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result, device A detects grounded ID-pin should offer VBUS, and device B detects open-ended ID-pin should not offer VBUS. Device B can only source VBUS after HNP negotiation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for Chinese in attached pix, but it is quite clear. Meanwhile USB user guide KLQRUG.pdf (pg98) presents OTG schematics as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="USB_ID.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119177iBD139BB8CDA95CFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="USB_ID.gif" alt="USB_ID.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Mar 2013 04:44:22 GMT</pubDate>
    <dc:creator>allankliu</dc:creator>
    <dc:date>2013-03-22T04:44:22Z</dc:date>
    <item>
      <title>Confusion about ID-pin used in USB-OTG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Confusion-about-ID-pin-used-in-USB-OTG/m-p/227724#M4645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KL2x"&gt;&lt;STRONG&gt;KL25Z&lt;/STRONG&gt;&lt;/A&gt; is one of cheapest microcontrollers with USB-OTG. I am going to design a USB-OTG board as Android peripherals, something like ADK, USB host shield for Arduino, IOIO based upon PIC24F256.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following components:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Samsung Galaxy Nexus i9250 as Android equipment, with USB host controller APK;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-KL25Z"&gt;FRDM-KL25Z&lt;/A&gt;, which is configured as USB device only. Therefore, I can only use its as USB CDC device and its OpenSDA debugger for external target;&lt;/LI&gt;&lt;LI&gt;KL25Z128 sample, to be applied from Freescale, for my new OTG board.&lt;/LI&gt;&lt;LI&gt;TPS2055A USB power switch, to turn on/off VBUS from my new OTG board.&lt;/LI&gt;&lt;LI&gt;LDO for on-board circuit 3.3V, &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KL2x"&gt;KL25Z128&lt;/A&gt; on-chip LDO is used as backup via a jumper.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I am confused about ID-pin in mini/macro A/B sockets and cables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a micro B OTG cable with i9250, which is macro B plug (to mobile) and standard A acceptance. By chaining it to other cables, including standard A-standard B, standard A-mini B, standard A-macro B, it works flawlessly with many USB devices, such as ST-Link debugger (B), &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-KL25Z"&gt;FRDM-KL25Z&lt;/A&gt; OpenSDA debugger (mini B), CDMA feature phone (macro B).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since macro B-Standard A acceptance plus standard A-macro B cable becomes a macro B to macro B cable. I swap the plugs between Nexus and other macro B devices. I found the VBUS output is disabled after swap. After checking specification, this chaining cable is not encouraged, and its blocks ID-pin, because ID-pin is not available in standard A sockets. Therefore,&lt;STRONG&gt; ID-pin of OTG cable must be always be GND. And ID-pin of standard A-macro B cable must be always open or 1MOhm to GND.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What kind of OTG cable is best choice if I want a single cable for connecting OTG devices? &lt;/STRONG&gt;I can not find many macro A cable from the market, including macro A-macro B cables. Although macro A/B acceptance is available. Actually mainstream OTG devices usually use macro B acceptance, or mini A/B acceptance like M52259DEMOKIT. &lt;STRONG&gt;Can I use macro B acceptance in device A as well as device B?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How ID-pin be detected by A/B devices? &lt;/STRONG&gt;According to USB spec, if ID-pin is GND, it is device A, if ID-pin is open, it is device B. Device A source VBUS. After HNP, VBUS will be switched to device B. However, how this happens if ID-pin is connected both devices? It only makes sense if ID-pin is isolated between A/B, otherwise grounded ID-pin will be read by both devices and start VBUS contention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What is suggestion on A/B devices' acceptances, GND or open?&lt;/STRONG&gt; If ID-pin ground and open is done in cable, ID-pin of socket should be open. PC USB cable is ignore ID-pin and always offer VBUS. If ID-pin is grounded, then device will always offer VBUS as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is it necessary to detect VBUS with ADC?&lt;/STRONG&gt; I am always afraid of VBUS contention, is that necessary?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found anther thread for ID-pin as &lt;A href="https://community.nxp.com/message/87286"&gt;Re: Kinetis K40 USB OTG&lt;/A&gt;&lt;/P&gt;&lt;P&gt;An external PHY is used, it seems ID-pin is programmable. Why a OTG device wants to define different type by programming ID-pin?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Mar 2013 02:51:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Confusion-about-ID-pin-used-in-USB-OTG/m-p/227724#M4645</guid>
      <dc:creator>allankliu</dc:creator>
      <dc:date>2013-03-16T02:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion about ID-pin used in USB-OTG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Confusion-about-ID-pin-used-in-USB-OTG/m-p/227725#M4646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After internet research, I found some pix describes USB macro A to macro B cable. Obviously, ID-pin in device A is always grounded, and ID-pin in device B is always open. The ID pins of each side are disconnected in cable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result, device A detects grounded ID-pin should offer VBUS, and device B detects open-ended ID-pin should not offer VBUS. Device B can only source VBUS after HNP negotiation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for Chinese in attached pix, but it is quite clear. Meanwhile USB user guide KLQRUG.pdf (pg98) presents OTG schematics as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="USB_ID.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119177iBD139BB8CDA95CFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="USB_ID.gif" alt="USB_ID.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 04:44:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Confusion-about-ID-pin-used-in-USB-OTG/m-p/227725#M4646</guid>
      <dc:creator>allankliu</dc:creator>
      <dc:date>2013-03-22T04:44:22Z</dc:date>
    </item>
  </channel>
</rss>

