Square Wave Generation – How Is It Done?

circuit analysisoperational-amplifierpowerpower supplyvoltage

With regard to the picture below, it says with an AC signal as an input, the output is a square wave. I am familiar with the uses of op-amps like in differentiator, integrator, inverting and non-inverting, active filters etc. But those I can memorize their configuration. But this I could not understand.

Circuit diagram including op-amp

Best Answer

This operates like a comparator except rather than open drain or collector is a push-pull to bipolar supplies (Vcc~Vee) minus some dropout voltage. The output is slew-rate limited to the component spec [V/us].

Remember that the (open loop) output inverts when the inputs are not equal (ignoring Vio offset) .

Other

This is not how you draw a sine wave which is more like triangular but peaks are smooth about 25% below the apex. You often see people draw sinewaves this wave with far too much "risetime". When we measure risetime of a pulse from 10 to 90% there is a formula to estimate the bandwidth BW(-3dB) BW= 0.35/Tr (10~90%)

Here is how you can verify a hand drawn wave using 3/4 of a triangle. enter image description here

Since an open loop Op Amp may saturate internally after the internal compensation , then the linear GBW does not apply and the slew rate is limited by the output stage current limit defined in the datasheet. There may be reverse recovery times specified for overdrive unlike a good comparator IC.