Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know how to create a cf controller in order to read data from cf card?

share|improve this question
What's your platform? FPGA or microcontroller? – geschema Apr 15 '10 at 16:05
up vote 11 down vote accepted

Look at Sparkfun's compact flash breakouts here and here and check out this article on interfacing with a compact flash card.

share|improve this answer

I assume you are looking for an embedded solution, since you could easily get a reader for a desktop or laptop computer.

People have written SPI IDE interfaces, which you might be able to run on an AVR. I will link to one that runs on an ATMega32. It may be too big for an ATMega168, but it should fit on a 328, though it may need a bit of cleanup to account for the Arduino bootloader if you go that route: http://forum.6502.org/viewtopic.php?p=8343&sid=a06dc948bd456b223cf8a93d175d37e1

I have seen a lot of work on this for the PIC series of microcontrollers as well. A simple search on PIC and CF should return plenty of details, though the hardware and article linked above by zklapow should be more than sufficient to complete the project. I just wanted to add in an AVR solution for those who are looking since I know there is a big Arduino community here.

share|improve this answer

I'm told that compact flash has an interface very similar to IDE, that being said IDE is not trivial to communicate over. The easiest way is to do as zklapow recommends, buy a pre-made control chip. Sparkfun has boards that even have filesystem support builtin.

share|improve this answer
Actually IDE is pretty trivial to communicate over. It's only slightly more complicated than talking to your typical parallel interface microprocessor peripheral chip. Sure there are all sorts of options and speedups and legacy modes, but you don't have to get into those. – Chris Stratton Feb 7 '11 at 8:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.