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 Register Map (Host Interface)

Other Parts Discussed in Thread: TPS65982, TPS6598X-CONFIG, TPS65982-HIUTILITY

Hello Sir,

Is there any registers available in TPS65982?If available tell us the different registers in this device.

With Regards,

Suneetha.

  • Suneetha,

    This question comes up a lot as a part of other questions, but your question is generic enough that I can answer thoroughly. So I hope you don't mind that I changed the Thread Subject line so that more people can search e2e and learn from this Forum Question.

    The TPS65982 is a highly integrated part, which runs Application Code in RAM memory (which is stored and loaded from NVM in an SPI Flash IC). The Application Code runs the same base code in all applications so that the USB-PD Policy Engine follows the USB-PD spec to negotiate power contracts and enter Alternate Modes. The Application Code also stores a configurable portion of memory that will change depending on the end product (AC Adapter vs. Laptop vs. Monitor vs. Dongle, etc.) and the defaults can be selected in the TPS6598X-CONFIG Configuration Tool. These settings can also be changed dynamically using I2C Reads/Writes from an I2C Master.

    Because the performance of the part can change based on Application Code configurations, the TPS65982 datasheet only describes the HW capabilities of the part, and the FW User's Guide describes the FW and how it relates to the system through the use of state machines, flow diagrams, and text. The FW User's Guide also contains the Host Interface in Appendix A, which contains both the Register Map and a special set of 4CC (ASCII) Commands that are shortcuts to perform internal functions or send PD Messages.

    The Register Map is on pages 43-70 of the FW User's Guide. Any Registers which follow the PD Specification exactly (Tx ID, Rx ID, Tx Sink/Source, Rx Sink, Source, etc.) will describe the data at a high level, and the USB PD Spec can be used as a resource to describe the data in detail. Registers unique to the TPS65982 (Status, Interrupts, etc.)

    I hope this helps you get started communicating with the TPS65982! There is also example  code available in the TPS65982-HIUTILITY which is written in Python and can run through a TotalPhase Aardvark and communicate/control the TPS65982 as an I2C Master from your computer. The Aardvark HW, although a little expensive, is very useful for re-programming the SPI Flash IC quickly with different FW configurations and testing I2C Reads/Writes very quickly before MCU (EC) code is complete.