> When I did this (it was a Philips 80c552 chip, but same principles > apply), I just used an RC filter and then AC coupled it into an audio > amp. I ignored the header info at the start of the .wav file and > played it like it was audio data, the result was just a slight click at > the start of the sound. I set the PWM frequency as high as it would > go. When not producing a sound set the PWM output to 50% (2.5V), > as the data in the wave file is also biased at "half way". Note that this WAV file hack only works if the WAV data is 8 bit monophonic. In general this is a bad idea - don't try this at home. Reading a WAV file properly is really quite easy. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body