
10008023
FIGURE 4.
SQUAREWAVE OSCILLATOR
Comparators are ideal for oscillator applications. This square
wave generator uses the minimum number of components.
The output frequency is set by the RC time constant of the
capacitor C1 and the resistor in the negative feedback R4. The
maximum frequency is limited only by the large signal prop-
agation delay of the comparator in addition to any capacitive
loading at the output, which would degrade the output slew
rate.
10008008
10008024
FIGURE 5. Squarewave Oscillator
To analyze the circuit, assume that the output is initially high.
For this to be true, the voltage at the inverting input Vc has to
be less than the voltage at the non-inverting input Va. For Vc
to be low, the capacitor C1 has to be discharged and will
charge up through the negative feedback resistor R4. When
it has charged up to value equal to the voltage at the positive
input Va1, the comparator output will switch.
Va1 will be given by:
If:
R1 = R2 = R3
Then:
Va1 = 2VCC/3
When the output switches to ground, the value of Va is re-
duced by the hysteresis network to a value given by:
Va2 = VCC/3
Capacitor C1 must now discharge through R4 towards ground.
The output will return to its high state when the voltage across
the capacitor has discharged to a value equal to Va2.
For the circuit shown, the period for one cycle of oscillation
will be twice the time it takes for a single RC circuit to charge
up to one half of its final value. The time to charge the capac-
itor can be calculated from
Where Vmax is the max applied potential across the capacitor
= (2VCC/3)
and VC = Vmax/2 = VCC/3
One period will be given by:
1/freq = 2t
or calculating the exponential gives:
1/freq = 2(0.694) R4 C1
Resistors R3 and R4 must be at least two times larger than
R5 to insure that VO will go all the way up to VCC in the high
state. The frequency stability of this circuit should strictly be
a function of the external components.
FREE RUNNING MULTIVIBRATOR
A simple yet very stable oscillator that generates a clock for
slower digital systems can be obtained by using a resonator
as the feedback element. It is similar to the free running mul-
tivibrator, except that the positive feedback is obtained
through a quartz crystal. The circuit oscillates when the trans-
mission through the crystal is at a maximum, so the crystal in
its series-resonant mode.
The value of R1 and R2 are equal so that the comparator will
switch symmetrically about +VCC/2. The RC constant of R3
and C1 is set to be several times greater than the period of
the oscillating frequency, insuring a 50% duty cycle by main-
taining a DC voltage at the inverting input equal to the abso-
lute average of the output waveform.
When specifying the crystal, be sure to order series resonant
with the desired temperature coefficient
9 www.national.com
LMV331 Single / LMV393 Dual / LMV339 Quad