Text this: Switchmode power supply simulation with PSpice and SPICE 3