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.

TPS65982 PD control

Other Parts Discussed in Thread: TPS65982, TPS65982-HIUTILITY

For TPS65982, i want to control the power delivery  from sink role. There  are few question:

1. Using the python, Does I control the source's PDO from sink role? If yes, which file (eg. set_sourcesink_cap.py)

2. If I want to use normal I2C to control source which can swap the PDOs,  Does any sample code to supprt or any Unique Address Interface Registers can act this function.

thank 

Best Regards,

hong

  • Chan,

    My answer to question (1) is below, and I am not sure I understand question (2) so please provide more details if needed.

    The better option you might want to try is to download the latest TPS65982-HIUTILITY Host Interface Utility, which has a GUI to allow you to change all the settings.

    NOTE: Just save the "aardvark.dll", "aardvark_py.py", and "aardvark_rw.py" files from your previous Command Line HI-Utility folder and copy/paste them into the folder where the NEW HI-Utility installs on your PC, and double-click the "TPS6598x Utilities GUI" Desktop Icon to get started.

    (1) The python script "set_sourcesink_cap.py" is a single Python script example that modifies all Sink Capabilities, Source Capabilities, and FET Path Directions without any user input, so it needs to be modified for the needs of every project.

    For example, you can comment out all lines related to Source Capabilities, or just when the set_source(handle) function is called with a "#" in Python:

    Then you would need to modify the code inside the def set_sink(handle) function to suit the needs of your application.

    So your main code would end up looking something like this:

    #set_source(handle)
    set_sink(handle)
    #set_autoneg(handle)
    #set_switches(handle)