I have designed a boost converter with peak current mode control in PLECS. I have used the method of k factor approach to design the compensator.
The Bode plot transfer function of the power stage is used to select the crossover frequency of 40 kHz as I am using a switching frequency of 2.2 MHz and from this, I defined my compensator which shows a good Bode plot:
The Bode plot of the complete system is perfectly matching my expectation as you can see in the figure.
However, when I run the same circuit in PLECS with the compensator I get a huge oscillation and a non-stable system:
The compensator is meant to stabilize my system.
How can the frequency domain analysis work perfectly, but when it comes to the time domain (circuit) the system is completely wrong?
I have used a crossover frequency of 5 kHz and it shows a good result which means that my control loop does not show good behavior when it comes to higher crossover frequency which goes against my understanding that says I can choose any crossover frequency as long as it is a tenth less than the switching frequency.
The Bode plot of the compensated circuit (circuit with the compensator):
The circuit:
The crossover freqquency where it is unstable is 40 kHz. I have chosen a phase margin of 60° and with the k factor approach I calculated the pole, the zeros, and the gain of the compensator.