CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

VS1011 got crash sound when play MP3

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
tidushuu



Joined: 29 Sep 2012
Posts: 8

View user's profile Send private message

VS1011 got crash sound when play MP3
PostPosted: Tue Oct 02, 2012 6:44 am     Reply with quote

I can play mp3 with vs1011 up to 320kbit, it play smooth but after 1 or 2 sec it sometime interrupt zzz, it same with lowest bitrate 32kbit. It's strange because 320kbit and 32kbit still play OK but it got crash sound.
I using PIC16f887 with 20M OSC and vs1011 with 12.886M, I set CLOCKF = 0x9800.
First time, I set block_data = 64bytes, its same. Next I set to block_data = 256 its not different.
I so confused about that zzzz.
This is code I use to tranfer data from SD Card to VS1011.
Code:

  for(ii=0;ii<8;ii++)
    {
    while(!input(DREQ));
     output_low(XDCS);   
    for(i=0;i<32;i++)
   {
  spi_read(0xFF);
   }
    output_high(XDCS);   
    }
 

With ii=8 to equal with block_data = 256.
When I set ii= any value, it still got crash sound when play any bitrate Mp3.
Thanks for read my question, I hope someone can help me fix this crash.
trungk



Joined: 02 Jul 2013
Posts: 1
Location: Viet Nam

View user's profile Send private message

Re: VS1011 got crash sound when play MP3
PostPosted: Tue Jul 02, 2013 9:59 am     Reply with quote

tidushuu wrote:
I can play mp3 with vs1011 up to 320kbit, it play smooth but after 1 or 2 sec it sometime interrupt zzz, it same with lowest bitrate 32kbit. It's strange because 320kbit and 32kbit still play OK but it got crash sound.
I using PIC16f887 with 20M OSC and vs1011 with 12.886M, I set CLOCKF = 0x9800.
First time, I set block_data = 64bytes, its same. Next I set to block_data = 256 its not different.
I so confused about that zzzz.
This is code I use to tranfer data from SD Card to VS1011.
Code:

  for(ii=0;ii<8;ii++)
    {
    while(!input(DREQ));
     output_low(XDCS);   
    for(i=0;i<32;i++)
   {
  spi_read(0xFF);
   }
    output_high(XDCS);   
    }
 

With ii=8 to equal with block_data = 256.
When I set ii= any value, it still got crash sound when play any bitrate Mp3.
Thanks for read my question, I hope someone can help me fix this crash.

Hello Dear!
I also program for PIC16F887 and VS1011e + SD Card
But it doesn't play.
Please give me your source code
My Email: atcom.group.vn@gmail.com
Thanks so much!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group