Hi,

Theory of operation.

AVR335: Digital Sound Recorder with AVR and DataFlash
http://www.atmel.com/dyn/resources/p...ts/doc1456.pdf

Source code:
http://www.atmel.com/dyn/resources/p...nts/avr335.zip

Best regards,

Luciano