I am trying to simulate a charge and discharge of ultracapacitors.
I put UC between a DC power source and resistor for the discharge.
I would like to add a switch which commutes between these positions.
For that, I use 2 mosfets driven from a square voltage source but I would like to invert one.
I don’ like this method, do someone has a better idea?
Thank you for your help!