<?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>Kinetis MicrocontrollersのトピックRe: [k20]: USB Attachment By D+/D- Only</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479723#M29327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it is clear that the removal of pull-up on D+ will cause detach event on USB Host.&amp;nbsp; A coming back question is, if I add&amp;nbsp; switch on D+/D-, does the open of switch cause USB Device see same detach event as well? In other word, can open/close of USB signal lines cause proper attach/detach event on both Host and Device while Vbus is kept ON all the time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2016 16:34:51 GMT</pubDate>
    <dc:creator>huishao2</dc:creator>
    <dc:date>2016-01-19T16:34:51Z</dc:date>
    <item>
      <title>[k20]: USB Attachment By D+/D- Only</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479719#M29323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My custom board is a CDC host powered by K20D50M. It has to keep powering/charging external USB CDC device through Vbus all the time but only enumerate it when necessary. Both CDC host and device and based on MQX and K20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A common practice for starting enumeration is to plug in USB plug to trigger a transition on Vbus, but my case needs to keep Vbus connected consistently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question is, is it possible to start the enumeration and USB detachment by only close and open on D+/D- wires by switches?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 20:23:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479719#M29323</guid>
      <dc:creator>huishao2</dc:creator>
      <dc:date>2016-01-09T20:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: [k20]: USB Attachment By D+/D- Only</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479720#M29324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the so later reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Kinetis USB module with D+ line with internal pull-up resistor, customer can use register to control D+ line enable or disable pull up.&lt;/P&gt;&lt;P&gt;So, customer can let USB device to disable the D+ pull up with related register setting, then after a while to enable the D+ pull up to simulate a USB device detach and attach action.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 06:25:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479720#M29324</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-01-14T06:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: [k20]: USB Attachment By D+/D- Only</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479721#M29325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The enumeration initiative is coming from my USB host. What I understand is USB host has its D+/D- pulled down. I guess it is the transition on D+ (changed by USB device) that actually triggers the enumeration. So, to make question more clear, how to take full control of enumeration on USB host side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 17:46:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479721#M29325</guid>
      <dc:creator>huishao2</dc:creator>
      <dc:date>2016-01-14T17:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: [k20]: USB Attachment By D+/D- Only</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479722#M29326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the so later reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the device disable the D+ line pull-up, the USB host will detect the device be detached. Then the device re-enable D+ line pull-up, the USB host will enumerate the device again. There doesn't do anything on USB host side. The USB host stack should support the device detach/attach operation.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 06:06:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479722#M29326</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-01-19T06:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: [k20]: USB Attachment By D+/D- Only</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479723#M29327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it is clear that the removal of pull-up on D+ will cause detach event on USB Host.&amp;nbsp; A coming back question is, if I add&amp;nbsp; switch on D+/D-, does the open of switch cause USB Device see same detach event as well? In other word, can open/close of USB signal lines cause proper attach/detach event on both Host and Device while Vbus is kept ON all the time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 16:34:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479723#M29327</guid>
      <dc:creator>huishao2</dc:creator>
      <dc:date>2016-01-19T16:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: [k20]: USB Attachment By D+/D- Only</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479724#M29328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The USB device doesn't detect the detach happens, while the USB device initiate the remove the D+ line pull up action, so the USB device should know when it was detached. And also the same situation for attach action, the USB device also know when the attach start.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 02:46:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479724#M29328</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-01-21T02:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: [k20]: USB Attachment By D+/D- Only</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479725#M29329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All control of D+/D- is from host side, the device has not idea what has happened. I did a quick test on my&amp;nbsp; self-powered MQX CDC device and received a few times of USB_APP_ERROR event when I manually broke the D+/D-. Problem is, I couldn't receive same USB event again when I repeated the closing and opening D+/D-.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:33:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479725#M29329</guid>
      <dc:creator>huishao2</dc:creator>
      <dc:date>2016-01-21T18:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: [k20]: USB Attachment By D+/D- Only</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479726#M29330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It need to remove the pull-up resistor on USB device side, otherwise to remove the D+ line pull-down resistor could not generate USB device detach action.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2016-01-22_13-06-39.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56055i961758D867BF0BFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2016-01-22_13-06-39.png" alt="2016-01-22_13-06-39.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 05:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k20-USB-Attachment-By-D-D-Only/m-p/479726#M29330</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-01-22T05:09:08Z</dc:date>
    </item>
  </channel>
</rss>

