![]() Also did you ever read the VS1003 datasheet? I'm pretty sure it explicitly said that DREQ high means it can accept at least 32 bytes (meaning DREQ's falling edge means it can probably take 0 to 32 more bytes but you MUST try to stop immediantly) ![]() unless you are matching the MP3 file's bitrate exactly, you should check DREQ. Oh and "the whole thing just goes wrong" is not descriptive enough, you are not telling us how you know "it doesn't even write anything to the slave"Īlso, you are not checking DREQ when sending the data. ![]() If you take a look in detail, you'll know exactly how long it takes for the 512-byte data block to be transfered from the SD card, and how frequently the MP3 decoder requests the data. Third point, I think I have already pointed you towards my tutorial on almost the exact thing you are making, I'm not sure if you've bothered with it, but if you take a look at step 14,, I have a logic analyzer session that shows you exactly how the data is sent between the SD card, the AVR, and the MP3 decoder. I've been at this for like 2 weeks now and im super frustrated >.<ĭude relax, that's way overkill, did you think about your song's bit rate, and the speed at which you can access the data on your card? you should start by performing these kind of estimating calculations before allocating memory like that.Īnother point, SD cards can only be accessed block-by-block, and this is usually a 512 byte block, I bet you that the library already caches this block for you, and the card won't be accessed as long as you are using data from the same block wait for the chip to finish executing command sets sci_mode register, SM_SDINEW, SM_TESTS, SM_STREAM. max SDI clock freq = CLKI/7 and (datasheet) CLKI = 36.864, hence max clock = 5MHz Neither one of the spi slaves interacts and the whole thing just goes wrong, it doesn't even write anything to the slave. They both work seperatley, but when i try to combine them it doesn't work. I'm using the arduino uno and trying to use both as slaves. I'm trying to use the sdfat library with the arduino spi library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |