If you’re looking for a suitable player that continuously playing your favorite songs in WAV format, then you have found it here.
Today, you’ll learn the simplest way to create a dsPIC WAV player. This project is based on the microchip MDDFS library (Memory Disk Drive File System). The Integrated C source code can easily manage a FAT12, FAT16 or FAT32 file system and interface to a SD, CF memory card or an IDE hard drive. And, the best part about this application: its totally free of charge! The only disadvantage for this application, is the amount of memory it needs, where it can takes up a huge 23KB in flash or 1.4KB of RAM!
First of all, you will need a way to output an analog voltage out of the PIC, and the PWM is the easiest method for this purpose.
Next, you have to know how to get audio data from a *.WAV file. All you need it for now, is some link between the raw data from the WAV file to the PWM output.
Lastly, the audio will come out of the PWM pin on the pic. What are you waiting for? Just plug in the audio jack and enjoy the music 🙂
For All Your PCB Need, One-stop PCB Solution Services Appear: