I have been experimenting with PWM circuits and I came across this CMOS comparator that seems to work well with the sawtooth generator I am using. I feed a sawtooth wave to the gate of the PMOS M3 transistor and the reference voltage I am comparing to Vin the PMOS M4.
I noticed that the...