Why did you like that op amp?
If you pass me the OP747 LTspice files I'd be more than happy to see for myself how it works out.
Why did you like that op amp?
That was before I looked at the highest frequency you wanted.... errr... because you suggested it in post #9?
Have you gotten the OP747 model?If you pass me the OP747 LTspice files I'd be more than happy to see for myself how it works out.
Nope... and I googled it for quite a while and I couldn't find it.Have you gotten the OP747 model?
I don't see why you still want to try the OP747 since you need a higher frequency op amp, but if you still want to play with it just download the new version of LTspice.Nope... and I googled it for quite a while and I couldn't find it.
Will do. Thanks. What's the relation between the opamp's frequency and the maximum attainable frequency of this circuit?I don't see why you still want to try the OP747 since you need a higher frequency op amp, but if you still want to play with it just download the new version of LTspice.
It's not a simple relation, since the triangle-wave has many frequency components and it depends upon how sharp you want the triangle corners to be.What's the relation between the opamp's frequency and the maximum attainable frequency of this circuit?

Yes on both counts. The slow rise and fall times cause flattening of the peaks of the triangle and the delays of the comparator and its input resistors cause the amplitude to increase with frequency. Part of the delay of the comparator is that some of the op-amp stages go into saturation and are slow to come back into the linear region. I think this is exacerbated by the internal frequency compensation capacitance.So the amplitude is no longer stable with frequency.
I'm not sure why, but it may be related to the reduced rise-time of the square-wave or other circuit delays.
Thanks, Richard. But I think I already have the circuit working the way I want it to. What I really want is to generate a PWM 0-5V signal, with the capability of also varying its output frequency.Yes on both counts. The slow rise and fall times cause flattening of the peaks of the triangle and the delays of the comparator and its input resistors cause the amplitude to increase with frequency. Part of the delay of the comparator is that some of the op-amp stages go into saturation and are slow to come back into the linear region. I think this is exacerbated by the internal frequency compensation capacitance.
Try an LT1800 for the comparator and a 22pf cap in parallel with the 98K resistor and see what happens.
What about these?My only regret is that I'll have to use a 200K pot to control frequency, which is a non-standard value.
Yeah. I hate it when I need a pot in that range. I can never decide whether to use a 200K, 250K or maybe even a 220k pot.My only regret is that I'll have to use a 200K pot to control frequency, which is a non-standard value.
If the comparator portion of the circuit is not fast enough then the amplitude will vary with frequency and so will your PWM duty cycle.Thanks, Richard. But I think I already have the circuit working the way I want it to. What I really want is to generate a PWM 0-5V signal, with the capability of also varying its output frequency.
Interesting suggestion. How can I do that using a 5V supply?Alternatively you can generate a triangle that goes from 0 to 3 volts and use your PWM pot to adjust between o and 3 volts. No rail-to- rail parts needed anywhere that way.
No.Also, my sim is using an LT1018 which is labeled as "general purpose", while the LM2903 is "differential". Is that what you're referring to when you say the LM2903 is not rail-to-rail?



As usual ... @crutschow saves the day ...No.
Just too slow a component.
The U1 op amp did not appear to be fast enough to generate a decent square-wave at 200kHz so I changed it to a comparator.
Simulation below.
View attachment 177423
If you download the new version don't you lose your third party saved models?I don't see why you still want to try the OP747 since you need a higher frequency op amp, but if you still want to play with it just download the new version of LTspice.
Yes, you have to save and transfer them to the new model files.If you download the new version don't you lose your third party saved models?
