I make standalone mp3 player by vs1053b.
It can play mp3 file from sd. But very noisy.
https://youtube.com/shorts/NvIIJiPfYz4
How do I fix this problem ?
Thanks
Hiroki Mori
Very noisy mp3
Re: Very noisy mp3
It sounds like the internal clock is too low and the decoder can't do its work in real-time. An mp3 with lower samplerate (or mono) would probably play correctly.
Are you loading the standalone player through SCI or does vs1053b load it from SPI EEPROM?
When vs1053b loads the code from SPI memory, the boot image writes to SCI_CLOCKF and other SCI registers, setting default values. This doesn't happen when you load the code through SCI. You have to set the SCI registers to the suitable values. Check the standalone.pdf document.
If you load the code through SCI, remember to write at least 3.0x clock to SCI_CLOCKF first. 0x8000 (3.5x) is a good default.
Some VSIDE solutions may be configured incorrectly and also miss the default values from the boot record. In this case you can add USEX(SCI_CLOCKF) = 0x8000; to the start of MyMain() function (in standalone.c) and recompile.
Are you loading the standalone player through SCI or does vs1053b load it from SPI EEPROM?
When vs1053b loads the code from SPI memory, the boot image writes to SCI_CLOCKF and other SCI registers, setting default values. This doesn't happen when you load the code through SCI. You have to set the SCI registers to the suitable values. Check the standalone.pdf document.
If you load the code through SCI, remember to write at least 3.0x clock to SCI_CLOCKF first. 0x8000 (3.5x) is a good default.
Some VSIDE solutions may be configured incorrectly and also miss the default values from the boot record. In this case you can add USEX(SCI_CLOCKF) = 0x8000; to the start of MyMain() function (in standalone.c) and recompile.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
Re: Very noisy mp3
pasi
Thanks for your advice.
I fixed SCI_CLOCKF in MyMain().
Thanks again.
Thanks for your advice.
I fixed SCI_CLOCKF in MyMain().
Thanks again.