> > 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. Yes, 8 bits mono. No, it's a good idea - do try it at home. It is rough and ready but the point was it's really easy to try and then you can develop it further. Like you say it shouldn't be too hard to use the PIC to decode the wave file header. Brent Brown Electronic Design Solutions 16 English Street Hamilton, New Zealand Ph/fax: +64 7 849 0069 Mobile/text: 025 334 069 eMail: brent.brown@clear.net.nz -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body