How to read big amounts of data?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to read big amounts of data?

跳至解决方案
1,462 次查看
PW_CTL
Contributor III

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...)?

标签 (1)
0 项奖励
回复
1 解答
782 次查看
peg
Senior Contributor IV

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.

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
782 次查看
peg
Senior Contributor IV

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.

 

0 项奖励
回复
782 次查看
PW_CTL
Contributor III

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.

 

0 项奖励
回复
783 次查看
peg
Senior Contributor IV

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.

 

0 项奖励
回复
782 次查看
PW_CTL
Contributor III

Thank you very much.

 

I´ll try a little 8 pins DIP 1MB SPI eeprom. It will be enough for my purposes. Cheap and small.

 

Best regards.

0 项奖励
回复
782 次查看
PeterHouse
Contributor I
MB or Mb? Mega Byte or Mega bit. Big difference in storage space. Good Luck.
0 项奖励
回复