The firmware works for SDHC cards only. Code C for MPLABX with XC8. HEX files included.
The FAT32 code is minimal, it only finds the files location and repeats playing them. File names have to be short and located in the root folder.
The PIC's CCP is used as a DAC to convert the digital data back to audio. The sound is tape quality.
SD card interfaces the PIC in SPI mode. Reading the data is in multi-blocks.
NEXT button advances to the next track when pressed.
The transistors are a current buffer to drive a speaker.
Pins number are of an SD card, for microSD card use converter to SD card.
Code can be downloaded
TO SET UP THE CARD:
Format the card with FAT32.
Create sound files type .wav
Name the files with short names, 8 low case characters max.
Save the files as 22.050KHz, 8 bits, mono.
Add the files to the root directory of the card (don't use a subdirectory).
The FAT32 code is minimal, it only finds the files location and repeats playing them. File names have to be short and located in the root folder.
The PIC's CCP is used as a DAC to convert the digital data back to audio. The sound is tape quality.
SD card interfaces the PIC in SPI mode. Reading the data is in multi-blocks.
NEXT button advances to the next track when pressed.
The transistors are a current buffer to drive a speaker.
Pins number are of an SD card, for microSD card use converter to SD card.
Code can be downloaded
TO SET UP THE CARD:
Format the card with FAT32.
Create sound files type .wav
Name the files with short names, 8 low case characters max.
Save the files as 22.050KHz, 8 bits, mono.
Add the files to the root directory of the card (don't use a subdirectory).