<?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>Vybrid ProcessorsのトピックCharger Detect registers</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/Charger-Detect-registers/m-p/639792#M5764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I work on a SOM from Toradex, based on VF61 SoC.&lt;/P&gt;&lt;P&gt;I'm trying to investigate the built in charger detection mechanism in the Vybrid SoC, so I downloaded the reference manual (VFXXXRM Rev. 0, 10/2016)&lt;/P&gt;&lt;P&gt;I did some tests, both with a dedicated wall charger and with a host charger, but I can't understand completely how registers USB_ANALOG_USB0_CHRG_DETECT and USB_ANALOG_USB0_CHRG_DETECT_STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set FORCE_DETECT bit in the USB_ANALOG_USB0_CHRG_DETECT register I'm able to distinguish three different conditions from USB_ANALOG_USB0_CHRG_DETECT_STATUS register:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;nothing is connected to USB: PLUG_CONTACT = CHRG_DETECTED = DM_STATE = DP_STATE = 1 (all the 4 bits to 1)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;a dedicated charger is connected: PLUG_CONTACT = 0 CHRG_DETECTED = DM_STATE = DP_STATE = 1 (three bits to 1 and one bit to 0)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;a host device (my laptop): PLUG_CONTACT = DM_STATE = DP_STATE = 0 CHRG_DETECTED = 1(three bits to 0 and one bit to 1)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Some&amp;nbsp;questions came out:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;how does bit CHRG_DET_STATUS in USB_ANALOG_USB0_CHRG_DETECT register works? This is a read-only bit, but it's always zero (even if the charger is conneted).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;based on reference manual, PLUG_CONTACT&amp;nbsp;bit should be 0 when the USB plug has not been contacted, but in my test it's the opposite. How it is supposed to work?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2016 09:51:17 GMT</pubDate>
    <dc:creator>vix</dc:creator>
    <dc:date>2016-12-01T09:51:17Z</dc:date>
    <item>
      <title>Charger Detect registers</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Charger-Detect-registers/m-p/639792#M5764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I work on a SOM from Toradex, based on VF61 SoC.&lt;/P&gt;&lt;P&gt;I'm trying to investigate the built in charger detection mechanism in the Vybrid SoC, so I downloaded the reference manual (VFXXXRM Rev. 0, 10/2016)&lt;/P&gt;&lt;P&gt;I did some tests, both with a dedicated wall charger and with a host charger, but I can't understand completely how registers USB_ANALOG_USB0_CHRG_DETECT and USB_ANALOG_USB0_CHRG_DETECT_STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set FORCE_DETECT bit in the USB_ANALOG_USB0_CHRG_DETECT register I'm able to distinguish three different conditions from USB_ANALOG_USB0_CHRG_DETECT_STATUS register:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;nothing is connected to USB: PLUG_CONTACT = CHRG_DETECTED = DM_STATE = DP_STATE = 1 (all the 4 bits to 1)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;a dedicated charger is connected: PLUG_CONTACT = 0 CHRG_DETECTED = DM_STATE = DP_STATE = 1 (three bits to 1 and one bit to 0)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;a host device (my laptop): PLUG_CONTACT = DM_STATE = DP_STATE = 0 CHRG_DETECTED = 1(three bits to 0 and one bit to 1)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Some&amp;nbsp;questions came out:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;how does bit CHRG_DET_STATUS in USB_ANALOG_USB0_CHRG_DETECT register works? This is a read-only bit, but it's always zero (even if the charger is conneted).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;based on reference manual, PLUG_CONTACT&amp;nbsp;bit should be 0 when the USB plug has not been contacted, but in my test it's the opposite. How it is supposed to work?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 09:51:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Charger-Detect-registers/m-p/639792#M5764</guid>
      <dc:creator>vix</dc:creator>
      <dc:date>2016-12-01T09:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Charger Detect registers</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Charger-Detect-registers/m-p/639793#M5765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vix,&lt;/P&gt;&lt;P&gt;You could take a look at Chapter 14 “USB Device Charger Detection (USBDCD) Module” of the “Kinetis Peripheral Module Quick Reference” document, as a reference:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf"&gt;http://www.nxp.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will be useful for you.&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 18:07:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Charger-Detect-registers/m-p/639793#M5765</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2016-12-16T18:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Charger Detect registers</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Charger-Detect-registers/m-p/639794#M5766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;the content of Chapter 14 “USB Device Charger Detection (USBDCD) Module” of the “Kinetis Peripheral Module Quick Reference” is not so useful, because it refers to a different platform and the registers and bit definition is quite different.&lt;/P&gt;&lt;P&gt;The first paragraphs of chapter 14 clarify a little bit the USB charger specification, but they're almost clear.&lt;/P&gt;&lt;P&gt;My problem is what I see in VF61 registers when different USB chargers are connected; this seems a little bit different from what written in VFxx reference manual.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 14:37:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Charger-Detect-registers/m-p/639794#M5766</guid>
      <dc:creator>vix</dc:creator>
      <dc:date>2016-12-19T14:37:37Z</dc:date>
    </item>
  </channel>
</rss>

