The commands are easy - the pdf gives them, here are 3
HSEROUT [$7E,$FF,$06,$03,$00,$00,MESSAGE,$EF] ' Plays file from sd card - eg if if button 5 is pushed then make variable MESSAGE =5, the fifth file will play.
HSEROUT [$7E,$FF,$06,$06,$00,$00,VOLUME,$EF] ' VOLUME (1 to 30) It will remember the setting after a powerdown.
HSEROUT [$7E,$FF,$06,$16,$00,$00,$00,$EF] 'STOP PLAY
Things to note
When copying your mp3 files to sd card, make sure the card
is blank, and then copy each 1 on to it seperately.
The reason being is that it takes no notice of the name,
it plays back the files in the order they are put on the
SD card. But for ease of use I name them 001, 002 etc
Alternatively there is a program that will put files in the order you need on the sdcard.
It is called drivesort http://www.anerty.net/software/file/DriveSort/?lang=en
Things to remember on startup send the stop command in case it autoplays.
Send the stop command prior to sending a play command, I cannot remember if when you send another play command it stops the current one, or queues it for play after current one ends.
Correction to previous posting re busy, there is a proper busy signal on the actual chip, it is pin 10, but you will need to VERY carefully solder a thin wire to it and connect that to your PIC for the busy signal.
http://www.da-share.com/files/datash...X5300_Docs.zip Has program and data sheets in the zip -
See page 5 of zipped datasheet - the pdf is in Chinese, but info of pinout is in English




Bookmarks