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

Saving data to memo cards (sd, compactflash, memostick etc.)

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



Joined: 16 Sep 2003
Posts: 71
Location: Moers, Germany

View user's profile Send private message

Saving data to memo cards (sd, compactflash, memostick etc.)
PostPosted: Fri Mar 05, 2004 5:00 am     Reply with quote

Hello folks,
How can I saving my data to memory cards like sd-card, memostick, compactflash etc. ??
Are they all working by different way?
I would like to use a card with an easy handling, but I don't know which and how.

Please help

73 Sven
Pete Smith



Joined: 17 Sep 2003
Posts: 55
Location: Chester, UK

View user's profile Send private message Visit poster's website MSN Messenger ICQ Number

Re: Saving data to memo cards (sd, compactflash, memostick e
PostPosted: Fri Mar 05, 2004 7:48 am     Reply with quote

wedilo wrote:
Hello folks,
How can I saving my data to memory cards like sd-card, memostick, compactflash etc. ??
Are they all working by different way?
I would like to use a card with an easy handling, but I don't know which and how.

Please help

73 Sven


It's easy to interface MMC devices to PICs. They're essentially a big SPI device.

They use 512 byte "blocks" which means you should really use external memory (or internal if your PIC has enough) to buffer a block before writing it.

AFAIK, Compact Flash has the same interface as ATA/IDE, which is a _little_ more involved.

I've never seen specs for Memory Stick.

HTH

Pete.
Ian McCrum



Joined: 26 Oct 2003
Posts: 14
Location: Northern Ireland

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

PostPosted: Sat Mar 06, 2004 6:07 pm     Reply with quote

Compact Flash cards have a mode where they are simple memory mapped. These can be driven simply with normal i/o lines, though since you won't have enough lines you would normally use latches (74HCT573) for the address lines.

I believe there was a detailed article in Circuit Cellar, and available for download as an archive, on interfacing to Compacy Flash.

Regards
Ian
_________________
Ian McCrum, email address held at
www.eej.ulst.ac.uk/~ian
iseron



Joined: 21 Feb 2004
Posts: 12
Location: Santiago - Chile

View user's profile Send private message

PostPosted: Sun Mar 07, 2004 12:25 am     Reply with quote

NOw i'm finishing a project with a compact FLash - a datalogger exactly- and over all my research in all kind of memory types, the CF is the cheaper-resistant-supported-free specs- etc. You can use the 8 data bits of your PIC, and not using all the lines in memory mapped mode because it works with hard disk ATA comands who use only software to map the address to access in 512 bytes.

The CF has an internal buffer of 512 bytes and because of that yo can avoid an external buffer for fixed operations...

Plus you can read 2 good links.

MP3 player ---> PIC877+CF+DECODER ( no extra buffer & FAt32 support)
http://www.walrus.com/~raphael/html/mp3.html


Article of magazine.
http://www.circuitcellar.com/echips-pdfs/0201/c0201mspdf.pdf

I think this will help you .
Ignacio.
wedilo



Joined: 16 Sep 2003
Posts: 71
Location: Moers, Germany

View user's profile Send private message

PostPosted: Mon Mar 08, 2004 6:03 am     Reply with quote

Hello Pete, Ian and iseron,
thank you all for this great help. :-)))

73 Sven / DL2EBQ
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