Woodward PWM filter
rbehm
Posts: 102
We are all using PWM to create analog outputs.
These need filters to smooth them and remove ripple. But the simple RC filters are either slow or no very effective.
Here is a clever solution from Winfield Hill (of AoE fame) based on an idea from Stephen Woodward. It mere adds another RC to gain much better ripple rejection without increasing the settling time.
https://dropbox.com/s/xvwjvlun1rg1vca/4x.25_PWM_ripple.pdf?dl=0
These need filters to smooth them and remove ripple. But the simple RC filters are either slow or no very effective.
Here is a clever solution from Winfield Hill (of AoE fame) based on an idea from Stephen Woodward. It mere adds another RC to gain much better ripple rejection without increasing the settling time.
https://dropbox.com/s/xvwjvlun1rg1vca/4x.25_PWM_ripple.pdf?dl=0
Comments
:cool:
My friend, Rick Galinson, has built three or four of these Propeller-powered paintball miniguns. This video was shot at a Parallax event.
https://youtube.com/watch?v=lOkw1lMGsfw
Is it pure coincidence that Galinson is similar to Gatlin gun? :cool:
Cancel-PWM-DAC-ripple-with-analog-subtraction
With P1's counters providing an optional complementary output, all thats needed are one or two extra passive components (assuming enough pins are available)
Interesting that Spice shows the waveform of his dual polarity lead/lag 2R/2C filter, to be an exact clone of a 2nd order LPF, using R/C/R/C
- The traces literally sit on top of each other.
ie he can throw away the Analog Switch, and get exactly the same response result
See above, all you need the the extra passives, no need to use another pin ...
Incidentally, thanks for the heads' up about the forthcoming sequel, Art of Electronics -- The x-Chapters. Who would not want to taste the frosting on the best electronics book ever written?
Where did you find the link to that specific snippet? A quick search found this on EEblog, Winfield Hill himself participating, with links to other draft snippets in Dropbox.
Preorder expected sometime in 1Q20.
-Phil
fast-pwm-up-to-1-6-mhz
not the duty mode of the cog counters.
However, it should work with the duty mode at 50% duty cycle and quite a bit around that, so long as the joined periods do not stray too far from 1/clkfreq. Well, it could smoothing duty mode PWM -> analog at clkfreq=5MHz, for lower power operation.
'above' was my comment right above the 2nd quote.
Spice says this `new filter` is actually identical to a standard 2nd order, simplest form of identical R,C,R,C
As per attached : Compares 'woodward-pwm-filter' with a simpler 2nd order and says 0.0V difference.
Hi Tracy,
Win Hill mentioned this in a thread on usenet sci.electronics.design.
Did you also run your Spice simulation for PWM step from x% to y%, that is, how does it compare with figure 4x.156 in Hill's analysis? Tradeoffs between ripple and response.
Seems there is no free lunch, and 2R and 2C give a second order response, no matter how wired.