Waveform Generators
Waveform Generators
Waveform Generators
……………………………………………………………………………
Figure 1a Figure 1b
fr= 1/2πRC
Where:
is given as:
Take C=0.1µF, then R=1.6kΩ (Use 1.5kΩ standard) Gain of the amplifier
section is given by,
Take Ri=1kΩ, then Rf=2.2kΩ (Use 4.7kΩ Potentiometer for fine corrections)
Twin –T oscillator:
The circuit diagram for Twin-T oscillator is as shown in the above figure.
It consists of an OP-AMP operating as non-inverting amplifier i.e
introducing 0 phase shift.
F= 1/2πRC
Observe that in the circuit diagram shown above, the resistor R1R1 is
connected between the inverting input terminal of the op-amp and its output of op-
amp. So, the resistor R1R1 is used in the negative feedback. Similarly, the
resistor R2R2 is connected between the noninverting input terminal of the op-amp
and its output. So, the resistor R2R2 is used in the positive feedback path.
Thus, the circuit shown in the above diagram will produce a square wave at
the output as shown in the following figure −
From the above figure we can observe that the output of square wave
generator will have one of the two values: +Vsat and −Vsat. So, the output remains
at one value for some duration and then transitions to another value and remains
there for some duration. In this way, it continues.
The block diagram of a triangular wave generator contains mainly two blocks:
a square wave generator and an integrator. These two blocks are cascaded. That
means, the output of square wave generator is applied as an input of integrator.
Note that the integration of a square wave is nothing but a triangular wave.
We have already seen the circuit diagrams of a square wave generator and an
integrator. Observe that we got the above circuit diagram of an op-amp based
triangular wave generator by replacing the blocks with the respective circuit
diagrams in the block diagram of a triangular wave generator.
For an inverting amplifier the gain is set by the feedback resistor network Rf
and Ri and is given as the ratio -Rf/Ri. for oscillations to occur in a Wien Bridge
Oscillator circuit the following conditions must apply.
The output resistance of the amplifier must be low so that the effect
of external loading is minimized.
As its name implies, the Op-amp Integrator is an operational amplifier circuit that
performs the mathematical operation of Integration, that is we can cause the output to
respond to changes in the input voltage over time as the op-amp integrator produces an
output voltage which is proportional to the integral of the input voltage.
In other words, the magnitude of the output signal is determined by the length of time
a voltage is present at its input as the current through the feedback loop charges or
discharges the capacitor as the required negative feedback occurs through the capacitor.
When a step voltage, Vin is firstly applied to the input of an integrating amplifier, the
uncharged capacitor C has very little resistance and acts a bit like a short circuit allowing
maximum current to flow via the input resistor, Rin as potential difference exists between
the two plates. No current flows into the amplifiers input and point X is a virtual earth
resulting in zero output. As the impedance of the capacitor at this point is very low, the
gain ratio of XC/RIN is also very small giving an overall voltage gain of less than one,
(voltage follower circuit).
As the feedback capacitor, C begins to charge up due to the influence of the input
voltage, its impedance Xc slowly increase in proportion to its rate of charge. The capacitor
charges up at a rate determined by the RC time constant, (τ) of the series RC network.
Negative feedback forces the op-amp to produce an output voltage that maintains a virtual
earth at the op-amp’s inverting input.
Since the capacitor is connected between the op-amp’s inverting input (which is at
virtual ground potential) and the op-amp’s output (which is now negative), the potential
voltage, Vc developed across the capacitor slowly increases causing the charging current
to decrease as the impedance of the capacitor increases. This results in the ratio of Xc/Rin
increasing producing a linearly increasing ramp output voltage that continues to increase
until the capacitor is fully charged. At this point the capacitor acts as an open circuit,
blocking any more flow of DC current. The ratio of feedback capacitor to input resistor
( XC/RIN ) is now infinite resulting in infinite gain. The result of this high gain (similar to
the op-amps open-loop gain), is that the output of the amplifier goes into saturation as
shown below. (Saturation occurs when the output voltage of the amplifier swings heavily
to one voltage supply rail or the other with little or no control in between).
The rate at which the output voltage increases (the rate of change) is determined by the
value of the resistor and the capacitor, “RC time constant “. By changing this RC time
constant value, either by changing the value of the Capacitor, C or the Resistor, R, the
time in which it takes the output voltage to reach saturation can also be changed for
example.
If we apply a constantly changing input signal such as a square wave to the input of an
Integrator Amplifier, then the capacitor will charge and discharge in response to changes
in the input signal. This results in the output signal being that of a Sawtooth waveform
whose output is affected by the RC time constant of the resistor/capacitor combination
because at higher frequencies, the capacitor has less time to fully charge. This type of
circuit is also known as a Ramp Generator and the transfer function is given below.
Sawtooth waveform:
A Sawtooth wave ramps upward and then sharply drops whereas in an inverse (or
reverse) Sawtooth waveform the wave suddenly ramps downwards and then rises
sharply.
Working:
The circuit in fig.3a consists of a non-inverting Schmitt trigger circuit and an
integrator. This combination constitutes a triangular waveform generator. A duty
cycle less than 50% causes the output of A2 to be Sawtooth. The integrator output
is applied to the Schmitt circuit input, and the Schmitt output is the integrator input.
As illustrated by the circuit waveforms (fig.3b), the integrator produces a triangular
output waveform when it has a square wave input. The Schmitt output changes from
one saturation level to the other each time the integrator output arrives at the Schmitt
UTP (Upper Trigger Point) or LTP (Lower Trigger Point).
During the time from instant t1 to the instant t2, the Schmitt output is positive (at +Vo(sat))
and current I2 flows into R1' charging C1, as illustrated. Thus, the integrator output is
changing at a constant rate in a negative going direction. The output change is ∆V; from
+Vo to –Vo. When the integrator output arrives at the LTP, the Schmitt output switches
from +Vo(sat) to – Vo(sat). The integrator input is now a constant negative voltage, so that
the input current direction is reversed and the output ramp voltage direction is reversed.
From t2 to t3, the integrator output increases linearly from –Vo to +Vo, that is from the
Schmitt LTP to its UTP. At the UTP, the Schmitt output reverses again, causing the
integrator output to reverse direction once more. The cycle repeats again and again
producing a triangular waveform at the integrator output and a square wave at the Schmitt
output.
Sinewave Generator:
A popular way to make a sine wave oscillator is to use an RC network to produce a 180-
degree phase shift to use in the feedback path of an inverting amplifier. Setting the gain of
the amplifier to offset the RC network attenuation will produce oscillation. There are multiple
variations of phase shifters, including a Twin-T RC network and cascaded RC high pass
sections that produce either 45 or 60 degree shifts in each stage. The amplifier can be a single
transistor, single op-amp, or multiple op-amps. Figure 2 shows one popular variation.
FIGURE. A fixed frequency is a disadvantage, but for a single frequency is good. The pure
output needs to be buffered with an op-amp follower if you are going to drive a load.
These oscillators produce a very pure low distortion sine wave. However, the frequency is
fixed at the point where each RC section produces a 60-degree phase shift. That
approximate frequency is:
f = 1/2.6RC
In the circuit of Figure 2, the frequency should be about 3.85 kHz
Definition: The function generator is defined as a type of device which produces various
types of waveforms as its output signals. The common waveforms generated by this
generator are sine wave, square wave, triangular wave, and Sawtooth waves. The
waveforms of these frequencies may be adjusted from hertz to a hundred kHz. This
generator is considered as the most versatile instrument in the electrical and electronics
laboratory because the waveforms generated by this generator have applications in different
areas.The analog function generator and digital function generators are types of function
generators. The advantages of an analog generator are cost-effective, simple to use,
flexibility, amplitude and frequencies are adjustable. The advantages of digital generators
are of high accuracy and stability. The main disadvantages of this digital generator are
complicated and costly.
Function Generator Block Diagram:
The block diagram of function generator contains various components they are frequency
control network, constant current supply source 1, constant current supply source 2,
integrator, voltage comparator Multivibrator, capacitor, a resistance diode shaping circuit,
and two output amplifiers. The block diagram of this generator is shown in the below
figure.
Function Generator Block Diagram
The frequencies can be controlled by varying the current magnitude. The two constant-
current supplies will change the frequency of the output signal. The output waveforms
generated by this generator are sinusoidal, triangular, and square. The frequency ranges of
these waveforms ranges from 0.01 Hz to 100 kHz. The frequency control network controls
the frequency on the front panel of this generator, and there is a knob called frequency
control. The frequency of the o/p waveforms can be changed by using this knob & varying
the frequency. The frequency control network provides the voltage, and this voltage goes
to regulate the two constant current supply sources like upper and lower. The first output
voltage of constant current supply can be increased linearly with the time, whereas the lower
current source provides a voltage to change the output voltage of the integrator which will
decrease linearly with time. The output voltage of the integrator due to the upper current
source is expressed.
When the slope of the o/p voltage increases or decreases then the constant current
supply source 1 will be increases or decreases. The lower constant current source two
supplies reverse control to the integrator, and due to this reverse current, the output voltage
of the integrator decreases linearly with the time. The output of the comparator provides a
square wave which has the same frequency as the output voltage. The resistance diode
network changes the triangle waveform slope as its amplitude produces and changes a sine
waveform with a <1% distortion. The output waveforms of this generator are shown below.
Output Waveforms of Function Generator
In this way, the three types of waveforms are produced by this generator which are having
different frequencies. The clock source, timing margin test, dc power supply test, testing
audio DAC are some of the applications of a function generator.
Phase Locked Loop (PLL):
Phase Locked Loop (PLL) is one of the vital blocks in linear systems. It is useful in
communication systems such as radars, satellites, FMs, etc.
Block Diagram of PLL
A Phase Locked Loop (PLL) mainly consists of the following three blocks −
Phase Detector
Active Low Pass Filter
Voltage Controlled Oscillator (VCO)
The block diagram of PLL is shown in the following figure −
The output of a phase detector is applied as an input of active low pass filter. Similarly, the
output of active low pass filter is applied as an input of VCO.
The working of a PLL is as follows −
Phase detector produces a DC voltage, which is proportional to the phase
difference between the input signal having frequency of fin and feedback (output) signal
having frequency of fout.
A Phase detector is a multiplier and it produces two frequency components at its
output sum of the frequencies fin and fout and difference of frequencies fin & fout.
An active low pass filter produces a DC voltage at its output, after eliminating
high frequency component present in the output of the phase detector. It also amplifies
the signal.
A VCO produces a signal having a certain frequency, when there is no input
applied to it. This frequency can be shifted to either side by applying a DC voltage to it.
Therefore, the frequency deviation is directly proportional to the DC voltage present at
the output of a low pass filter.
The above operations take place until the VCO frequency equals to the input signal
frequency. Based on the type of application, we can use either the output of active low pass
filter or output of a VCO. PLLs are used in many applications such as FM demodulator, clock
generator etc.
PLL operates in one of the following three modes −
Free running mode
Capture mode
Lock mode
Initially, PLL operates in free running mode when no input is applied to it. When an input
signal having some frequency is applied to PLL, then the output signal frequency of VCO
will start change. At this stage, the PLL is said to be operating in the capture mode. The
output signal frequency of VCO will change continuously until it is equal to the input signal
frequency. Now, it is said to be PLL is operating in the lock mode.
Frequency Multiplier:
A frequency multiplier is an electronic circuit that generates an output signal and that
output frequency is a harmonic (multiple) of its input frequency. Frequency multipliers
consist of a nonlinear circuit that distorts the input signal and consequently generates
harmonics of the input signal. A subsequent bandpass filter selects the desired harmonic
frequency and removes the unwanted fundamental and other harmonics from the output.
Frequency multipliers are often used in frequency synthesizers and communications
circuits. It can be more economical to develop a lower frequency signal with lower power
and less expensive devices, and then use a frequency multiplier chain to generate an output
frequency in the microwave or millimeter wave range. Some modulation schemes, such
as frequency modulation, survive the nonlinear distortion without ill effect (but schemes
such as amplitude modulation do not).
Frequency multiplication is also used in nonlinear optics. The nonlinear distortion in
crystals can be used to generate harmonics of laser light.
Frequency Shift Keying (FSK) is the digital modulation technique in which the frequency of
the carrier signal varies according to the digital signal changes. FSK is a scheme of frequency
modulation. The output of a FSK modulated wave is high in frequency for a binary High
input and is low in frequency for a binary Low input. The binary 1s and 0s are called Mark
and Space frequencies.
The following image is the diagrammatic representation of FSK modulated waveform along
with its input.
To find the process of obtaining this FSK modulated wave, let us know about the working
of a FSK modulator.
FSK Modulator:
The FSK modulator block diagram comprises of two oscillators with a clock and the input
binary sequence. Following is its block diagram.
The two oscillators, producing a higher and a lower frequency signals, are connected to a
switch along with an internal clock. To avoid the abrupt phase discontinuities of the output
waveform during the transmission of the message, a clock is applied to both the oscillators,
internally. The binary input sequence is applied to the transmitter so as to choose the
frequencies according to the binary input.