Clever PWM to DC Output Using LM431

A resource for technical documentation. Datasheets, application notes, instruction manuals, books and links to resources are found in the Document Library.
Post Reply
User avatar
mediatechnology
Posts: 5443
Joined: Sat Aug 11, 2007 2:34 pm
Location: Oak Cliff, Texas
Contact:

Clever PWM to DC Output Using LM431

Post by mediatechnology »

I recently re-discovered this circuit in a Design Idea and thought it was a very clever use of an LM431 as the feedback "op amp" element in a Sallen-Key filter.

"Simple Circuit Turns PWM Into A Digitally Adjustable Precision Reference," Rick Mally, Electronic Design, February 10, 2012.

http://electronicdesign.com/analog/simp ... -reference
Designs frequently require the conversion of a microprocessor’s pulse width modulation (PWM) signal into an analog voltage. Often a passive single-pole RC filter will satisfy design requirements, but this approach typically suffers from several drawbacks including slow response time, noisy results, and having an unbuffered output.

The circuit described here uses the ubiquitous LM431 shunt regulator to implement a second-order Sallen-Key low pass filter together with a level shifter (see the figure). Compared to the traditional approach, it provides a far sharper roll-off along with a low-impedance output, bipolar output. It will produce a –2.5- to +2.5-V output with a 0- to 5-V PWM signal input. The value of VOut is equal to (5 V × dc) – 2.5 V, where dc is the PWM duty from 0.0 to 1.0 (0% to 100%).

The component values depicted provide a flat response with a cutoff frequency around 2300 Hz, a –12-dB/octave roll-off, and drive capability of about 3 mA. You can easily change the cutoff frequency by adjusting R1 and R2 or C1 and C2, although it is important to keep R1 equal to R2 and C2 at about half the value of C1.

Doubling the resistor or capacitor values will cut the frequency in half. Halving either set of values will double the cutoff frequency. You can adjust R3 to provide more output current or to reduce power consumption. The 5-V rails depicted do not have to be precise and can be a higher voltage. Only the PWM input signal needs to be precisely 5 V.
Image
Post Reply