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

speed of coms between PIC and flash memory (ie mmc)

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



Joined: 19 Nov 2003
Posts: 45
Location: Oxford

View user's profile Send private message Visit poster's website

speed of coms between PIC and flash memory (ie mmc)
PostPosted: Fri Aug 27, 2004 3:57 am     Reply with quote

Roughly how fast could I write a byte of data form a PIC to say an MMC via SPI.

Is SPI the fastest method

I am purely at a initial stage of designing a project and it requires storing data FAST. I would be going at 40MHz. I would appreciate anybodys comments

Thanks
_________________
Nice!!!
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Aug 27, 2004 4:53 am     Reply with quote

SPI for MMC cards has a theoretical maximum clock rate of 20MHz, or 2.5Mbyte/s. MMC cards also have the dedicated MMC-bus type which has similar performance as the SPI-bus.

SPI for SD-cards tops at 25MHz or 3Mbytes/sec a little bit faster. Besides the SPI-bus SD cards have another bus, SD-bus, which has 4 datalines and at the same maximum clockspeed this gets you a maximum throughput of 12.5Mbyte/s. I wouldn't recommend SD-cards though because of some nasty design and license issues (like paying US$1500/year for access to documentation).

Fastest are the Compact Flash cards because of their parallel bus.

Actual write speed will be much lower than the above mentioned values because the actual flash writing takes a lot of time. New developments here are strong with new card types comming out every month. For example 45x and 60x cards are out now with 6.4MB/sec and 9.4MB/sec. Strange is the naming of these speeds as they refer to the 150kB/sec speed from a CD-player. Also note that I haven't found these higher speeds for MMC cards yet (only SD and Compact Flash).

From a 32Mbyte Toshiba MMC card specification:
Quote:
Read speed: sustained: 13.7 Mbits/s (multi-block read)
burst (one block): 20 Mbit/s
Write speed: sustained: 2.8 Mbit/s (multi-block write to pre-erased sectors)
burst (one block): 20 Mbit/s
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