Hi,
I want to play a sound with a RS08. For that, I want to storage a uncompressed audio file in a external memory, and read it from the RS08 to play it directly.
The problem is in the storage method and the speed needed to read the bitstream to play the audio file (one second, 44.1KHz, 16bits).
Have you ever done something like that? Please, can you recommend me a storage method (eeprom, flash, sd card...)?
已解决! 转到解答。
Hello,
Yes, if the ability to remove the card and plug it into a computer is of no benefit then don't use SD.
I would recommend SPI interface EEPROM memory. They all work pretty much the same. You send a write instruction then a start address and then you can just stream the data out to it up to a page boundary. To read you send a read instruction then an address then keep feeding clocks until you have got all you like. This makes it VERY low overhead to read in lots of contiguous data. Which exact device is up to you but maybe more determined by what you have access to easily through your regular suppliers.
Hi,
10 secconds of searching revealed https://community.freescale.com/message/57084#57084.
I thing you will struggle with an RS to do this.
Using an SD card allows an easy way to get the sound to the device.
Hi peg,
Yes, I know this post and even I tried to follow it some days ago, but I think this is not the easiest way to get access to data, and I really do not need a SD card.
I think it should be easy to use a little eeprom or a nand flash. 1MB will be enough.
My question is if you recommend me a spi or i2c memory, and how to program it.
Thanks and best regards.
Hello,
Yes, if the ability to remove the card and plug it into a computer is of no benefit then don't use SD.
I would recommend SPI interface EEPROM memory. They all work pretty much the same. You send a write instruction then a start address and then you can just stream the data out to it up to a page boundary. To read you send a read instruction then an address then keep feeding clocks until you have got all you like. This makes it VERY low overhead to read in lots of contiguous data. Which exact device is up to you but maybe more determined by what you have access to easily through your regular suppliers.