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.

CCS/TUSB422: How can I detection PD is standard or non standard using I2C register?

Part Number: TUSB422
Other Parts Discussed in Thread: MSP430G2553, MSP430FR5969, MSP430FR2422

Tool/software: Code Composer Studio

I have using MSP430G2553 launch pad development kit and interface with TUSB422 through I2C.

MSP430G2553 : I2C Master

TUSB422 : I2C Slave

When any PD connect with USB Type C than How can I know USB is PD standard or not? or May I know specific i2c register to give specific information related to PD standard/non standard?

If USB type is PD compliant then How can I know specific device support 5V, 9V, 12V etc...?  Can you please provide i2c register to give information regarding voltage and current support?

I tried to find out to specific register but didn't get specific information.

I used below datasheet related to TUSB422 ==>  www.ti.com/.../tusb422.pdf

  • Hi,

    Also I tried to find out library code between TUSB422 and MSP430G2553 communication through I2C but I didn't get any info.

    So please provide library code between TUSB422 and MSP430G2553 if it is possible.

  • Hi Bhauthik,

    The TUSB422 source code can be found on the product page (follow link below)

    Could you clarify on what you mean by PD standard or non-standard? Would you like to identify devices that support PD communication or the PD version that is supported ?

  • Hello Malik,

    Thanks for your response.

    Actually I didn't found any code that you have already shared in previous loop.

    We are currently working on a USB type C based fast charging system design and  interfacing TUSB422 with MSP430G2553 to compliant PD for fast charging. 
    We are successfully able to read and write registers through I2C. So May I know the specific I2C register to determining USB port attach or detach? If USB port attached than How can I detect USB port adapters as a PD compliant or not through I2C register?
    Thanks,
    Bhautik
  • Hi Bhautik,

    Source needs to be requested, Please try the link below.

    Proper connection should be determined via the CC1_State and CC2_State registers. USBC ports that support PD will respond to SOP messages with GoodCRC messages. You can program your micro to attempt PD message checking a pre-determined number of times and check TX_SOP_SUCCESS and TX_SOP_FAIL to see if the attached port support PD messaging.

  • Hello Malik,

    USBC ports will respond to SOP messages with GoodCRC messages ===>> So respond will received automatically from controller side or required to read some I2C register?? If Is it possible to I2C register than when I can send read command for received SOP message?? and Is there any configuration before start the communication?? 

    Also I tried to open link that you have shared with us but it's generated error message like below:

    myRegistered Software

    Error Page

    Regards,

    Bhautik

  • Hi BHautik,

    Please go to the TUSB422 product page and click the "Request software" link just above the Technical Documentation section of the page. TUSB422 code is best source to answer your questions. PD messages sent to TUSB422 need to be read from the RX buffer when interrupt is asserted in Alert register. I recommend going through section 7.3 Feature Description as it decries how to set TUSB422 to make a valid connection before PD messaging will start.  

  • Thanks Malik for your response.

    I have understand the basic functionality at a high level through the shared code. Thank you for sharing it.

    I have access the reference code and compile successfully in CCS without any issue. Also In that reference code found library folder like driverlib, hal, i2clib, PDlib and uartlib based on controller [MSP430FR5969].

    I tried to find out library code based on MSP430FR2422 but didn't get it.

    It will be great help if you can provide msp430fr2422 based library same as msp430fr5969.

    Regards,

    Bhautik

  • Hi Bhautik, 

    Unfortunately I only have MSP430FR5969 libraries to share for TUSB422 source code. 

  • Hello Malik,

    I have got the driverlib for MSP430FR2422 [MSP420FR2xx_4xx] but did't get HAL and I2C library.

    It will be great help if you can provide only HAL and I2C based library.

    Is it possible to use any MSP430FR5xx_6xx series instead of MSP420FR2xx_4xx? If yes, so Is it working fine with HAL and I2C library without any issue? 

    Thanks,

    Bhautik

  • Hi Bhautik, 

    I am not an expert on the MSP430 vs MSP420 product. it may be best to create another thread asking if the MSP430FR5xx_6xx  libraries can be used.