EShring
Newbie level 1
Help with MP3 project.
I treing to make a MP3 Player but I have a problem with the file.
I use SD/MMC card and vs1002 decoder and micro at89c51ed2.
The code is in C, and the problem is some where here:
unsigned char MmcWaitForData(){
unsigned char c;
unsigned int i;
DebugMessage("<t:"); //Token Wait
i = 60000; //try max. 60000 bus cycles
// Wait until something else than 0xff is read from the bus
do {
c=SPIGetChar();
--i;
} while ((c == 0xff) && (i));
It shold be FEh in tje responed (in C).
I use SPI here.
The all code is in here:
https://www.vlsi.fi/player_vs1011_1002_1003/modularplayer/files.html
tnx for the help.
I treing to make a MP3 Player but I have a problem with the file.
I use SD/MMC card and vs1002 decoder and micro at89c51ed2.
The code is in C, and the problem is some where here:
unsigned char MmcWaitForData(){
unsigned char c;
unsigned int i;
DebugMessage("<t:"); //Token Wait
i = 60000; //try max. 60000 bus cycles
// Wait until something else than 0xff is read from the bus
do {
c=SPIGetChar();
--i;
} while ((c == 0xff) && (i));
It shold be FEh in tje responed (in C).
I use SPI here.
The all code is in here:
https://www.vlsi.fi/player_vs1011_1002_1003/modularplayer/files.html
tnx for the help.