I want to develop a switching circuit (for controlling power, rather than digitial signals) that is able to take an input and switch between Vcc and high impedance, rather than switching between Vcc and GND. An obvious solution would be a relay without a pull-up resistor, but that is far too bulky so I need solid-state component(s). I'm also after rapid switching, so a MOSFET is likely to be the best option.
Just to be clear, I'm after a MOSFET circuit that implements the following truth table:
| In | Out | | --- | --- | | 0 | 1 | | 1 | Z |
or something similar. I'm thinking of just using a single MOSFET (pMOS) placed aboved the output which can connect the output to ground (but any simulations I perform just don't toggle the output). Will this circuit be affected when a load is connected? Or is there a better way to implement this?