Microchip logo
  • All
  • Products
  • Documents
  • Applications Notes

SD Card Audio Player

Audio provides a means of communication, improves the usability of a product and delivers entertainment. It can transform the mood of an environment, help us escape a noisy commute, make a device simple and intuitive to use and improve the quality of life for the visually impaired.



This SD card audio player reads .wav format audio files from an SD card and plays the audio through a codec. It also provides a feature to switch to the next track on the media.

Here’s a brief overview of the demo:

  • The Curiosity PIC32MZ EF 2.0 Development Board reads the audio files from the SD card, which is mounted on the microSD click board
  • The audio is played through the codec provided by the PIC32 Audio Codec Daughter Card – AK4954, which is placed on the X32 header interface on the Curiosity board 
  • The sdcard_player application plays .wav files from the SD card and uses the File System Service to read/write data on the SD card
  • The SD card driver uses the SPI driver to interact with the SD card
  • The audio data read from the SD card is decoded by passing it to the WAV decoder
  • The codec driver sends the audio data to the AK4954 codec via the I2S™ driver, which uses Direct Memory Access (DMA) to transfer the audio data
SD Card Audio Player
Harmony Audio