Square Wave Generator Using Op Amp - Waveforms
Square Wave Generator Using Op Amp - Waveforms
It looks like a comparator with hysteresis (schmitt trigger), except that the input voltage is
replaced by a capacitor. The circuit has a time dependent elements such as resistance and
capacitor to set the frequency of oscillation.
As shown in the Fig. 2.83 the comparator and positive feedback resistors R 1 and R2 form an
inverting schmitt trigger.
https://www.eeeguide.com/square-wave-generator-using-op-amp/ 1/
When Vo is at +Vsat, the feedback voltage is called the upper threshold voltage V UT and is
given as
When Vo is at -Vsat, the feedback voltage is called the lower-threshold voltage VLT and is given
as
When power is turn ON, Vo automatically swings either to +Vsat or to -Vsat since these are the
only stable states allowed by the schmitt trigger. Assume it swings to +V sat. With Vo = +Vsat we
have – Vp = VUT and capacitor starts charging towards +V sat through the feedback path
provided by the resistor Rf to the inverting (-) input. This is illustrated in Fig. 2.84 (a). As long as
the capacitor voltage VC is less than VUT, the output voltage remains at +Vsat.
As soon as VC charges to a value slightly greater than V UT, the (-) input goes positive with
respect to the (+) input. This switches the output voltage from +V sat to -Vsat and we have Vp =
VLT , which is negative with respect to ground. As V o switches to -Vsat, capacitor starts
discharging via Rf, as shown in the Fig. 2.84 (b).
Frequency of Oscillation:
The frequency of oscillation of Square Wave Generator Using Op amp is determined by the
time it takes the c apacitor to charge from VUT to VLT and vice versa. The voltage across the
capacitor as a function of time is given as
where
The time taken by capacitor to charge from VUT to VLT is same as time required for charging
capacitor from VLT to VUT . Therefore, total time required for one oscillation is given as
The frequency of oscillation can be determined as f o = 1/T, where T represents the time
required for one oscillation.