Professional Documents
Culture Documents
A PWM Circuit Using Operational Amplifiers PDF
A PWM Circuit Using Operational Amplifiers PDF
A very simple circuit based upon Schmidt trigger circuit can be used for pulse width
modulation purposes. The two operational amplifier A and B operate as a triangular wave
generator whose frequency depends upon the values of R and C. The triangular output
voltage is then compared with a reference voltage to obtain a rectangular pulse which is
on for some time and off for the remainder of the time period. Operational amplifier C is
used as a comparator.
the circuit has been operating for a long time. We have labeled the voltage as VC,min
because the voltage across the capacitor is increasing due to the charging process.
The charging process will continue until the voltage at the noninverting terminal
is just above the voltage at its inverting terminal ( Vdc ). At that instant, the voltage across
the capacitor will be at its maximum and so will be the output voltage of B. Let us
assume that the time taken for the voltage across the capacitor to reach its maximum
value is TC , where the subscript C stands for the charging time.
Setting v a ( t ) = Vdc , we can write the following equation in terms of the maximum
value of the output voltage of B as
R2
Vdc = Vob ,max (3)
R1 + R 2
The maximum output voltage of B is
R
Vob, max = Vdc 1 + 1 (4)
R2
Thus, the maximum voltage across the capacitor is
R
VC,max = Vob,max − Vdc = Vdc 1 (5)
R2
Note that the maximum voltage across the capacitor depends upon the circuit elements
R 1 and R 2 once the dc reference level for Vdc is chosen.
Vdc
VC,max − VC ,min = TC (6)
RC
We will use (6) to compute the charging time once the minimum voltage across
the capacitor is known.
Once the output voltage at the output of B tends to go beyond Vob. max , it makes the
differential voltage at the input terminals of A greater than zero, which in turn switches
the output of A to high. Under the ideal condition, the output voltage is as high as the dc
supply voltage Vs . In reality, however, this voltage is bound to be less than Vs owing to
the voltage drop across the internal circuitry of the operational amplifier.
In our analysis, let us assume that the high voltage of A is equal to the dc supply
voltage Vs . The case when it is less than the dc supply voltage will be analyzed later with
the help of an example. Since Vs is greater than Vdc , the current reverses its direction
through R and C. This reversal of the current begins to discharge the capacitor form its
maximum value to its minimum value and takes TD seconds to do so. In this case, the
subscript D stands for the discharge time. The discharging process continues until the
output voltage of B reaches its minimum value of Vob, min . As it tends to go below its
minimum value, the differential voltage at the input terminals of A reverses and its output
voltage becomes zero again. The cycle begins all over again.
The expression for the minimum voltage of B can be written as
R2 R1
Vdc = Vob ,min + Voa , max
R1 + R 2 R
1 + R 2
where Voa , max = Vs for the ideal operational amplifier. It may in fact be one or two volts
Equations (6) and (10) helps us determine the charging and discharging times. The time
period and the frequency of the triangular wave is
T = TC + TD (11)
1
f= (12)
T
The triangular output voltage is applied at the noninverting terminal of
comparator C where it is compared with the variable reference voltage Vref , which is
expected to be greater than minimum output voltage of B, Vob, min .The output of the
comparator is a rectangular pulse whose duration depends upon the reference voltage
Vref as shown below. The lower the reference voltage, the wider the pulse width of the
output voltage of comparator C.
Example :_____________________________________________________________
The PWM circuit of Figure-1 is operated from a 12-V dc supply. The various circuit
elements are as follows: R 1 = 33 kΩ , R 2 = 100 kΩ , R 3 = 20 kΩ , R 4 = 10 kΩ ,
R 33
VC,min = (Vdc − Voa ,max ) 1 = (4 − 12) = −2.64 V
R2 100
(b) The maximum and minimum output voltages at the output of operational
amplifier B are
Vob, max = Vdc + VC,max = 4 + 1.32 = 5.32 V
(c) The charging and discharging times form (6) and (12), respectively, are
VC, max − VC ,min 1.32 + 2.64
TC = RC = (
3
)
−6
10 × 10 (1 × 10 ) = 9.9 ms
Vdc 4
VC,max − VC ,min 1.32 + 2.64
TD = RC = (
3
)
−6
10 × 10 (1 × 10 ) = 4.95 ms
Voa ,max − Vdc 12 − 4
(d) The time period and frequency are
T = TC + TD = 9.9 + 4.95 = 14.85 ms
1 1
f= = = 67.34 Hz
T 14.85 × 10 −3
(e) From Figure 2, the equation for the charging time may be written as
Vob, max − Vob ,min
v ob ( t ) = Vob ,min + t
TC
R = 20 kΩ C = 1µ F and Vref = 5 V.
2. In the above example, select R and C so that the time period is 100ms. What must
be the setting of the 100 kΩ potentiometer to obtain a duty cycle of 75%?
3. For the two topologies shown above using a single operational amplifier, compute
the on-time, off-time, and the duty cycle. Sketch the output voltage and the
voltage across the capacitor for each circuit.