Hi I am in the process of creating a PWM generator for a Buck converter.
I am starting off with a simple comarator for timing purposes. The idea is to use a sawtooth wave and using different voltages on the ramp to create timing events. However, a simple sircuit as shown below has many issue which i am unable to solve.
Looks like a limit in your simulation resolution. Also look at the fall time of your flanks. Sometimes it is “zero”, and other times it is “significant”. If you increase the time resolution these effects will become less.
Hi Holger,
I changed fall time to 1fs. I am actually looking for a PWM resolution of 100ps. So these fall times has to be very short.
Thanks a lot for the examples. I will check them out.
So i am new to the whole NGspice thing, and i just upgraded to Kicad 8.
It seems like the Current vectors are missing. I am sure I am missing somethings, but not sure what.
Circuit has a resistor R1 but current vector doesn’t exist.
Error: vector I(R1) not found!
Error: vector I(R1) not found!
Error: vector I(R1) not found!
Error: vector I(R1) not found!
Error: vector I(R1) not found!
I can post this on a separate thread if necessary.