There is an AN from Atmel, that describes how to do it !! Bye Javier ----- Original Message ----- From: Nicholas Irias To: Sent: Saturday, August 26, 2000 2:47 PM Subject: [PIC]: Playing WAV files on a PIC > I am planning to use a PIC to play a few WAV files for sound effects. My > current plan is to store the WAV file data block in EPROM, use the PIC to > pull sequential data samples, and use one of the PWMs to generate an analog > output for each sample. > > My question has to do with mixing two or more WAVs so they can be output on > a single PWM. Assuming that the sample rates are identical, is this just as > simple as adding one sample point from each data stream and using the sum > for an output? Or is there some greater trickery involved? The question > arises because I have only two PWM outputs on the PIC and I might have three > or more sounds superimposed. > > By the way, if it sounds like I am approaching this problem the hard way, > please let me know. > > -Nicholas > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu