Close

First code seems to be working!

A project log for sound_chip_AVR

Using fast PWM capabilities of some AVR MCUs to make sounds using DDS.

ethan-durrantEthan Durrant 09/22/2014 at 06:190 Comments

I finally got to cleaning up and compiling the test code I wrote for the ATtiny26! This test code should be producing the "Middle C" note, with output from OC1A on PB1. The output seems to be correct when fed into my Stellaris Launchpad Logic analyser and OLS. It shows the PWM changing based on the table values. I have not listened to the audio yet ( people may be awakened!  ), or added a low pass filter for the Sine Wave generation, so those will have to wait.

here's some pics from the logic analyser:

Discussions