hi all, pls help me with writing & reading & erasing of Compact Flash Cards. all suggetsions, links, codes are welcome. thanx in advance, rgds, kaushik
http://www.compactflash.org/ Usually, a CompactFlash card looks like a PCMCIA ATA disk drive, so you'll need file system code. The "portable file" CF cards, such as where you take the CF out of your digital camera and plug it into your PC card reader, are usually this sort. There are also "linear memory" flash cards, which are really just flash memory chips packaged in a cartridge, and require device-specific flash memory driver software. You would code for these much like you would for flash parts soldered onto your board.
"There are also 'linear memory' flash cards ... require device-specific flash memory driver software."" Presumably, you'd also have to code PC drivers?
I was thinking more in terms of replaceable storage for some single gadget. But for an applicaton like a data log, you'll probably want to read the data somewhere other than the logging device, which means more software and drivers for the reading device. For a linear card, I wouldn't be surprised if you could just buy a reader and some software to dump an image onto your PC, though. Or you could just use an ATA card in the first place, buying a PC CF reader (they're about $15-$30), and just reading the files directly on the PC. http://shop.pcconnection.com/web/Shopping/Product.htm?NRMODE=Published&NRORIGINALURL=%2fweb%2fShopping%2fProduct%2ehtm%3fproduct_id%3d361511&product_id=361511&NRNODEGUID=%7bC03E868D-1CEF-4F98-8F00-45BF12FCEA4E%7d&NRQUERYTERMINATOR=1&cookie%5Ftest=1 http://www.amazon.com/exec/obidos/tg/detail/-/B0000633DU/102-2901789-8907353?v=glance This reader is kind of interesting because the picture makes it obvious just how much the CF card looks like an ATA disk drive. Pretty much just connect the wires on your IDE cable, and you're good to go. http://www.pretec.com/index2/product/Accessory/IDE_CF_reader.htm Probably more pain and suffering to get the file system and ATA interface code running on the 8051 device, though. Does anyone know of an off-the-shelf solution for that problem?
i wish to use the Compact Flash Card for a presure scanner data logging system. i need to know how to interface 8051 & Compact Flash Card. this card i shall leter be inserting into a PC-CF reader & take the data on to a PC. pls help me with protocols/codes/etc thanx
Looks like you'll have to use a file system for sure. these links might help a bit. Although written for AVR processors, conversion shouldn't be that difficult. http://hubbard.engr.scu.edu/avr/avrlib/ http://www.yampp.com Could be helpful too: http://freedos-32.sourceforge.net/index.html Good luck... Frank