This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C5504 USB DEVCTL register address



Hi,

We want to use USB register DEVCTL to check the status of usb cable, but we can not find the address of the DEVCTL in TI documents.  Thanks for any help.

 

Regards,

Yiyuan

 

  • if it is useful for you in my C5505 is:

    0x008461  Hex 16 bit C-Style Hex <Memory Rendering 6> I/O

    but in CCS debug mode if you view registers (USB - - DEVCTL), it is possible to see property: "view memory at address".

  • Hi Patrik,

    Thanks for the information.  The address 0x8461, which can not be found in TI documents, is actually the one we are using.  The problem is the VBUS bits read from 0x8461 do not have consistent results.  Do you know the values of AVaid and VBusVaid?

     

    Thanks,

    Yiyuan

  • Hi Yiyuan,

    The meanings of bits in DEVCTL are:

    _RESV_1    ********    Reserved  

    BDEVICE    0 - ADEVICE   This Read-only bit indicates whether the USB controller is operating as the  A  device or the  B  device 0:  A  device 1:  B  device Only valid while a session is in progress  
    FSDEV    0    This Read-only bit is set when a full-speed or high-speed device has been detected being connected to the port  (High-speed devices are distinguished from full-speed by checking for high-speed chirps when the device is reset) Only valid in Host mode   
    LSDEV    0    This Read-only bit is set when a low-speed device has been detected being connected to the port Only valid in Host mode   
    VBUS     00 - BELOW    These Read-only bits encode the current VBus level
    HOSTMODE    0    This Read-only bit is set when the USB controller is acting as a Host   
    HOSTREQ    0    When set, the USB controller will initiate the Host Negotiation when Suspend mode is entered. It is cleared when Host Negotiation is completed. ( B  device only)   
    SESSION    0    When operating as an  A  device, this bit is set or cleared by the userto start or end a session When operating as a  B  device, this bit is set/cleared by the USB controller when a session starts/ends It is also set by the user to initiate the Session Request Protocol. When the USB controller is in Suspend mode, the bit may be cleared by the user to perform a software disconnect

     

    only information that i have about VBusVaid is:

    VBUS    00 - BELOW   

    These Read-only bits encode the current VBus level as follows ----------------------------------------------

    VBus[1]   VBus[0]                   Meaning ------------------------------------------------------------------------------    

    0           0              Below SessionEnd    

    0           1              Above SessionEnd, below AValid    

    1           0              Above AValid, below VBusValid    

    1           1              Above VBusValid

  • Hi Patrik,

    Thanks.

    Do you think we can use 00 - below or  other values to make decision on cable connection status, rather using VBusValid (11)?

     

    Thanks,

    Yiyuan

  • Hi Yiyuan,

    I think that you should use 11 for VBusValid this is the configuration for "USB Cable Connection Detected".

    Regards

    Patrik