Forum Menu




 


Log in Problems?
New User? Sign Up!

DN039 - Sound Sample Play Back

Updated: Feb 24, 2005

Description

Ever wanted to add sound effects or voice sample play back to your AVR project? Well
here is a simple interrupt driven sound sample play back routine for the 8515. It uses
minimal external hardware i.e., just connect an Audio Transducer to PB1. The sound
sample data is compressed into 1-bit samples (On or Off) which allows you to fit 1 second
of 16 kHz sample play back data into less than 2K bytes of Program Memory. That
is approximately a total of four seconds worth of play back time for an 8515. The sound
quality is quite reasonable considering its 1-bit PCM. This routine also supports variable
sample rates, i.e., 8 kHz, 11 kHz, 16 kHz, 22 kHz, 32 kHz, 44 kHz, and 48 kHz.

Categories

  • Design Note
Version Presented by Price Rating
DN039 AVRfreaks.net (Find Distributor) Free! Rank: 3
Documents Files
Supported AVRs Supported Tools
  • none
  • none
Log in to rate this item.