I simulate the buck convertor circuit on proteus it is giving 2 V output while I require 9 V output I don't know how PWM should be given to NPN in proteus. I simulate the same circuit on LTSpice its working there but I am facing problem on working on proteus I am attaching both simulation here Kindly if anyone have exact simulation of Buck circuit help me then.