I have two output signals that are to use the same line. One should override the other, it is a master in a sense but isn't active most of the time. It does not matter if the master interrupts the slave.
Slave---+----Master | Out
Here is a picture of the setup with my solution.
The p-ch fet cuts power so the master can pull low(not sure of the output impedance of the master). There is a signal when the master is active which I use to drive the gate. The switch "A" simulate this effect. The diode prevents driving the bjt when it is saturated and the master is active.
I do not like the diode voltage drop but using fets seem to make it much more complex.
Anyone have a better solution = fewer & cheaper parts?
Ideally I would like to simply put a fet in replace of the diode and remove the p-ch. That would be 1 part count. Unfortunately it would require a floating driver