Pages: [1]   Go Down
Author Topic: SPI Flash capacity and speed  (Read 956 times)
0 Members and 1 Guest are viewing this topic.
New York
Offline Offline
Sr. Member
****
Karma: 4
Posts: 366
xronosclock.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You'll laugh, but I just found about SPI Flash and how cheap it is comparing to the microSD cards (if you need only about 10 Megabytes of data stored).
So please forgive my n00bness but I'm a little confused about capacity specs of flash. It seems to be specified in Megabits, not megabytes. I thought Megabits were reserved for measurement of speed not capacity?  Will 128 Megabit flash give me 16 Megabytes of storage or am I confusing specs?
Should I worry about SPI Flash speed specs?  i.e. will 108Mhz flash work with Arduinoish ATMega MCUs that runnin at 16 Mhz?
Logged

Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info smiley

Valencia, Spain
Online Online
Faraday Member
**
Karma: 146
Posts: 5529
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

8 bits = 1 byte

will 108Mhz flash work with Arduinoish ATMega MCUs that runnin at 16 Mhz?

Yes.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

New York
Offline Offline
Sr. Member
****
Karma: 4
Posts: 366
xronosclock.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

8 bits = 1 byte

will 108Mhz flash work with Arduinoish ATMega MCUs that runnin at 16 Mhz?

Yes.

Thanks!  One more question, does Serial Flash IC (i.e. something like this)  have speed comparable to regular SD Cards?  I wanted to see if it's feasible to read WAV files from flash IC with WaveShield library...
Logged

Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info smiley

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27115
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like an interesting chip.
Supports DC to 90-108MHz operation - best you can do with SPI is 8 MHz, about 1 byte transmitted per microsecond if you can do burst of SPI transfers with no looping.
(I posted code recently that sends out 41 bytes in ~46uS from an array, added 12uS to loop thru it).
Since you have to provide at least the starting address of the locations you want to read from & write to, vs a file name associated with an SD card file, I don't see how the waveshield library will help.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

New York
Offline Offline
Sr. Member
****
Karma: 4
Posts: 366
xronosclock.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like an interesting chip.
Supports DC to 90-108MHz operation - best you can do with SPI is 8 MHz, about 1 byte transmitted per microsecond if you can do burst of SPI transfers with no looping.
(I posted code recently that sends out 41 bytes in ~46uS from an array, added 12uS to loop thru it).
Since you have to provide at least the starting address of the locations you want to read from & write to, vs a file name associated with an SD card file, I don't see how the waveshield library will help.
Oh I didn't know about that smiley I wonder if it can formatted like SD card?
Logged

Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info smiley

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2916
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You probably want this part, instead of the other, which sells in qty = 1800.
http://www.digikey.com/product-detail/en/N25Q128A13ESE40E/557-1562-ND/3874288

108Mhz is the max clock speed, and they usually run at slower speeds. Also, notice these
are 3.3V parts, so you'll need level-shifters to interface with 5V Arduino. Most Flash chips
I've seen are 3.3V, and not 5V, devices.

Also, the reason they're spec'ed in Mbits instead of MBytes is because all serial memory
are usually spec'ed that way.

Also, Mbits isn't speed, Mbits/sec is speed. Don't know about formatting as SD.
« Last Edit: April 26, 2013, 03:05:03 pm by oric_dan » Logged

New York
Offline Offline
Sr. Member
****
Karma: 4
Posts: 366
xronosclock.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You probably want this part, instead of the other, which sells in qty = 1800.
http://www.digikey.com/product-detail/en/N25Q128A13ESE40E/557-1562-ND/3874288
Yes smiley oops
108Mhz is the max clock speed, and they usually run at slower speeds. Also, notice these
are 3.3V parts, so you'll need level-shifters to interface with 5V Arduino. Most Flash chips
I've seen are 3.3V, and not 5V, devices.
Oh yeah I know that, it's same as SD card smiley
Logged

Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info smiley

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27115
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

SD card have FAT (file allocation table) code written for Arduino to access them.
You can search the Library page and the Playground to see what's available for accessing serial memory chips.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Full Member
***
Karma: 2
Posts: 159
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

To access SD cards with arduino you will be using SPI as well, so basically "what you can do with your sd card, you can do with your flash chip", the chip might be a bit faster because it has no FAT on it, so you have no overhead time ploughing through that.

I play WAV files from sd card, 8 bit mono @ 10 kHz, and it sounds good enough for what i need it for. To read from my flash chip you have to send a read command and 3 address bytes, so 4 bytes in total, and then you can read all bytes on the chip sequential, so it doesn't take up much processor time. I use the native atmega328 spi pins, as far as I know it's faster than software spi.
Logged

0
Offline Offline
Shannon Member
****
Karma: 207
Posts: 12200
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


So please forgive my n00bness but I'm a little confused about capacity specs of flash. It seems to be specified in Megabits, not megabytes. I thought Megabits were reserved for measurement of speed not capacity?

Memory chips can be specified as bits, bytes or whatever (many early DRAM chips where bit-wide so bits was natural).
Bytes is universal for packaged storage devices like discs, USB sticks, CDroms, because at that level no one is interested
in how the data is stored.

For comms bits or baud are mainly used for actual wire-protocols (like ethernet), but when talking about bus interfaces to mass-storage,
bytes tends to be more common (talking about disc write speeds, for example)
Logged

[ I won't respond to messages, use the forum please ]

Valencia, Spain
Online Online
Faraday Member
**
Karma: 146
Posts: 5529
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks!  One more question, does Serial Flash IC (i.e. something like this)  have speed comparable to regular SD Cards?  I wanted to see if it's feasible to read WAV files from flash IC

Yes

with WaveShield library...

That library probably won't help.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Pages: [1]   Go Up
Jump to: