DIYstompboxes.com

DIY Stompboxes => Digital & DSP => Topic started by: egasimus on November 01, 2011, 11:10:29 AM

Title: Direct digital synthesis using Atmel AVR
Post by: egasimus on November 01, 2011, 11:10:29 AM
Is it possible to have an 8-bit Atmel uC output 4 frequencies, two in the audio range (15-5000Hz), and two sub-sonic (0.1-10Hz)? This has been bothering me for a couple of days - do you think an ATtiny clocked at 20MHz has enough power to replace two VCOs and two LFOs in a synthesizer? I made some calculations, which led me nowhere, but the idea isn't ready to leave my mind and head for oblivion just yet. I've seen this done with one VCO (link (http://www.sdiy.org/labolida/), link (http://www.myplace.nu/avr/minidds/) - second example goes into hundreds of kHz!), but both cases use 4 pins of the MCU as a DAC, and I'd prefer using PWM.

So what do you think of my idea? Is it feasible?
Title: Re: Direct digital synthesis using Atmel AVR
Post by: wavley on November 01, 2011, 01:08:20 PM
Yep, there sure is and it sounds AWESOME!

http://meeblip.noisepages.com/ (http://meeblip.noisepages.com/)

http://www.diystompboxes.com/smfforum/index.php?topic=89917.0 (http://www.diystompboxes.com/smfforum/index.php?topic=89917.0)
Title: Re: Direct digital synthesis using Atmel AVR
Post by: egasimus on November 01, 2011, 02:38:42 PM
Awesome stuff! And only at 16MHz :o Many thanks! :)
Title: Re: Direct digital synthesis using Atmel AVR
Post by: nexekho on November 01, 2011, 07:56:51 PM
It's quite surprising what you can get done in 16mHz when you aren't dribbling cycles away into drivers and APIs.
Title: Re: Direct digital synthesis using Atmel AVR
Post by: egasimus on November 02, 2011, 03:13:38 AM
You're right. I was amazed that it's 16MHz as opposed to 20 or 24. My calculations led me to think even 32MHz could be too slow, but I just saw they were incorrect. Bah. I'm an ass.