How to make custom OCP for sink application on TCPP01-M12?
Hello dear ST community,
I am making a PPS (sink) application based on NucleoG0B1RE + SNK1M1. As noted in various resources, the TCPP01-M12 doesn't include OCP protection. However, the USB Power Delivery Specification R3.2 on usb.org, strongly recommends OCP protection for sink operating with PPS.


My question is what is the best approach to implement OCP int his context?
According to the Engineering guide for current sensing (page 32-34) it appears one can use sense amplifier with alert pin, or just sense amplifier with comparator to drive a FET as an e-fuse. My initial thought was to add another FET, such as the STL11N3LLH6 (already part of TCPP01 solution) and use the alert pin to turn off the MOSFET. Additionaly, I would send a event flag to MCU where it could be further processed.
However, I am bit concerned about how this might affect the UCPD stack. If the path is turned off (but not directly controlled by TCPP01), would this disrupt the UCPD communication? To which state it will likely go? Could this require just a stack reset after reconnecting the power path?
My thought was, that maximal current should never be reached so the OCP limit should be set slightly below 5A depending on the accuracy of sense amplifier. Yet looking into UM2891 it says that for nominal current of 5A, OCP treshold is set to 6A, why? Is this to account for inrush current spikes? If so how do I find the proper value for OCP, also with taking in account the sense amplifier accuracy?
Finally, I’ve read that the TCPP03 includes an OCP flag in its I2C register, and an OCP event can be handled via a recovery command from the MCU. Would it be feasible to use TCPP03 in place of TCPP01 for my design? If so, how accurate is the ISENSE feature of the TCPP03? Since I am also using some power for UI elements, and I want the user to know the actual current consumed by load (not the combined current: load+UI) I think that even when using TCPP03 I would still need two current measuring points, is this right?
Thanks in advance for your help!
Tags: @FBL, @LLECH.1, @HFISTM

