I am currently trying to design a circuit that makes it possible to either pull up a line to 5V or pull it down to ground depending on the signal of a microcontroller. The resistor needs to be 1K to pull it up and 1k to pull it down. I am currently thinking of using 2 pins on my microcontroller, one for each FET.
Do any of you have any experience with this or know a circuit that makes it possible? I drew something in spice shown below, but I can't seem to get the concept to work.



