I'm designing a small circuit with 3 pins: PIN1, PIN2, and CONTROL.
I want the circuit to have PIN1 and PIN2 connected if CONTROL outputs a high voltage, and have PIN1 and PIN2 disconnected if CONTROL outputs a low voltage.
By 'connected' I mean that I want to approximate a manual switch as much as possible--so when the voltage at CONTROL goes from low to high, it works as though I had physically shorted PIN1 and PIN2.
The only reason I'm not actually using a manual switch is that I need the connection & disconnection to happen at a very specific time, which I can accomplish by toggling the control voltage.
Here is the circuit I'm planning to use, with two generic N-type MOSFETs:
In the rest of the circuit, PIN1 connects to a voltage regulator and PIN2 connects to the voltage its trying to regulate.
My goal with the circuit is to have the voltage regulator regulating the PIN2 voltage when CONTROL is set high, and have the PIN2 voltage be unregulated when CONTROL is set low. Does the circuit I proposed do that correctly, and if it doesn't, what would be a better alternative?