Vs1002d MP3 player
This is how to set up a vs1002d mp3 decoder IC for standalone playback from a SD card using a micro controller for playback function.
Original code credit: http://www.penjuinlabs.com/blog/?p=42
When you turn on the system. Code on the AVR is loaded into the vs1002 program space which allows it to operate as a stand alone mp3 player. It can read and play mp3s from a FAT formatted SD card. Using SCI commands you can get file name info and other bits of data from the decoder.
This source code as is compiles to 7984 bytes. You will need an AVR with enough program space to hold it.
Control registers and whatnot can be read from the data sheet here: http://www.vlsi.fi/fileadmin/evaluation_boards/standalone.pdf Section 5 specially.
A SD/MMC mini board for my SD card: http://www.futurlec.com/Mini_SC.shtml
and a STK500 for my ATmega644.
On the vs1002:
RX - VCC
GPIO0 - GND
From the vs1002 to the SD card board
DREQ - DI (2)
GPIO3 - CLK (5)
GPIO2 - DO (7)
GPIO1 - #CS (1)
From the vs1002 to the AVR, SPI port pins are ATmega644 specific
SO - MISO (PB6)
SI - MOSI (PB5)
SCK - SCK (PB7)
XCS - PB0
XDCS - PB1
XRESET - PB2
And finally I have PB3 supplying power to the SD card so it can be reset via software if need be.