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.

TPS 65982 Host Interface Utility Tool scripts

Hello,

For testing purpose I need to set TPS 65982 to sink 15V@3A, I want to do it by Host Interface Utility Tool (Aardvark + Python scripts). There are set_dp_cap.py and set_sourcesink_cap.py in the folder, do you have example on how to using these two scripts?

Thanks

Nancy

  • These scripts are just big examples of how to do things. You will have to modify the script (or a copy of it!) to do what you want to do. For example, if you execute set_sourcesink_cap the main:

    1. reads the TX source and sink capabilities and displays it to the screen

    2. modifies the capabilities

    3, reads the TX source and sink capabilities and displays it to the screen

    To temporarily create a sink (good until next boot), you can edit the script so that the function set_sink sets the sinks you want and then edit the main to call just this function. (Obviously, do you work on a copy so that you still have the original for reference.) The sample sets value for PDO1 and PDO2 and sets the number of PDOs to 2. (You get PDO0 for free.)