I was reading up on filter design when I came across an article on the Lab3 site….
The results were impressive, using just Pulse Width Modulation generate an accurate 8-bit sine wave. The key is a good low pass filter – most of the time I’ve been using as RC filter, but this uses a Chebyshef low pass with a cutoff at 12 kHz. This one was built using some parts salvaged from an old TV.
These images show the PWM output along with the filtered sine wave – easier than using a dedicated DAC.
Another neat trick I learned from Lab3 was to set a pin high during the interrupt handler routine – then you scope the pin while it’s running and see exactly how much CPU is being consumed.
This is interesting, as it makes it possible to (cheaply) implement something I’ve been thinking about building for a while…
More to come on this.