Included among the many applications for pulse-width modulation (PWM) are voltage regulation, power-level control, and fan-speed control. A PWM circuit for such systems can be implemented with three op amps on a single quad-op-amp chip (Fig. 1).
Because op amps are used for the modulator, it's suited for a wide variety of applications. For example, low-power op amps can be used in a low-power system, and high-frequency op amps can be used for a high-frequency PWM. The circuit in Figure 1 also generates a triangular wave.
The circuit consists of a triangular-wave generator (U1a and U1b) and a comparator (U1c). U1a is configured as an integrator (or de-integrator) and U1b as a comparator with hysteresis. At power-up, the comparator's output voltage is assumed to be zero.
U1a's noninverting input is biased at VCC/2. A virtual connection between the inverting and noninverting inputs allows a constant current through R equal to I = VCC/2R, which charges capacitor C. Thus, the U1A integrator output increases linearly with time. When it reaches 0.75 VCC, the comparator output (U1b) changes to its maximum output voltage (VCC). At that point, the integrator begins to de-integrate, causing the output voltage to decrease linearly. When it reaches 0.25 VCC, the comparator output voltage changes to zero, and the cycle repeats. Thus, the integrator output is a triangular wave that swings between the levels of 0.25 VCC and 0.75 VCC.
U1c compares the triangular wave against the dc level VIN. Its output is a square wave, with a duty cycle that varies from 0 to 100% as VIN varies from 0.25 VCC to 0.75 VCC (Fig. 2). Frequency is determined by R, C, R1, and R2:
f = R2/(4RCR1)
where R2 > R1.
The ratio of R2 and R1 affects the operating frequency and the amplitude of the triangular wave. Given that VTH is the triangular wave's maximum voltage and VTL is its minimum voltage, the amplitude swing is:
VTH = VCC(R1 + R2)/2R2, and
VTL = VCC(R2 − R1)/2R2,
where R2 > R1. Therefore:
VTH − VTL = (R1/R2)VCC (R2 > R1).
The triangular wave's peak-to-peak voltage is centered at the VCC/2 bias voltage generated by R3 and R4. With the circuit configuration shown, the PWM operates on a single supply. Use micropower op amps and larger resistors (R and R1 to R4) for low-power applications and high-frequency op amps for higher-frequency applications. (The quad op amp shown comes in a single package.)
I designed a similar circuit a few days back, using the TL084 as the quad OP-AMP. My supply voltage was 12 volts dc. I got a pure triangular wave with amplitude swing of about 9.5 volts peak to peak. I adjusted component values just to see the frequency response. The triangular wave was good up to 85kHz. It was distorted thereafter. Kindly suggest a different quad op-amp whose triangular wave can remain good at 400kHz.
JOHN IKEDE -August 31, 2005 (Article Rating: )
better than my university lecturer - dr w b
barry w -May 09, 2005 (Article Rating: )
I need to vary the duty cycle. NB: frequency must be constant. I am looking forward to trying the design I saw on this article.
Bendzii -March 29, 2005 (Article Rating: )
Extreme versatility.
Metodi Chalapoutov -January 01, 2005
ineed avariable duty cycle.diffrent duty cycle in the same period
ghaith fandi -December 16, 2004
really good
srilan maranan -September 15, 2004
I was looking for a 0% - 100% Analog (NON-COMPUTER) PWM circuit and this one just dropped in my lap. I have not constructed, it but I look forward to using it. When controlling current in applications where getting approval for a microcontroller's operation can be difficult, a purely HARDWARE design can come in handy. The fact that it ranges from 0% (completely off) to 100% (fully on) is the best feature of this design.
Steven Alexander -March 08, 2004
Your Comments:
Enter the text from the image below
Please refresh the page if you have trouble reading this text.
Search Electronic Design
Email Newsletter
Sponsored By:
The Find Power Products monthly newsletter brings you the most important new developments within the world of power design. The newsletter includes exerpts from industry leader Sam Davis's exclusive blog, as well as overviews of the latest new products.
Enter Email to Subscribe
Web Seminar
Sponsored By:
Title: Exploring How Good GUIs Drive Adoption in the Digital Power Management Space