Hi all,
i'm trying to make a synchronous Buck Converter with Peak Current Mode Control. To do that i have configured EPWM1 to make a 150 kHz Gatesignals. With COMP2 i made a Peak Current detection with Compensation Ramp. During testing i figured out that if the comparator and the current measurement crossing each other shortly before the pwm cycle is over, i get a pwm cycle with maximum duty cycle and after that one with a extremely low dutycycle like in the picture.
In the attached file there is a project which i have used to reproduce this effect on a Control Card with Dockingstation.
The Gatesignals are on GPIO0 & 1
The comparator is on A4
To see the effect you have to connect a Voltage of about 1.63V on Pin A4.
If the voltage goes lower the Comparator the epwm will be shut down at a dutycyle of 93%. If the Voltage goes higher the comparator works as expected.
Would be great if someone has a tip for me or can reproduce this effect.
Thanks for your help,
Best regards
