Other Parts Discussed in Thread: TPS2553
We designed a module with extremely limited pincount. TPS2051 interfaces to this module only via EN line, we don´t have additional line for OC (or VBUS).
TPS2051 controls the power of USB Type A socket.
To be able to sense overcurrent condition, we connected EN pin and OC pin together and use this signal in bi-directional configuration on our module: To enable the power, the module sets the line high-Z/input with pullup. If TPS2051 detects overcurrent condition and pulls the OC (and thus EN since connected together) low, our SW can sense this and keep EN low.
In this condition, our SW will change the line to high-Z/input every second to find out if the fault is still present.
We verified that the de-glitch circuitry on TPS2051 OC output works well and also our SW implementation works.
But naturally our SW is not able to overrule OC pin, we cannot do any additional de-glitching.
Please feedback if you consider this solution risky, e.g. when connecting bus-powered HDD.
thanks a lot and best regards,
Christoph