I want to get the bode plot of the controller part of my Buck converter. For this I looked online and saw a technique that mentioned to add an AC injection source from the voltage output to the top resistor of the voltage divider (i.e, R4). But I must have missed something as using the magnitude marker across this V5 voltage source does not work (simulation is not running). How can I get this?
I also need to change the M1 model to averaged switch model, but I need some help on how to do this after I open Edit -> Pspice Model or I think it is better to make a new model with the average switch model.