# Designing a gate driver signal

Hello all,

I am working on a buck converter project and I am having trouble understanding something perhaps conceptual and not due to lack of Psim knowledge.Anyway, up until now, I have been using the gating block to drive my MOSFET in my buck converter circuit, but know I need to change that for the closed loop operation. I have seen many people use a comparator to drive the MOSFET. I will upload a schematic to show what I am talking about.
I am trying to create a pulse signal with a duty cycle of 0.6. What are the parameters required for my reference dc source and sinusoidal source or the triangular source? I would appreciate a brief explanation. Thanks a lot.
Neil

Please have a look in the examples folder\dc-dc there are many built examples that show carrier waveform settings. You can also have a look at any of the tutorial videos that cover a particular converter this is explained there as well.

In brief, You need a carrier waveform. The frequency of the carrier waveform will also set you switching speed. The carrier waveform should be a triangle waveform if you are generating an AC output or it should be a “sawtooth” wavefrom if you are generating a DC output. A sawtooth is important as it keeps all of the harmonic content in phase as the off transition is always at the same moment in the cycle.

In general for a DC-DC buck converter I would chose a sawtooth waveform with a peak to peak value of 1, and a frequency of whatever I want the switching to be. If I choose 100kHz then my switching will be at 100K.

The peak to peak value is important as this will be compared with the modulation waveform, a peak to peak of 1 means that a modulation value of 0.6 will give you a 60% duty cycle. A modulation of .l will give you a 10% etc.

It is often a good idea to limit the modulation waveform so that it is contained inside the envelope of the carrier waveform. You can also limit maximum and minimum duty cycles this way.

have a watch of this video, and also other videos in the tutorial library. https://powersimtech.com/support/resources/video-library/buck-inner-current-loop-design-psim/