Very noisy mp3

Designing hardware that use VLSI Solution's devices as the system controller for the entire design.
Post Reply
yamori813
User
Posts: 2
Joined: Fri 2023-12-29 5:31

Very noisy mp3

Post by yamori813 »

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
User avatar
pasi
VLSI Staff
Posts: 2164
Joined: Thu 2010-07-15 16:04

Re: Very noisy mp3

Post by pasi »

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.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
yamori813
User
Posts: 2
Joined: Fri 2023-12-29 5:31

Re: Very noisy mp3

Post by yamori813 »

pasi

Thanks for your advice.

I fixed SCI_CLOCKF in MyMain().

Thanks again.
Post Reply