Datasheet

VS1053b Datasheet
10 OPERATION
10.5.1 Playing a Whole File
This is the default playback mode.
1. Send an audio file to VS1053b.
2. Read extra parameter value endFillByte (Chapter 10.11).
3. Send at least 2052 bytes of endFillByte[7:0].
4. Set SCI_MODE bit SM_CANCEL.
5. Send at least 32 bytes of endFillByte[7:0].
6. Read SCI_MODE. If SM_CANCEL is still set, go to 5. If SM_CANCEL hasn’t cleared
after sending 2048 bytes, do a software reset (this should be extremely rare).
7. The song has now been successfully sent. HDAT0 and HDAT1 should now both contain
0 to indicate that no format is being decoded. Return to 1.
10.5.2 Cancelling Playback
Cancelling playback of a song is a normal operation when the user wants to jump to another
song while doing playback.
1. Send a portion of an audio file to VS1053b.
2. Set SCI_MODE bit SM_CANCEL.
3. Continue sending audio file, but check SM_CANCEL after every 32 bytes of data. If it
is still set, goto 3. If SM_CANCEL doesn’t clear after 2048 bytes or one second, do a
software reset (this should be extremely rare).
4. When SM_CANCEL has cleared, read extra parameter value endFillByte (Chapter 10.11).
5. Send 2052 bytes of endFillByte[7:0].
6. HDAT0 and HDAT1 should now both contain 0 to indicate that no format is being decoded.
You can now send the next audio file.
10.5.3 Fast Play
VS1053b allows fast audio playback. If your microcontroller can feed data fast enough to the
VS1053b, this is the preferred way to fast forward audio.
1. Start sending an audio file to VS1053b.
2. To set fast play, set extra parameter value playSpeed (Chapter 10.11).
3. Continue sending audio file.
4. To exit fast play mode, write 1 to playSpeed.
To estimate whether or not your microcontroller can feed enough data to VS1053b in fast play
mode, see contents of extra parameter value byteRate (Chapter 10.11). Note that byteRate
contains the data speed of the file played back at nominal speed even when fast play is active.
Note: Play speed is not reset when song is changed.
Version: 1.22, 2014-12-19 50