Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone tried to use Compact Flash in an embedded system?

Status
Not open for further replies.

AliPentland

Computer
Nov 13, 2002
4
I am working on a battery operated instrument where I want to store medium ammounts of data and download it later to a PC. I thought Compact Flash would be an ideal solution for the memory storage area, but I'm not running an operating system like DOS or Windows on my instrument which it seems to need. Will I have to write 'drivers' for my instrument to access the Compact Flash?

It looks to me as if Compact Flash is too complex for an embedded design like mine, any one got any experience / advice? Or thoughts on mass storage for embedded systems?
 
Replies continue below

Recommended for you

At the moment we are only storing relatively small amounts of data - a few 100k. We've done this in the past with battery backed RAM, and its worked fine.

I guess you are thinking why change to Compact Flash?
We would like to use Compact Flash as it could be swapped between instruments quickly, downloaded to the PC with a 'reader', be compatible with other instruments etc.

If you have any other ideas for storage or advice fire away, I'd be glad to hear them. I'd looking for a better solution.

Thanks, Ali

 
According to the Compact Flash specification:

the CF interface supports PC-ATA and PC-IDE electrical interfaces, which means that your circuitry needs to drive 50-odd signals correctly, so you will definitely need to build a software or hardware driver for the interface. I've seen it done, so it's not impossible.

As for complexity, if you had a windows-based board, it would be relatively easy to drive the interface. The converse is that a custom design would not be readily readable on a PC, thus requiring dedicated and custom reader hardware/software.

TTFN
 
Do you have the CF spec's ? What is your processor ?
Is the project cost sensitive ?
<nbucska@pcperipherals.com>
 
Check out Jesper Hansen's Yampp7 mp3 player. It uses an AVR Mega128 with a CF interface, among other cool features.


Few other CF projects I know about :

Another mp3 player, a little simpler.

Nice dev kit for PIC

Circuit Cellar article and project

Dean.
 
There are many memory cards in the market and if is not essential to use Compact Flash then other cards are better. Compact flash needs costly connectors and you must drive tens of pins.

SmartMedia has less than twenty pins and is much easyer to interface. MMC (MultiMediCard) can be read and writen through 3 wire synchronous serial interface found on most microcontrollers. Also there are Sony's Memory Stick and SD (Secure Digital) Cards. I do not know much about last two but theese too may be worth of considering.
 
I've used compact flash as system component just as you are. And for many of the same reasons.

We did have to write drivers for one use we made of it. In another place we had a Windows-like embedded OS to interface with it. Still needed drivers, but the vendor had already written and qualified them.

I think that the headaches now will prove to have been worth it. In the near future such memories will be the way to go and you'll already have developed expertise in using them.
 
AliPentland,

Compact Flash no need special driver to run in DOS or Windows. This memory card have a built in microcontroller and just add this in IDE port of CPU board.
I have trouble when use a CF for Boot, some CF not run. The better is Sandisk and Danelec.

Regards,

M3
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor