<?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: How to detect a USB cable was connected to my device? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-a-USB-cable-was-connected-to-my-device/m-p/358358#M18048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2014 06:53:47 GMT</pubDate>
    <dc:creator>eliiser</dc:creator>
    <dc:date>2014-12-18T06:53:47Z</dc:date>
    <item>
      <title>How to detect a USB cable was connected to my device?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-a-USB-cable-was-connected-to-my-device/m-p/358356#M18046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're using a K60 with our own HW, but it applies to TOWER boards as well. We are working as a device only, and the computer is the host, with a CDC driver.&lt;/P&gt;&lt;P&gt;How to detect that a USB cable has been connected to the device? The other side can either be a computer or a charger. With a computer on the other end it's fairly simple - there are various interrupts and messages sent to the USB stack which we can use.&lt;/P&gt;&lt;P&gt;But when connecting to a USB charger (a simple power supply with a USB jack) we only see a SLEEP interrupt and no message (which is to be expected). From the description of the SLEEP interrupt (in USB0_ISTAT) it doesn't look like it's the correct way to identify USB connection.&lt;/P&gt;&lt;P&gt;Is there some other interrupt/register that can tell us only that the USB cable is connected to something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 12:11:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-a-USB-cable-was-connected-to-my-device/m-p/358356#M18046</guid>
      <dc:creator>eliiser</dc:creator>
      <dc:date>2014-12-17T12:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect a USB cable was connected to my device?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-a-USB-cable-was-connected-to-my-device/m-p/358357#M18047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eli:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purpose you have to connect &lt;STRONG&gt;VBUS&lt;/STRONG&gt; line to a 5V tolerant GPIO pin and use that pin to detect when a Host cable is connected to your device. This is because K60 does not have an active register that indicates when VBUS is present.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&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, 18 Dec 2014 02:39:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-a-USB-cable-was-connected-to-my-device/m-p/358357#M18047</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-12-18T02:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect a USB cable was connected to my device?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-a-USB-cable-was-connected-to-my-device/m-p/358358#M18048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 06:53:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-a-USB-cable-was-connected-to-my-device/m-p/358358#M18048</guid>
      <dc:creator>eliiser</dc:creator>
      <dc:date>2014-12-18T06:53:47Z</dc:date>
    </item>
  </channel>
</rss>

