• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » DaVinci™ Video Processors » DM3x DaVinci Video Processor Forum » USB ID Pin
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

USB ID Pin

USB ID Pin

This question is not answered
MikeP12806
Posted by MikeP12806
on Aug 25 2009 09:43 AM
Intellectual435 points

Hello,

 

Just wondering if I can get some clarification on the internal operation of the ID pin for the USB.  The datasheet only has a single line reguarding its operation.

We are trying to get the OTG functionality working and looking at the ID pin, it wants it either grounded or floating, but no pull up on the line.  It doesn't appear the is an internal pull-up either.  How does this actually end up working out, is there a very low voltage comparitor or what?  It seems strange because for normal device/host mode per the eval kits, you pull the line up/down.

Also, it implied that it looked at this pin to determine which mode to power up in, but the USB cable could potentially be plugged in and tie the ID pin to ground after the USB module is up and running, does the module need to be restarted?  If so, where/how can the ID pin be monitored, as I'm not seeing a register address to accesss the state of this input.

 

Thanks for any help you can give.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Juan Gonzales
    Posted by Juan Gonzales
    on Aug 25 2009 10:48 AM
    Mastermind33975 points

    You are correct, USB_ID should be pulled up via 10K resistor.  USB_ID status is reflected in DEVCTL.BDEVICE register bit; see USB UG for more detaisl (http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=sprued2c)

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MikeP12806
    Posted by MikeP12806
    on Aug 25 2009 11:04 AM
    Intellectual435 points

    Juan,

     

    On the link you sent, it says "If using OTG or mini-USB connector, this pin will be set properly via the cable/connector configuration".  It doesn't say to pull up/down this line.  But the cable connects the ID pin to ground for host mode and leaves it floating for device mode.

     

    Further, the357 usb users guide (http://www.ti.com/litv/pdf/sprugh3) says the pin should be open or tied to ground via cable.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Juan Gonzales
    Posted by Juan Gonzales
    on Aug 25 2009 13:45 PM
    Mastermind33975 points

    Mike,

    I do realize what the document suggests, but have verified with our factory team that indeed a small pull-up resistor is needed on USB_ID pin.  We will correct the documentation.  Also, I referred you to the doc more for the register settings, acknowledging the USB_ID pin suggestions are incorrect.  Thank you for your understanding.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MikeP12806
    Posted by MikeP12806
    on Aug 25 2009 14:35 PM
    Intellectual435 points

    Juan,

     

    Could I also suggest that a note be added to the USB User Guide describing that the state of the USB ID pin can be read from the DEVCTL.BDEVICE bit.  The only reference to the ID pin in that document is the pin description and the register itself just says that it tells what state the USB controller is in, not that is determined its state from the ID pin.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Juan Gonzales
    Posted by Juan Gonzales
    on Aug 25 2009 16:15 PM
    Mastermind33975 points

    Mike, sure thing.  This sounds like a reasonable request.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • swami
    Posted by swami
    on Aug 26 2009 08:06 AM
    Expert7435 points

    Mike,

    I assume your are discussion about DaVinci USB Controller.  Can you specify which particular DaVinci Device are you refering to?

    The ID pin is used by the USB controller to determine the intented role that the controller has to switch to depending on the end of the cable that gets plugged into the USB connector.

    The fact that you are trying to test OTG the ID pin should be directly connected to the USB controller ID pin on the DaVinci device.  Pl. refer to the DVM schematics for the same.

    regards

    swami

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MikeP12806
    Posted by MikeP12806
    on Aug 26 2009 09:26 AM
    Intellectual435 points

    I'm using the DM357.

     

    I do have the ID on the DM357 tied to the ID pin on the connector.  The issue is if the ID pin should be pulled up or left open as refered from the user guide.  Juan mentioned the documentation is in error and the ID should be pulled up via a 10k resistor.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Juan Gonzales
    Posted by Juan Gonzales
    on Aug 26 2009 09:41 AM
    Mastermind33975 points

    Just to be clear, the value of the resistor is not strict, you need a small pull up resistor.  I have seen anywhere from 1.5K to 20K being suggested, but I know a customer that actually implemented this using a 10K, thus my recommendation.

    Remember that the USB ID pin is pin4 on the cable and this pin is either joined with pin5 (ground) or left unconnected (floating). The mini-A connector grounds the ID pin with Ground pin so that the ID Pin state is low. Up on seeing the state of the ID pin being low, the USB controller responds by assuming a Host role. If it is left floating, you need to have a weak pull-up so that the ID pin is High and the USB controller will respond by assuming the role of a Device.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MikeP12806
    Posted by MikeP12806
    on Sep 18 2009 17:02 PM
    Intellectual435 points

    Juan,

    I tried reading the BDEVICE register to see if the ID pin is pulled high or low, but it does not reflect the current state of the pin.  It does mention it is only valid when the session is valid.

     

    Is there any way to get the status of that pin without a session or somehow fool the controller into thinking there is a valid session so it will latch the state of the pin?

     

    Thanks,

     

    Mike

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • swami
    Posted by swami
    on Sep 18 2009 22:47 PM
    Expert7435 points

    Mike,

    There is no need to monitor the ID pin to understand the state on DM35x, DM644x, DM646x, OMAPL13x platforms,

    You need to set the session bit in the controller.  In response to this the controller will do the required ID pin sense and appropriately generate either

    • a Drvvbus interrupt (if A end of cable is plugged in) or
    • initate a SRP on the USB bus (if vbus is not there) or
    • raise a reset interrupt (if VBUS is available and host issues the reset on the bus). 

    The later 2 cases signify Device mode while the 1st scenario signifies Host.

    Another interrupt you need to be aware of is the SRP interrupt that will be raised when a OTG cabapable device is connected and it requests for the VBUS to be turned on.  In this mode you again are in Host mode and would respond to the SRP interrupt by turning on the VBUS charge pump, afterwhich the regular process of enumerating the device proceeds.

    Pl. refer to the Linux USB driver for reference.  All these sequences are implemented and well tested at the least on DM35x platforms.

    regards

    swami

    USB OTG ID Pin Sense
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MikeP12806
    Posted by MikeP12806
    on Sep 30 2009 17:31 PM
    Intellectual435 points

    I just ran into one more interesting thing reguarding the USB interface.

    I added some ESD protection to the USB lines using a NUP4201 device from NXP.

    It contains a TVS diode for power line protection and fast diodes for transiant supression of the data lines. 

    I connected the power pin on the transient protection circuit to VBUS to hold the data lines within VBUS and ground (within a diode drop), but... because my OTG device switches VBUS on and off, when the VBUS is switched off I actually measure ~2.5V on my VBUS line due to the required bias of the ID line to 3.3V.

    I'm wondering if the ID pin on the DM357 is 5V tolerant so I could use VBUS to pull up the ID pin rather than 3.3V.  Otherwise, is there any reason I couldn't use a voltage divider from VBUS to ground connecting the middle net to the ID pin on the connector and the device if I create a voltage at the ID pin of ~3.3V referenced from VBUS.

    I guess my last option would be to add a second surge suppression circuit limiting the ID pin to 3.3V, this is probably the best option, but not something I'm really wanting to do.

     

    Anyhow, thanks for the feedback in advance.

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • tang37831
    Posted by tang37831
    on Dec 24 2009 07:48 AM
    Prodigy30 points

    Hi,swami

    when USB Device mode on DM644x,when should I set the DEVCTL.BDEVICE to initate a SRP on the USB bus,and when connect to Windows,how can make Windows find a new device?

     

    Thanks,

     

    tang

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • swami
    Posted by swami
    on Dec 24 2009 08:48 AM
    Expert7435 points

    Tang,

    You should be setting the session bit to initiate SRP when connected to B end of cable.  When you connect to PC -host, PC-host would start of resetting DM644x device and you would not have to do anything in this case.

    regards

    swami

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • tang37831
    Posted by tang37831
    on Dec 24 2009 21:35 PM
    Prodigy30 points

    Swami

    Think you for your replay.But how can my program detect the connection of the B end of cable and DM644x?

     

    Thinks,

    Tang

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • swami
    Posted by swami
    on Dec 24 2009 21:41 PM
    Expert7435 points

    Tang,

    Can you explain you exact usage context ?

    In the context of OTG one would not need to know the state of the cable end connected.  The controller along with the underlying driver takes care of this.  All the application has to do is to ask for a session.

    regards

    swami

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use